Skip to content
GitLab
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
6b745d1d
Commit
6b745d1d
authored
Mar 25, 2021
by
Pierre Paleo
Browse files
Apply black
parent
2e339977
Pipeline
#43746
passed with stages
in 10 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/io.py
View file @
6b745d1d
...
...
@@ -128,6 +128,7 @@ def isErrno(e, errno):
# Because e.__cause__ is None for chained exceptions
return
"errno = {}"
.
format
(
errno
)
in
""
.
join
(
traceback
.
format_exc
())
def
check_virtual_sources_exist
(
fname
,
data_path
):
"""
Check that a virtual dataset points to actual data.
...
...
@@ -152,7 +153,9 @@ def check_virtual_sources_exist(fname, data_path):
if
not
dptr
.
is_virtual
:
return
True
for
vsource
in
dptr
.
virtual_sources
():
vsource_fname
=
os
.
path
.
join
(
os
.
path
.
dirname
(
dptr
.
file
.
filename
),
vsource
.
file_name
)
vsource_fname
=
os
.
path
.
join
(
os
.
path
.
dirname
(
dptr
.
file
.
filename
),
vsource
.
file_name
)
if
not
os
.
path
.
isfile
(
vsource_fname
):
print
(
"No such file: %s"
%
vsource_fname
)
return
False
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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