Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
annie-xd-wang committed Aug 29, 2024
1 parent f6db9bf commit 337cd8f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ def end_acquisition_model(self, model):
model : object
navigate model
"""
axis = model.configuration["experiment"]["ConstantVelocity"]["axis"]
axis = model.configuration["experiment"]["ConstantVelocity"]["axis"].lower()
model.active_microscope.stages[axis].stop()
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,7 @@ def pre_func_signal(self):

logger.info(f"*** z start position: {self.start_position}")
logger.info(f"*** z end position: {self.stop_position}")
<<<<<<< HEAD:ConstantVelocityAcquisitionPlugin/model/features/ConstantVelocityAcquisition_feature.py
logger.info(f"*** Expected number of steps: {self.number_z_steps}")
=======
pos = self.asi_stage.get_axis_position(self.axis)
print(f"Current Position = {pos}")
print(f"Start position = {self.start_position*1000}")
>>>>>>> a681d38da2cde2d087f333d9188edecb6370ecb9:ConstantVelocityAcquisitionPlugin/model/features/cva_conpro.py

self.step_size_mm = step_size_mm
self.asi_stage.scanr(
Expand Down Expand Up @@ -295,26 +289,12 @@ def end_func_signal(self):
or self.end_acquisition
or self.end_signal_temp > 0
):
<<<<<<< HEAD:ConstantVelocityAcquisitionPlugin/model/features/ConstantVelocityAcquisition_feature.py
if self.stack_cycling_mode == "per_stack":
self.update_channel()
# if run through all the channels, move to next position
if self.current_channel_in_list == 0:
return True
else:
=======
print("returning true from stop or end acquisition end_func_signal")
print("per stack if statment called")
print(f"channel list: {self.current_channel_in_list}")
self.update_channel()
print("if statement update channel finished")
# if run through all the channels, move to next position
if self.current_channel_in_list == 0:
print(
f"in if channel list = 0 statement, channel = "
f"{self.current_channel_in_list}"
)
>>>>>>> a681d38da2cde2d087f333d9188edecb6370ecb9:ConstantVelocityAcquisitionPlugin/model/features/cva_conpro.py
return True

return False
Expand Down Expand Up @@ -361,13 +341,7 @@ def cleanup(self):

def pre_data_func(self):
self.received_frames_v2 = self.received_frames
<<<<<<< HEAD:ConstantVelocityAcquisitionPlugin/model/features/ConstantVelocityAcquisition_feature.py
self.total_frames = self.expected_frames * self.channels
=======
# self.total_frames = self.expected_frames * self.channels
print(f"total channels = {self.channels}")
print(f"total frames = {self.total_frames}")
>>>>>>> a681d38da2cde2d087f333d9188edecb6370ecb9:ConstantVelocityAcquisitionPlugin/model/features/cva_conpro.py

def in_data_func(self, frame_ids):
self.received_frames += len(frame_ids)
Expand Down

0 comments on commit 337cd8f

Please sign in to comment.