Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tomotools
tomoscan
Commits
0b5f22f7
Commit
0b5f22f7
authored
May 19, 2020
by
Tomas Farago
Browse files
[HDF5Scan] Add case where the given path does not exists yet.
parent
40059082
Changes
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/esrf/hdf5scan.py
View file @
0b5f22f7
...
...
@@ -112,7 +112,10 @@ class HDF5TomoScan(TomoScanBase):
index
=
None
# if the user give the master file instead of the scan dir...
if
scan
is
not
None
:
if
os
.
path
.
isfile
(
scan
):
if
not
os
.
path
.
exists
(
scan
)
and
'.'
in
os
.
path
.
split
(
scan
)[
-
1
]:
self
.
master_file
=
scan
scan
=
os
.
path
.
dirname
(
scan
)
if
os
.
path
.
isfile
(
scan
)
or
():
self
.
master_file
=
scan
scan
=
os
.
path
.
dirname
(
scan
)
else
:
...
...
Write
Preview
Markdown
is supported
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