Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tomotools
tomoscan
Commits
cea885cf
Commit
cea885cf
authored
Aug 25, 2020
by
payno
Committed by
payno
Aug 26, 2020
Browse files
[io][HDF5File] remove `r+` mode from the valid mode
parent
6503a599
Changes
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/io.py
View file @
cea885cf
...
...
@@ -56,7 +56,7 @@ class HDF5File(h5py.File):
:param bool swmr: when not specified: try both modes when `mode=='r'`
:param **kwargs: see `h5py.File.__init__`
"""
if
mode
not
in
(
'r'
,
'r+'
,
'w'
,
'w-'
,
'x'
,
'a'
):
if
mode
not
in
(
'r'
,
'w'
,
'w-'
,
'x'
,
'a'
):
raise
ValueError
(
'invalid mode {}'
.
format
(
mode
))
with
self
.
_protect_init
(
filename
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment