Commit 01da14f1 authored by payno's avatar payno Committed by Henri Payno
Browse files

PEP8

parent a765355c
......@@ -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
......
......@@ -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
......
from .normalization import *
from .params import *
from .normalization import ( # noqa F403
IntensityNormalizationProcess,
results_to_tomoscan_norm,
)
from .params import IntensityNormalizationParams # noqa F403
......@@ -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
......
......@@ -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):
......
......@@ -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
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment