Skip to content

Commit

Permalink
Merge pull request #486 from OpenCOMPES/pynxtools-update
Browse files Browse the repository at this point in the history
Pynxtools update
  • Loading branch information
rettigl authored Aug 19, 2024
2 parents 4eac5b7 + 11fec94 commit fa22a56
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 168 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ numba = ">=0.55.1"
numpy = ">=1.18"
pandas = ">=1.4.1"
psutil = ">=5.9.0"
pynxtools-mpes = ">=0.1.1"
pynxtools = ">=0.5.1"
pynxtools-mpes = "^0.2.0"
pynxtools = "^0.6.0"
pyyaml = ">=6.0.0"
scipy = ">=1.8.0"
symmetrize = ">=0.5.5"
Expand Down
4 changes: 3 additions & 1 deletion sed/calibrator/energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,9 +953,11 @@ def gather_calibration_metadata(self, calibration: dict = None) -> dict:
metadata["applied"] = True
metadata["calibration"] = deepcopy(calibration)
metadata["tof"] = deepcopy(self.tof)
if metadata["tof"] is None:
metadata["tof"] = 0.0
# create empty calibrated axis entry, if it is not present.
if "axis" not in metadata["calibration"]:
metadata["calibration"]["axis"] = 0
metadata["calibration"]["axis"] = 0.0

return metadata

Expand Down
Loading

0 comments on commit fa22a56

Please sign in to comment.