Skip to content

Commit 8d969e0

Browse files
committed
remove pump beam section if pump closed
1 parent 46ddac5 commit 8d969e0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sed/loader/mpes/metadata.py

+5
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,11 @@ def fetch_elab_metadata(self, runs: list[str], metadata: dict) -> dict:
328328
elif metadata["elabFTW"]["scan"]["probe_polarization"] == "p":
329329
metadata["elabFTW"]["scan"]["probe_polarization"] = 0
330330

331+
# remove pump information if pump not applied:
332+
if not metadata["elabFTW"]["scan"].get("pump_status", 0):
333+
if "pump_photon_energy" in metadata["elabFTW"].get("laser_status", {}):
334+
del metadata["elabFTW"]["laser_status"]["pump_photon_energy"]
335+
331336
return metadata
332337

333338

0 commit comments

Comments
 (0)