Browse Source

Fix filter-LED pairing for well detection.

master
Carlos Reding 1 year ago
parent
commit
49ccd051d5
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      pupuicon/translator/_core.py

+ 6
- 1
pupuicon/translator/_core.py View File

@@ -51,6 +51,9 @@ class ProtocolHandler:
if len(self.user_filters) == 1:
self.user_filters = tuple(self.user_filters) # Singleton. `int' is not iterable.
else:
__LED_order__ = np.argsort(self.user_filters)
self.user_filters.sort() # Sort to minimise servo moves.

# LiMO wavelenghts:
# The GUI's wavelengths are laballed 0..3, where 0 corresponds to the
@@ -67,7 +70,9 @@ class ProtocolHandler:
if len(self.user_wavelengths) == 1:
self.user_wavelengths = tuple(self.user_wavelengths) # Singleton. `int' is not iterable.

else:
self.user_wavelengths = list(np.array(self.user_wavelengths)[__LED_order__]) # Sort to minimise servo moves, using same sorting. _MUST_ be a list.
# LiMO data-processing flag
self.process_data = UserProtocol.doDataAnalysisOnLimo
# Assay length and read frequency (_DEPRECATED_, now all

Loading…
Cancel
Save