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
8725ba88
Commit
8725ba88
authored
Sep 21, 2020
by
Pierre Paleo
Browse files
dataset_analyzer: add option to force load flats
parent
962e8fe0
Pipeline
#33828
passed with stages
in 2 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nabu/resources/dataset_analyzer.py
View file @
8725ba88
...
...
@@ -174,10 +174,10 @@ class HDF5DatasetAnalyzer(DatasetAnalyzer):
def
_get_flats_darks
(
self
):
if
len
(
self
.
flats
)
==
0
:
if
len
(
self
.
flats
)
==
0
and
not
(
self
.
extra_options
[
"force_flatfield"
])
:
# No flats at all in the dataset. Do nothing.
return
if
self
.
_load_flats_from_tomwer
():
if
self
.
processes_file
is
None
and
self
.
_load_flats_from_tomwer
():
# Loaded from tomwer_processes.h5
return
# Otherwise load or compute flats/darks with nabu
...
...
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