celldetective 1.0.2.post1__py3-none-any.whl → 1.1.0__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.
- celldetective/__main__.py +2 -2
- celldetective/events.py +2 -44
- celldetective/filters.py +4 -5
- celldetective/gui/__init__.py +1 -1
- celldetective/gui/analyze_block.py +37 -10
- celldetective/gui/btrack_options.py +24 -23
- celldetective/gui/classifier_widget.py +62 -19
- celldetective/gui/configure_new_exp.py +32 -35
- celldetective/gui/control_panel.py +115 -81
- celldetective/gui/gui_utils.py +674 -396
- celldetective/gui/json_readers.py +7 -6
- celldetective/gui/layouts.py +755 -0
- celldetective/gui/measurement_options.py +168 -487
- celldetective/gui/neighborhood_options.py +322 -270
- celldetective/gui/plot_measurements.py +1114 -0
- celldetective/gui/plot_signals_ui.py +20 -20
- celldetective/gui/process_block.py +449 -169
- celldetective/gui/retrain_segmentation_model_options.py +27 -26
- celldetective/gui/retrain_signal_model_options.py +25 -24
- celldetective/gui/seg_model_loader.py +31 -27
- celldetective/gui/signal_annotator.py +2326 -2295
- celldetective/gui/signal_annotator_options.py +18 -16
- celldetective/gui/styles.py +16 -1
- celldetective/gui/survival_ui.py +61 -39
- celldetective/gui/tableUI.py +60 -23
- celldetective/gui/thresholds_gui.py +68 -66
- celldetective/gui/viewers.py +596 -0
- celldetective/io.py +234 -23
- celldetective/measure.py +37 -32
- celldetective/neighborhood.py +495 -27
- celldetective/preprocessing.py +683 -0
- celldetective/scripts/analyze_signals.py +7 -0
- celldetective/scripts/measure_cells.py +12 -0
- celldetective/scripts/segment_cells.py +5 -0
- celldetective/scripts/track_cells.py +11 -0
- celldetective/signals.py +221 -98
- celldetective/tracking.py +0 -1
- celldetective/utils.py +178 -36
- celldetective-1.1.0.dist-info/METADATA +305 -0
- celldetective-1.1.0.dist-info/RECORD +80 -0
- {celldetective-1.0.2.post1.dist-info → celldetective-1.1.0.dist-info}/top_level.txt +1 -0
- tests/__init__.py +0 -0
- tests/test_events.py +28 -0
- tests/test_filters.py +24 -0
- tests/test_io.py +70 -0
- tests/test_measure.py +141 -0
- tests/test_neighborhood.py +70 -0
- tests/test_segmentation.py +93 -0
- tests/test_signals.py +135 -0
- tests/test_tracking.py +164 -0
- tests/test_utils.py +71 -0
- celldetective-1.0.2.post1.dist-info/METADATA +0 -221
- celldetective-1.0.2.post1.dist-info/RECORD +0 -66
- {celldetective-1.0.2.post1.dist-info → celldetective-1.1.0.dist-info}/LICENSE +0 -0
- {celldetective-1.0.2.post1.dist-info → celldetective-1.1.0.dist-info}/WHEEL +0 -0
- {celldetective-1.0.2.post1.dist-info → celldetective-1.1.0.dist-info}/entry_points.txt +0 -0
|
@@ -4,10 +4,11 @@ from PyQt5.QtWidgets import QWidget, QVBoxLayout, QScrollArea, QLabel, QHBoxLayo
|
|
|
4
4
|
from PyQt5.QtCore import Qt
|
|
5
5
|
import sys
|
|
6
6
|
import configparser
|
|
7
|
+
from celldetective.gui import Styles
|
|
7
8
|
|
|
8
|
-
class ConfigEditor(QWidget):
|
|
9
|
+
class ConfigEditor(QWidget, Styles):
|
|
9
10
|
|
|
10
|
-
def __init__(self,
|
|
11
|
+
def __init__(self, parent_window):
|
|
11
12
|
|
|
12
13
|
"""
|
|
13
14
|
Load and edit the experiment config.
|
|
@@ -15,8 +16,8 @@ class ConfigEditor(QWidget):
|
|
|
15
16
|
|
|
16
17
|
super().__init__()
|
|
17
18
|
|
|
18
|
-
self.
|
|
19
|
-
self.config_path = self.
|
|
19
|
+
self.parent_window = parent_window
|
|
20
|
+
self.config_path = self.parent_window.exp_config
|
|
20
21
|
|
|
21
22
|
self.setGeometry(500,200,400,700)
|
|
22
23
|
|
|
@@ -78,7 +79,7 @@ class ConfigEditor(QWidget):
|
|
|
78
79
|
# Add a save button
|
|
79
80
|
save_layout = QHBoxLayout()
|
|
80
81
|
save_button = QPushButton('Save')
|
|
81
|
-
save_button.setStyleSheet(self.
|
|
82
|
+
save_button.setStyleSheet(self.button_style_sheet)
|
|
82
83
|
save_button.clicked.connect(self.save_config)
|
|
83
84
|
save_button.setShortcut("Return")
|
|
84
85
|
#save_button.setIcon(QIcon_from_svg(self.parent.abs_path+f"/icons/save.svg", color='white'))
|
|
@@ -109,5 +110,5 @@ class ConfigEditor(QWidget):
|
|
|
109
110
|
with open(file_name, 'w') as f:
|
|
110
111
|
config.write(f)
|
|
111
112
|
|
|
112
|
-
self.
|
|
113
|
+
self.parent_window.load_configuration()
|
|
113
114
|
self.close()
|