Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 959d317

Browse files
author
LAKESIDE\LindaT18
committed
fix load phd
1 parent 6a0406c commit 959d317

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

PythonGUI_apps/FLIM_analysis/flim_plot_gui.ui

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@
111111
</property>
112112
</widget>
113113
</item>
114+
<item alignment="Qt::AlignLeft">
115+
<widget class="QPushButton" name="analyze_lifetime_pushButton">
116+
<property name="text">
117+
<string>Analyze lifetime</string>
118+
</property>
119+
</widget>
120+
</item>
114121
<item alignment="Qt::AlignLeft">
115122
<widget class="QCheckBox" name="compare_checkBox">
116123
<property name="text">

PythonGUI_apps/Lifetime_analysis/Lifetime_plot_fit.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def open_file(self):
9696
if ".csv" in self.filename[0] or ".txt" in self.filename[0]: #if txt or csv, prompt user to enter # of rows to skip
9797
self.skip_rows_window = SkipRowsWindow()
9898
self.skip_rows_window.skip_rows_signal.connect(self.open_with_skip_rows_window)
99-
except UnicodeDecodeError:
100-
self.file = read_picoharp_phd(self.filename[0])
99+
else:
100+
self.file = read_picoharp_phd(self.filename[0])
101101
except:
102102
pass
103103

@@ -116,8 +116,8 @@ def open_irf_file(self):
116116
if ".txt" in self.irf_filename[0] or ".csv" in self.irf_filename[0]:
117117
self.irf_skip_rows_window = SkipRowsWindow()
118118
self.irf_skip_rows_window.skip_rows_signal.connect(self.open_irf_with_skip_rows_window)
119-
except UnicodeDecodeError:
120-
self.irf_file = read_picoharp_phd(self.irf_filename[0])
119+
else:
120+
self.irf_file = read_picoharp_phd(self.irf_filename[0])
121121
except:
122122
pass
123123

0 commit comments

Comments
 (0)