Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/elab_metadata_integration' into …
Browse files Browse the repository at this point in the history
…develop
  • Loading branch information
rettigl committed Feb 27, 2025
2 parents 3e983d4 + 5a8fe95 commit a0bcb8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/specsscan/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,14 @@ def fetch_elab_metadata(self, scan: int, metadata: dict) -> dict:
if metadata["elabFTW"]["scan"].get("pump_status", "closed") == "closed":
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"]

if metadata["elabFTW"]["scan"].get("pump2_status", "closed") == "closed":
if "pump2_photon_energy" in metadata["elabFTW"].get("laser_status", {}):
del metadata["elabFTW"]["laser_status"]["pump2_photon_energy"]
if "pump2_repetition_rate" in metadata["elabFTW"].get("laser_status", {}):
del metadata["elabFTW"]["laser_status"]["pump2_repetition_rate"]

return metadata

Expand Down

0 comments on commit a0bcb8a

Please sign in to comment.