Skip to content

Commit

Permalink
also remove source_pump if not applied
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Feb 27, 2025
1 parent 79547d3 commit 4b51a5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sed/loader/mpes/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ def fetch_elab_metadata(self, runs: list[str], metadata: dict) -> dict:
if not metadata["elabFTW"]["scan"].get("pump_status", 0):
if "pump_photon_energy" in metadata["elabFTW"].get("laser_status", {}):
del metadata["elabFTW"]["laser_status"]["pump_photon_energy"]
if "pump_repetition_rate" in metadata["elabFTW"].get("laser_status", {}):
del metadata["elabFTW"]["laser_status"]["pump_repetition_rate"]

return metadata

Expand Down

0 comments on commit 4b51a5d

Please sign in to comment.