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
01da14f1
Commit
01da14f1
authored
Mar 25, 2022
by
payno
Committed by
Henri Payno
May 03, 2022
Browse files
PEP8
parent
a765355c
Changes
7
Hide whitespace changes
Inline
Side-by-side
orangecontrib/tomwer/widgets/reconstruction/NormIOW.py
View file @
01da14f1
...
...
@@ -31,11 +31,6 @@ __date__ = "19/07/2021"
import
logging
try
:
from
contextlib
import
AbstractContextManager
except
ImportError
:
from
tomwer.third_party.contextlib
import
AbstractContextManager
from
silx.gui
import
qt
from
tomwer.core.scan.scanbase
import
TomwerScanBase
from
orangecontrib.tomwer.widgets.utils
import
WidgetLongProcessing
...
...
tomwer/core/process/reconstruction/nabu/nabuvolume.py
View file @
01da14f1
...
...
@@ -45,7 +45,6 @@ from nabu.pipeline.fullfield.nabu_config import (
)
from
nabu
import
version
as
nabu_version
from
tomwer.core.scan.edfscan
import
EDFTomoScan
from
tomoscan.normalization
import
Method
as
INormMethod
import
copy
import
os
from
tomwer.core.process.task
import
Task
...
...
tomwer/core/process/reconstruction/normalization/__init__.py
View file @
01da14f1
from
.normalization
import
*
from
.params
import
*
from
.normalization
import
(
# noqa F403
IntensityNormalizationProcess
,
results_to_tomoscan_norm
,
)
from
.params
import
IntensityNormalizationParams
# noqa F403
tomwer/core/process/reconstruction/normalization/normalization.py
View file @
01da14f1
...
...
@@ -300,10 +300,10 @@ class IntensityNormalizationProcess(
if
data
is
None
:
continue
data
=
numpy
.
asarray
(
data
)
if
data
.
ndim
is
2
:
if
data
.
ndim
==
2
:
roi_area
[
current_idx
]
=
data
[
start_y
:
end_y
,
start_x
:
end_x
]
current_idx
+=
1
elif
data
.
ndim
is
3
:
elif
data
.
ndim
==
3
:
length
=
data
.
shape
[
0
]
roi_area
[
current_idx
:
current_idx
+
length
]
=
data
[
:,
start_y
:
end_y
,
start_x
:
end_x
...
...
tomwer/core/scan/scanbase.py
View file @
01da14f1
...
...
@@ -109,7 +109,7 @@ class TomwerScanBase(Dataset):
self
.
_latest_reconstructions
=
[]
"list of url related to latest slice reconstruction from nabu or pyhst"
self
.
_latest_vol_reconstructions
=
[]
"""list of url related to latest volume reconstruction from nabu or
"""list of url related to latest volume reconstruction from nabu or
pyhst"""
def
_init_index_process_file
(
self
,
overwrite_proc_file
=
False
):
...
...
tomwer/gui/reconstruction/test/test_recpyhstwidget.py
View file @
01da14f1
...
...
@@ -27,7 +27,6 @@ __license__ = "MIT"
__date__
=
"16/06/2021"
import
unittest
import
pytest
from
silx.gui
import
qt
from
silx.gui.utils.testutils
import
TestCaseQt
...
...
tomwer/synctools/stacks/reconstruction/normalization.py
View file @
01da14f1
...
...
@@ -29,7 +29,6 @@ __date__ = "19/07/2021"
from
tomwer.core.process.reconstruction.normalization
import
(
IntensityNormalizationProcess
,
IntensityNormalizationParams
,
)
from
processview.core.manager
import
ProcessManager
from
tomwer.core.scan.scanbase
import
TomwerScanBase
...
...
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