Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/implementors/imageviewer/upload_canvas.py: 0%

7 statements  

« prev     ^ index     » next       coverage.py v7.6.5, created at 2024-11-15 02:12 +0000

1import time 

2from daiquiri.core.components import ComponentActor 

3 

4 

5class Upload_CanvasActor(ComponentActor): 

6 name = "upload_canvas" 

7 

8 def method(self, *args, **kwargs): 

9 """This actor will allow external processing of the current canvas 

10 view in the client 

11 

12 Kwargs: 

13 sample(dict): The current sample dictionary 

14 image(str): Base64 encoded image 

15 

16 """ 

17 print(kwargs["sample"]) 

18 time.sleep(1)