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
c1e9b385
Commit
c1e9b385
authored
Jan 06, 2022
by
Pierre Paleo
Browse files
Check that normalization_array is a numpy array
parent
a12a65c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
nabu/reconstruction/sinogram.py
View file @
c1e9b385
...
...
@@ -309,9 +309,9 @@ class SinoNormalization:
def
_set_kind
(
self
,
kind
,
normalization_array
):
check_supported
(
kind
,
self
.
kinds
,
"sinogram normalization kind"
)
self
.
normalization_kind
=
kind
if
"array"
in
kind
and
normalization_array
is
None
:
if
"array"
in
kind
and
not
isinstance
(
normalization_array
,
np
.
ndarray
)
:
raise
ValueError
(
"Expected 'normalization_array' to be provided for normalization kind='%s'"
%
kind
"Expected 'normalization_array' to be provided
as a numpy array
for normalization kind='%s'"
%
kind
)
self
.
normalization_array
=
normalization_array
...
...
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