Skip to content

Commit d8ad464

Browse files
committed
small fixes
1 parent 411a81e commit d8ad464

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies = [
3737
"imutils>=0.5.4",
3838
"ipympl>=0.9.1",
3939
"ipywidgets>=7.7.1",
40-
"matplotlib>=3.5.1",
40+
"matplotlib>=3.5.1, <3.10.0",
4141
"numpy>=1.21.6",
4242
"opencv-python>=4.8.1.78",
4343
"pynxtools-mpes>=0.2.1",

src/specsscan/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def fetch_elab_metadata(self, scan: int, metadata: dict) -> dict:
194194
if val["value"] is not None and val["value"] != "" and val["value"] != ["None"]:
195195
try:
196196
metadata["elabFTW"][category][key] = float(val["value"])
197-
except ValueError:
197+
except (ValueError, TypeError):
198198
metadata["elabFTW"][category][key] = val["value"]
199199

200200
# group beam profiles:

0 commit comments

Comments
 (0)