Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cjtitus committed Nov 11, 2024
1 parent 36a62f6 commit 0ea3740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions export_to_xdi.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def get_xdi_run_header(run):
metadata["Element.symbol"] = run.start.get("element", "")
metadata["Element.edge"] = run.start.get("edge", "")
# This is just a kludge for re-export of old data where we used edge, not element in run.start
if metadata["Element.symbols"] == "" and metadata["Element.edge"] != "":
metadata["Element.symbols"] = metadata["Element.edge"]
if metadata["Element.symbol"] == "" and metadata["Element.edge"] != "":
metadata["Element.symbol"] = metadata["Element.edge"]

proposal = run.start.get("proposal", {})
metadata["Proposal.id"] = proposal.get("proposal_id", "")
Expand Down

0 comments on commit 0ea3740

Please sign in to comment.