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
tomoscan
Commits
d28a0b32
Commit
d28a0b32
authored
Nov 06, 2020
by
Pierre Paleo
Browse files
[hdf5scan] Fix ignore mechanism
parent
8bbd429c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/esrf/hdf5scan.py
View file @
d28a0b32
...
...
@@ -335,10 +335,14 @@ class HDF5TomoScan(TomoScanBase):
def
projections
(
self
)
->
typing
.
Union
[
dict
,
None
]:
if
self
.
_projections
is
None
:
if
self
.
frames
:
ignored_projs
=
[]
if
self
.
_ignored_projections
is
not
None
:
ignored_projs
=
self
.
_ignored_projections
proj_frames
=
tuple
(
filter
(
lambda
x
:
x
.
image_key
==
ImageKey
.
PROJECTION
and
x
.
is_control
==
False
,
lambda
x
:
(
x
.
image_key
==
ImageKey
.
PROJECTION
and
x
.
index
not
in
ignored_projs
and
x
.
is_control
==
False
),
self
.
frames
,
)
)
...
...
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