Skip to content

Commit

Permalink
Fix kinetics fad semiclassical experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
vatai committed Aug 16, 2024
1 parent 1a455d7 commit 094d7f2
Showing 1 changed file with 9 additions and 49 deletions.
58 changes: 9 additions & 49 deletions examples/kinetics_fad_semiclassical_wavelength.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,56 +32,16 @@ def main():
# elev = 35

# Load reference spectra
path = "./examples/data/fad_kinetics"
radical_spectrum = np.array(
[
np.genfromtxt(file_path)
for file_path in Path(path).glob("fad_radical_spectrum.txt")
]
)
triplet_spectrum = np.array(
[
np.genfromtxt(file_path)
for file_path in Path(path).glob("fad_triplet_spectrum.txt")
]
)
wavelength = np.array(
[
np.genfromtxt(file_path)
for file_path in Path(path).glob("fad_radical_wavelength.txt")
]
)
groundstate_spectrum = np.array(
[
np.genfromtxt(file_path)
for file_path in Path(path).glob("fad_groundstate_spectrum.txt")
]
)
groundstate_wavelength = np.array(
[
np.genfromtxt(file_path)
for file_path in Path(path).glob("fad_groundstate_spectrum_wavelength.txt")
]
)
emission_spectrum = np.array(
[
np.genfromtxt(file_path)
for file_path in Path(path).glob("fad_emission_spectrum.txt")
]
)
emission_wavelength = np.array(
[
np.genfromtxt(file_path)
for file_path in Path(path).glob("fad_emission_spectrum_wavelength.txt")
]
path = Path("./examples/data/fad_kinetics")
radical_spectrum = 1e3 * np.genfromtxt(path / "fad_radical_spectrum.txt")
triplet_spectrum = 1e3 * np.genfromtxt(path / "fad_triplet_spectrum.txt")
wavelength = np.genfromtxt(path / "fad_radical_wavelength.txt")
groundstate_spectrum = np.genfromtxt(path / "fad_groundstate_spectrum.txt")
groundstate_wavelength = np.genfromtxt(
path / "fad_groundstate_spectrum_wavelength.txt"
)
radical_spectrum = radical_spectrum[0, :] * 1e3
triplet_spectrum = triplet_spectrum[0, :] * 1e3
wavelength = wavelength[0, :]
groundstate_spectrum = groundstate_spectrum[0, :]
groundstate_wavelength = groundstate_wavelength[0, :]
emission_spectrum = emission_spectrum[0, :]
emission_wavelength = emission_wavelength[0, :]
emission_spectrum = np.genfromtxt(path / "fad_emission_spectrum.txt")
emission_wavelength = np.genfromtxt(path / "fad_emission_spectrum_wavelength.txt")

flavin = Molecule.all_nuclei("fad")
adenine = Molecule.all_nuclei("fad")
Expand Down

0 comments on commit 094d7f2

Please sign in to comment.