Skip to content

Commit

Permalink
Format with black
Browse files Browse the repository at this point in the history
  • Loading branch information
nvbln committed Mar 1, 2024
1 parent c73d1ff commit c9438b3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion sashimi/hardware/cameras/hamamatsu/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ def get_property_value(self, property_name):
def set_property_value(self, property_name, property_value, *args, **kwargs):
# Check if the property exists.
if not (property_name in self.properties):

raise CameraException(f"Unknown property name {property_name}")

# If the value is text, figure out what the
Expand Down
1 change: 1 addition & 0 deletions sashimi/hardware/cameras/hamamatsu/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

# Hamamatsu structures.


## DCAMAPI_INIT
#
# The dcam initialization structure
Expand Down
8 changes: 5 additions & 3 deletions sashimi/hardware/scanning/scanloops.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ def __init__(
logger: ConcurrenceLogger,
trigger_exp_from_scanner,
):

self.sample_rate = sample_rate
self.n_samples = n_samples

Expand Down Expand Up @@ -286,7 +285,8 @@ def initialize(self):

def loop_condition(self):
return (
super().loop_condition() and self.parameters.state == ScanningState.TRIGGERED_PLANAR
super().loop_condition()
and self.parameters.state == ScanningState.TRIGGERED_PLANAR
)

def n_samples_period(self):
Expand Down Expand Up @@ -342,7 +342,9 @@ def fill_arrays(self):
self.logger.log_message("Camera was off")
# calculate how many samples are remaining until we are in a new period
if self.i_sample == 0:
camera_pulses = self.camera_pulses.read(self.i_sample, self.n_samples)
camera_pulses = self.camera_pulses.read(
self.i_sample, self.n_samples
)
self.camera_was_off = False
self.wait_signal.clear()
else:
Expand Down
1 change: 0 additions & 1 deletion sashimi/processes/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ def camera_loop(self):
# if no frames are received (either this loop is in between frames
# or we are in the waining period)
if frames:

for frame in frames:
self.logger.log_message(
"received frame of shape " + str(frame.shape)
Expand Down
2 changes: 0 additions & 2 deletions sashimi/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ def get_voxel_size(
scanning_settings: Union[ZRecordingSettings, SinglePlaneSettings],
camera_settings: CameraSettings,
):

binning = int(camera_settings.binning)

if isinstance(scanning_settings, SinglePlaneSettings):
Expand Down Expand Up @@ -668,7 +667,6 @@ def obtain_noise_average(self, n_images=50):
self.dispatcher.calibration_ref_queue.put(self.calibration_ref)

def reset_noise_subtraction(self):

self.calibration_ref = None
self.noise_subtraction_active.clear()

Expand Down

0 comments on commit c9438b3

Please sign in to comment.