Skip to content

Commit

Permalink
remove pump laser beam section if pump closed
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Jan 16, 2025
1 parent 071b7e1 commit 6ba918c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/specsscan/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ def fetch_elab_metadata(self, scan: int, metadata: dict) -> dict:
elif metadata["elabFTW"]["scan"]["probe_polarization"] == "p":
metadata["elabFTW"]["scan"]["probe_polarization"] = 0

# remove pump information if pump not applied:
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"]

return metadata


Expand Down

0 comments on commit 6ba918c

Please sign in to comment.