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
Nabu
Commits
460e2f34
Commit
460e2f34
authored
Jun 22, 2020
by
Pierre Paleo
Browse files
Add reverse dict for flats indices
parent
b6558f1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
nabu/preproc/ccd.py
View file @
460e2f34
...
...
@@ -171,6 +171,7 @@ class FlatField(CCDProcessing):
for
flat_idx
,
flat_url
in
self
.
flats
.
items
():
self
.
flats_arr
[
flat_idx
]
=
self
.
flats_reader
.
get_data
(
flat_url
)
self
.
_sorted_flat_indices
=
sorted
(
self
.
flats
.
keys
())
self
.
_flat2arrayidx
=
{
k
:
v
for
k
,
v
in
zip
(
self
.
_sorted_flat_indices
,
np
.
arange
(
self
.
n_flats
))}
def
_load_darks
(
self
):
self
.
n_darks
=
len
(
self
.
darks
)
...
...
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