Skip to content

Commit

Permalink
Merge pull request #32 from wenbostar/main
Browse files Browse the repository at this point in the history
Fixed CE extraction issue from some raw files
  • Loading branch information
jalew188 authored Mar 16, 2024
2 parents f4639ac + cb22e2c commit 3e682e5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion alpharaw/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,13 @@ def _import_batch(
float(energy_ev)
)
else:
auxiliary_dict["energy_ev"].append(0)
energy_ev = trailer_data["HCD Energy eV:"]
if energy_ev:
auxiliary_dict["energy_ev"].append(
float(energy_ev)
)
else:
auxiliary_dict["energy_ev"].append(0)
if "injection_optics_settling_time" in auxiliary_dict:
auxiliary_dict["injection_optics_settling_time"].append(
float(trailer_data[
Expand Down

0 comments on commit 3e682e5

Please sign in to comment.