From 3f1161a03a6dd529ce5cec69edfe10b1c0e58d27 Mon Sep 17 00:00:00 2001 From: Tyler Date: Tue, 17 Mar 2026 12:48:42 -0700 Subject: [PATCH] fix to support both xlsx and txt in same dropdown, update to git ignore --- .gitignore | 3 ++- main.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5a84a62..2547f8c 100644 --- a/.gitignore +++ b/.gitignore @@ -178,4 +178,5 @@ cython_debug/ *.xlsx *.csv *.snirf -*.json \ No newline at end of file +*.json +flares-* \ No newline at end of file diff --git a/main.py b/main.py index efb2366..37aee7a 100644 --- a/main.py +++ b/main.py @@ -185,7 +185,7 @@ SECTIONS = [ {"name": "RESAMPLE", "default": True, "type": bool, "help": "Should the data be resampled before calculating the design matrix? Downsampling is useful for speeding up calculations without loosing overall data shape."}, {"name": "RESAMPLE_FREQ", "default": 1, "type": int, "help": "The frequency the data should be resampled to."}, - {"name": "HRF_MODEL", "default": ["fir"], "type": list, "options": ["fir", "glover", "spm", "spm + derivative", "spm + derivative + dispersion", "glover + derivative", "glover + derivative + dispersion"], "exclusive": True, "help": "Specifies the hemodynamic response function."}, + {"name": "HRF_MODEL", "default": ["fir"], "type": list, "options": ["fir", "glover", "spm", "spm + derivative", "spm + derivative + dispersion", "glover + derivative", "glover + derivative + dispersion"], "exclusive": True, "help": "Specifies the haemodynamic response function."}, {"name": "STIM_DUR", "default": 0.5, "type": float, "help": "The length of your stimulus. If your HRF_MODEL is fir, this dictates how wide a bin should be."}, {"name": "DRIFT_MODEL", "default": ["cosine"], "type": list, "options": ["cosine", "polynomial"], "help": "Specifies the desired drift model."}, {"name": "HIGH_PASS", "default": 0.01, "type": float, "help": "High-pass frequency in case of a cosine model (in Hz)."}, @@ -542,7 +542,7 @@ class UpdateOptodesWindow(QWidget): self.line_edit_file_a.setText(file_path) def browse_file_b(self): - file_path, _ = QFileDialog.getOpenFileName(self, "Select File", "", "Text Files (*.txt);;Excel Files (*.xlsx)") + file_path, _ = QFileDialog.getOpenFileName(self, "Select File", "", "Supported Files (*.txt *.xlsx)") if file_path: self.line_edit_file_b.setText(file_path)