Commit 273525d2 authored by Henri Payno's avatar Henri Payno
Browse files

[CI] add flake8 test

parent 531a5aec
Pipeline #55966 failed with stages
in 8 seconds
......@@ -28,14 +28,10 @@ __license__ = "MIT"
__date__ = "05/10/2021"
import functools
import logging
from Orange.widgets import gui
from Orange.widgets.settings import Setting
from Orange.widgets.widget import OWWidget
from Orange.widgets.widget import Input, Output
import Orange.data
from PyMca5.PyMcaGui.physics.xas.XASNormalizationParameters import (
XASNormalizationParameters,
)
......@@ -49,10 +45,8 @@ from est.gui.XasObjectViewer import (
)
from orangecontrib.est.process import _ProcessForOrangeMixIn
from orangecontrib.est.widgets.container import _ParameterWindowContainer
from orangecontrib.est.progress import QProgress
from orangecontrib.est.utils import Converter
from est.gui.e0calculator import E0CalculatorDialog
from est.core.types import XASObject
from est.gui.XasObjectViewer import XasObjectViewer, ViewType
import est.core.process.pymca.normalization
......
......@@ -33,7 +33,7 @@ from Orange.widgets import gui
from Orange.widgets.settings import Setting
from Orange.widgets.widget import OWWidget
from Orange.widgets.widget import Input, Output
from orangecontrib.est.progress import QProgress
import Orange.data
import functools
from orangecontrib.est.utils import Converter
......@@ -187,7 +187,7 @@ class QNoise(est.core.process.noise.NoiseProcess):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._advancement = QProgress("noise")
# self._advancement = QProgress("noise")
def _pool_process(self, xas_obj):
self.pool = qt.QThreadPool()
......@@ -197,7 +197,7 @@ class QNoise(est.core.process.noise.NoiseProcess):
fct=est.core.process.noise.process_noise_savgol,
spectrum=spectrum,
configuration=xas_obj.configuration,
callback=self._advancement.increaseAdvancement,
# callback=self._advancement.increaseAdvancement,
)
self.pool.start(runnable)
self.pool.waitForDone()
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