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
nxtomomill
Commits
ba4e3517
Unverified
Commit
ba4e3517
authored
Dec 06, 2021
by
Henri Payno
Browse files
h52nx: add a warning if the key used for flat-titles is not the expected/recommanded one
parent
c9be369a
Pipeline
#61295
passed with stages
in 3 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nxtomomill/io/config.py
View file @
ba4e3517
...
...
@@ -1111,6 +1111,13 @@ class TomoHDF5Config:
flat_titles
=
convert_str_to_tuple
(
flat_titles
,
none_if_empty
=
True
)
self
.
flat_titles
=
flat_titles
flat_title_key_picked
=
alias
if
(
flat_title_key_picked
is
not
None
and
flat_title_key_picked
!=
TomoHDF5Config
.
FLAT_TITLES_DK
):
_logger
.
warning
(
f
"
{
flat_title_key_picked
}
will be removed in the future. Please use
{
TomoHDF5Config
.
FLAT_TITLES_DK
}
instead"
)
# handle projection titles. empty string is consider as a valid value
proj_titles
=
dict_
.
get
(
TomoHDF5Config
.
PROJ_TITLES_DK
,
None
)
if
proj_titles
is
not
None
:
...
...
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