-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample1.py
46 lines (43 loc) · 895 Bytes
/
example1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""
test features of the fdflim package
"""
from pathlib import Path
from flifile import FliFile
from fdflim import Reference, Sample
from matplotlib import pyplot as plt
tau_ref = 3.93e-9
frequency = 40e6
ref = Path(
"G:\\",
"SurfDrive",
"Data",
"2019",
"04",
"29",
"2019-04-10_14.25.59_reference_R6G.fli",
)
sam = Path(
"G:\\",
"SurfDrive",
"Data",
"2019",
"04",
"29",
"2019-04-09_15.51.21_sample_IsoP_Fors.fli",
)
ref = FliFile(ref)
sam = FliFile(sam)
refdat = ref.getdata()
samdat = sam.getdata()
my_ref = Reference(refdat, tau_ref, frequency, axis=2)
my_sam = Sample(samdat, my_ref)
tau_phi = my_sam.getlifetimephase()
plt.figure()
plt.imshow(tau_phi[:, :, 1], vmin=0, vmax=4e-9)
plt.colorbar()
plt.show()
tau_mod = my_sam.getlifetimemod()
plt.figure()
plt.imshow(tau_mod[:, :, 1], vmin=5e-9, vmax=10e-9)
plt.colorbar()
plt.show()