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
nxtomomill
Commits
c62447f6
Commit
c62447f6
authored
Nov 12, 2020
by
Tomas Farago
Committed by
payno
Nov 12, 2020
Browse files
[patch-dark-ref] insure we must change chdir prior to do it
parent
e7b92167
Pipeline
#37053
failed with stages
in 8 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nxtomomill/utils.py
View file @
c62447f6
...
...
@@ -458,7 +458,8 @@ def _insert_frame_data(data, file_path, data_path, where, logger=None):
def
recreate_vs
(
vs_info
,
vds_file
):
with
cwd_context
():
os
.
chdir
(
os
.
path
.
dirname
(
vds_file
))
if
os
.
path
.
dirname
(
vds_file
)
not
in
(
""
,
None
):
os
.
chdir
(
os
.
path
.
dirname
(
vds_file
))
with
HDF5File
(
vs_info
.
file_name
,
mode
=
"r"
)
as
vs_node
:
vs_shape
=
vs_node
[
vs_info
.
dset_name
].
shape
length
=
vs_shape
[
0
]
...
...
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