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
46336dfb
Commit
46336dfb
authored
Aug 25, 2020
by
payno
Browse files
[io][HDF5File] remove `r+` mode from the valid mode
parent
6e7f7f72
Pipeline
#31847
passed with stages
in 2 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/io.py
View file @
46336dfb
...
@@ -56,7 +56,7 @@ class HDF5File(h5py.File):
...
@@ -56,7 +56,7 @@ class HDF5File(h5py.File):
:param bool swmr: when not specified: try both modes when `mode=='r'`
:param bool swmr: when not specified: try both modes when `mode=='r'`
:param **kwargs: see `h5py.File.__init__`
: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
))
raise
ValueError
(
'invalid mode {}'
.
format
(
mode
))
with
self
.
_protect_init
(
filename
):
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