Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Jan 22, 2025
1 parent 411a81e commit d8ad464
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies = [
"imutils>=0.5.4",
"ipympl>=0.9.1",
"ipywidgets>=7.7.1",
"matplotlib>=3.5.1",
"matplotlib>=3.5.1, <3.10.0",
"numpy>=1.21.6",
"opencv-python>=4.8.1.78",
"pynxtools-mpes>=0.2.1",
Expand Down
2 changes: 1 addition & 1 deletion src/specsscan/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def fetch_elab_metadata(self, scan: int, metadata: dict) -> dict:
if val["value"] is not None and val["value"] != "" and val["value"] != ["None"]:
try:
metadata["elabFTW"][category][key] = float(val["value"])
except ValueError:
except (ValueError, TypeError):
metadata["elabFTW"][category][key] = val["value"]

# group beam profiles:
Expand Down

0 comments on commit d8ad464

Please sign in to comment.