Skip to content

Commit

Permalink
Merge pull request #57 from dschick/issue56brokennexusconversion
Browse files Browse the repository at this point in the history
Fix issue56 - broken nexus conversion
  • Loading branch information
dschick authored Aug 9, 2023
2 parents d8c7826 + 43d10f7 commit 9241a45
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
[flake8]
max-line-length=99
ignore = E121, E123, E126, E133, E226, E241, E242, E402, E704, W503, W504, W505 and W605
ignore =
E121,
E123,
E126,
E133,
E226,
E241,
E242,
E402,
E704,
W503,
W504,
W505,
W605
exclude = docs,build,dist
2 changes: 1 addition & 1 deletion pyEvalData/io/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ def save_all_scans_to_nexus(self):
try:
_ = nxs_file[entry_name]
scan_in_nexus = True
except KeyError:
except (KeyError, nxs.NeXusError):
scan_in_nexus = False

if (not scan_in_nexus) or (scan.number >= last_scan_in_nexus) \
Expand Down

0 comments on commit 9241a45

Please sign in to comment.