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
workflow
ewoksapps
est
Commits
273525d2
Commit
273525d2
authored
Oct 05, 2021
by
Henri Payno
Browse files
[CI] add flake8 test
parent
531a5aec
Pipeline
#55966
failed with stages
in 8 seconds
Changes
22
Pipelines
1
Show whitespace changes
Inline
Side-by-side
orangecontrib/est/widgets/pymca/normalization.py
View file @
273525d2
...
...
@@ -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
...
...
orangecontrib/est/widgets/utils/noise.py
View file @
273525d2
...
...
@@ -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
()
Prev
1
2
Next
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