Code formatting
This commit is contained in:
parent
0234b20ce3
commit
2bfb988460
60 changed files with 392 additions and 396 deletions
|
|
@ -1,7 +1,8 @@
|
|||
from io import BytesIO
|
||||
|
||||
import numpy as np
|
||||
import requests
|
||||
from PIL import Image
|
||||
from io import BytesIO
|
||||
import numpy as np
|
||||
|
||||
|
||||
class APIconnection:
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
#!/usr/bin/env python
|
||||
from api_client import APIconnection
|
||||
|
||||
import numpy as np
|
||||
import unittest
|
||||
|
||||
import logging
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import numpy as np
|
||||
from api_client import APIconnection
|
||||
|
||||
logging.basicConfig(stream=sys.stderr, level=logging.INFO)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,17 +1,15 @@
|
|||
#!/usr/bin/env python
|
||||
from openflexure_microscope.camera.pi import PiCameraStreamer, CaptureObject
|
||||
|
||||
import os
|
||||
import io
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import numpy as np
|
||||
|
||||
from PIL import Image
|
||||
|
||||
import unittest
|
||||
|
||||
import logging
|
||||
import sys
|
||||
import numpy as np
|
||||
from PIL import Image
|
||||
|
||||
from openflexure_microscope.camera.pi import CaptureObject, PiCameraStreamer
|
||||
|
||||
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
|
||||
|
||||
|
|
@ -30,9 +28,7 @@ class TestCaptureMethods(unittest.TestCase):
|
|||
# Capture to a context (auto-deletes files when done)
|
||||
with camera.new_image() as output:
|
||||
|
||||
camera.capture(
|
||||
output, use_video_port=use_video_port, resize=resize
|
||||
)
|
||||
camera.capture(output, use_video_port=use_video_port, resize=resize)
|
||||
|
||||
# Ensure file deletion fails and returns False
|
||||
self.assertFalse(output.delete_file())
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
#!/usr/bin/env python
|
||||
from openflexure_microscope.camera.pi import PiCameraStreamer
|
||||
from openflexure_stage import OpenFlexureStage
|
||||
from openflexure_microscope import Microscope, config
|
||||
|
||||
import atexit
|
||||
|
||||
import logging
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import logging, sys
|
||||
from openflexure_stage import OpenFlexureStage
|
||||
|
||||
from openflexure_microscope import Microscope, config
|
||||
from openflexure_microscope.camera.pi import PiCameraStreamer
|
||||
|
||||
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
#!/usr/bin/env python
|
||||
from openflexure_stage import OpenFlexureStage
|
||||
|
||||
import numpy as np
|
||||
|
||||
import unittest
|
||||
|
||||
import logging
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import numpy as np
|
||||
from openflexure_stage import OpenFlexureStage
|
||||
|
||||
logging.basicConfig(stream=sys.stderr, level=logging.INFO)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue