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
Nabu
Commits
4e02e54b
Commit
4e02e54b
authored
May 06, 2021
by
Pierre Paleo
Browse files
Rename variable
parent
f48d8e46
Changes
1
Hide whitespace changes
Inline
Side-by-side
nabu/resources/processconfig.py
View file @
4e02e54b
...
...
@@ -552,14 +552,14 @@ class ProcessConfig:
# TODO add more tests to compare configurations
if
self
.
resume_from_step
is
None
:
return
None
# Get file dataset shape/start_z/end_z
cfg_h5_path
=
posixpath
.
join
(
# Check dataset shape/start_z/end_z
rec_cfg_h5_path
=
posixpath
.
join
(
self
.
dataset_infos
.
hdf5_entry
or
"entry"
,
self
.
resume_from_step
,
"configuration/nabu_config/reconstruction"
)
dump_start_z
=
get_h5_value
(
process_file
,
posixpath
.
join
(
cfg_h5_path
,
"start_z"
))
dump_end_z
=
get_h5_value
(
process_file
,
posixpath
.
join
(
cfg_h5_path
,
"end_z"
))
dump_start_z
=
get_h5_value
(
process_file
,
posixpath
.
join
(
rec_cfg_h5_path
,
"start_z"
))
start_z
,
end_z
=
self
.
nabu_config
[
"reconstruction"
][
"start_z"
],
self
.
nabu_config
[
"reconstruction"
][
"end_z"
]
if
not
(
dump_start_z
<=
start_z
and
end_z
<=
dump_end_z
):
msg
=
"File %s was built with start_z=%d, end_z=%d but current configuration asks for start_z=%d, end_z=%d"
%
(
process_file
,
dump_start_z
,
dump_end_z
,
start_z
,
end_z
)
...
...
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