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

Commit 0c66cf3

Browse files
clean up
1 parent f68fcce commit 0c66cf3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PythonGUI_apps/Lifetime_analysis/read_ph_phd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
"""
77

88
import picoharp_phd
9-
import numpy
9+
import numpy as np
1010
import matplotlib.pyplot as plt
1111
#import sys
1212

1313
#datafile = "E:/Python code/APTES_APTMS.phd"
1414

1515

1616
def read_picoharp_phd(datafile):
17-
parser = picoharp.PicoharpParser(datafile)
17+
parser = picoharp_phd.PicoharpParser(datafile)
1818
return parser
1919

2020
#def phd_to_csv(datafile, return_df = False):
@@ -40,7 +40,7 @@ def smooth(curve, boxwidth):
4040

4141
def get_x_y(curve_no, parser, smooth_trace = False, boxwidth = 3):
4242

43-
assert type(parser) == picoharp.PicoharpParser, 'must be picoharp parser'
43+
assert type(parser) == picoharp_phd.PicoharpParser, 'must be picoharp parser'
4444
res, curve = parser.get_curve(curve_no)
4545
time_window = int(np.floor(parser.get_time_window_in_ns(curve_no)))
4646
curve = curve[0:time_window]

0 commit comments

Comments
 (0)