Skip to content

Commit 8f631d7

Browse files
author
David Miguel Susano Pinto
committed
maint: black and isort for consistent style.
1 parent 03e6b5c commit 8f631d7

File tree

6 files changed

+21
-13
lines changed

6 files changed

+21
-13
lines changed

microscope/abc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ def __init__(self, numSensors: int, pullData: bool, **kwargs) -> None:
17041704
"NumSensors must be a positive number (was %d)" % numSensors
17051705
)
17061706
self._numSensors = numSensors
1707-
#if pull data is True data will be pulled from the server if False
1707+
# If pull data is True data will be pulled from the server if False
17081708
# data will be pushed from microsocpe (default)
17091709
self.pullData = pullData
17101710

microscope/cameras/picamera.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,13 @@ def soft_trigger(self):
265265
if self._acquiring:
266266
with picamera.array.PiYUVArray(self.camera) as output:
267267
self.camera.capture(output, format="yuv", use_video_port=False)
268-
self._queue.put(output.array[self.roi[1]:self.roi[1]+self.roi[3],
269-
self.roi[0]:self.roi[0]+self.roi[2], 0])
268+
self._queue.put(
269+
output.array[
270+
self.roi[1] : self.roi[1] + self.roi[3],
271+
self.roi[0] : self.roi[0] + self.roi[2],
272+
0,
273+
]
274+
)
270275

271276

272277
# ongoing implemetation notes

microscope/controllers/ludl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@ def move_command(self, command: bytes) -> None:
203203
self._command_and_validate(command, b"N")
204204
#
205205
# No Following is not true as Cockpit expects moves to happen
206-
# before the return.
206+
# before the return.
207207
# actully beter to just issue the move command and rely on
208208
# other process to check position
209-
#self.get_command(command)
209+
# self.get_command(command)
210210

211211
def move_by_relative_position(self, axis: bytes, delta: float) -> None:
212212
"""Send a relative movement command to stated axis"""

microscope/digitalio/raspberrypi.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,17 @@
2323
"""
2424

2525
import contextlib
26+
import logging
27+
import queue
2628
import re
2729
import threading
2830
import time
2931
import typing
30-
import logging
31-
import queue
32-
import microscope.abc
3332

3433
import RPi.GPIO as GPIO
3534

35+
import microscope.abc
36+
3637

3738
# Support for async digital IO control on the Raspberryy Pi.
3839
# Currently supports digital input and output via GPIO lines

microscope/simulators/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"""
2828

2929
import logging
30+
import math
3031
import random
3132
import time
32-
import math
3333
import typing
3434
from typing import Tuple
3535

microscope/valuelogger/raspberrypi.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,21 @@
2323
"""
2424

2525
import contextlib
26+
import logging
27+
import queue
2628
import re
2729
import threading
2830
import time
2931
import typing
30-
import logging
31-
import queue
32+
3233
import Adafruit_MCP9808.MCP9808 as MCP9808
3334

35+
import microscope.abc
36+
37+
3438
# library for TSYS01 sensor
3539
# import TSYS01.TSYS01 as TSYS01
3640

37-
import microscope.abc
38-
3941

4042
# Support for async digital IO control on the Raspberryy Pi.
4143
# Currently supports digital input and output via GPIO lines

0 commit comments

Comments
 (0)