lazylabel-gui 1.3.2__py3-none-any.whl → 1.3.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,7 +65,7 @@ class FileManager:
65
65
  if not os.path.exists(npz_path):
66
66
  raise OSError(f"NPZ file was not created: {npz_path}")
67
67
 
68
- logger.info(f"Successfully saved NPZ: {os.path.basename(npz_path)}")
68
+ logger.debug(f"Successfully saved NPZ: {os.path.basename(npz_path)}")
69
69
  return npz_path
70
70
 
71
71
  def save_yolo_txt(
@@ -612,10 +612,10 @@ class ControlPanel(QWidget):
612
612
  layout.addWidget(crop_collapsible)
613
613
 
614
614
  # Channel Threshold - collapsible
615
- threshold_collapsible = SimpleCollapsible(
615
+ self.channel_threshold_collapsible = SimpleCollapsible(
616
616
  "Channel Threshold", self.channel_threshold_widget
617
617
  )
618
- layout.addWidget(threshold_collapsible)
618
+ layout.addWidget(self.channel_threshold_collapsible)
619
619
 
620
620
  # FFT Threshold - collapsible (default collapsed)
621
621
  self.fft_threshold_collapsible = SimpleCollapsible(
@@ -880,6 +880,11 @@ class ControlPanel(QWidget):
880
880
  """Update channel threshold widget for new image."""
881
881
  self.channel_threshold_widget.update_for_image(image_array)
882
882
 
883
+ # Auto-expand channel threshold panel when any image is loaded
884
+ if image_array is not None and hasattr(self, "channel_threshold_collapsible"):
885
+ # Find and expand the Channel Threshold panel
886
+ self.channel_threshold_collapsible.set_collapsed(False)
887
+
883
888
  def get_channel_threshold_widget(self):
884
889
  """Get the channel threshold widget."""
885
890
  return self.channel_threshold_widget