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
tomwer
Commits
7399988c
Commit
7399988c
authored
Apr 05, 2022
by
payno
Committed by
Henri Payno
May 03, 2022
Browse files
intensity normalization: fix providing a dataset url
parent
59d53b1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tomwer/core/process/reconstruction/nabu/nabucommon.py
View file @
7399988c
...
...
@@ -536,11 +536,14 @@ class _NabuBaseReconstructor:
config
[
"preproc"
][
"sino_normalization_file"
]
=
dataset_url
.
path
()
elif
source
is
INormSource
.
DATASET
:
url
=
extra_infos
[
"dataset_url"
]
if
not
isinstance
(
url
,
DataUrl
):
if
isinstance
(
url
,
DataUrl
):
config
[
"preproc"
][
"sino_normalization_file"
]
=
url
.
path
()
elif
isinstance
(
url
,
str
):
config
[
"preproc"
][
"sino_normalization_file"
]
=
url
else
:
raise
TypeError
(
f
"dataset_url is expected to be an instance of DataUrl. Not
{
type
(
url
)
}
"
f
"dataset_url is expected to be an instance of
DataUrl or str representing a
DataUrl. Not
{
type
(
url
)
}
"
)
config
[
"preproc"
][
"sino_normalization_file"
]
=
url
.
path
()
else
:
raise
NotImplementedError
(
f
"source type
{
source
.
value
}
is not handled"
)
...
...
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