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
7b374731
Commit
7b374731
authored
Aug 03, 2021
by
payno
Browse files
PEP8
parent
76aab690
Pipeline
#51923
failed with stages
in 11 minutes and 46 seconds
Changes
57
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
est/core/process/pymca/exafs.py
View file @
7b374731
...
...
@@ -34,8 +34,6 @@ import multiprocessing
import
numpy
from
PyMca5.PyMcaPhysics.xas.XASClass
import
XASClass
from
PyMca5.PyMcaPhysics.xas.XASClass
import
e2k
,
k2e
from
est.core.process.process
import
_input_desc
from
est.core.process.process
import
_output_desc
from
est.core.process.process
import
Process
from
est.core.process.process
import
_NexusDatasetDef
from
est.core.types
import
XASObject
,
Spectrum
...
...
est/core/process/pymca/ft.py
View file @
7b374731
...
...
@@ -33,8 +33,6 @@ import multiprocessing
import
numpy
from
PyMca5.PyMcaPhysics.xas.XASClass
import
XASClass
from
est.core.process.process
import
_input_desc
from
est.core.process.process
import
_output_desc
from
est.core.process.process
import
Process
from
est.core.process.process
import
_NexusDatasetDef
from
est.core.types
import
XASObject
,
Spectrum
...
...
est/core/process/pymca/k_weight.py
View file @
7b374731
...
...
@@ -30,7 +30,6 @@ __date__ = "06/11/2019"
import
functools
import
logging
import
multiprocessing
from
PyMca5.PyMcaPhysics.xas.XASClass
import
XASClass
,
e2k
from
est.core.process.process
import
Process
from
est.core.process.pymca.exafs
import
process_spectr_exafs
...
...
est/core/process/pymca/normalization.py
View file @
7b374731
...
...
@@ -32,8 +32,6 @@ import functools
import
logging
import
multiprocessing
from
PyMca5.PyMcaPhysics.xas.XASClass
import
XASClass
from
est.core.process.process
import
_input_desc
from
est.core.process.process
import
_output_desc
from
est.core.process.process
import
Process
,
Progress
from
est.core.process.process
import
_NexusDatasetDef
from
est.core.types
import
Spectrum
,
XASObject
...
...
est/core/process/pymca/test/test_exafs.py
View file @
7b374731
...
...
@@ -29,10 +29,9 @@ __date__ = "06/11/2019"
import
os
import
unittest
from
est.core.types
import
Dim
try
:
import
PyMca5
import
PyMca5
# noqa
except
ImportError
:
has_pymca
=
False
else
:
...
...
est/core/process/pymca/test/test_ft.py
View file @
7b374731
...
...
@@ -30,10 +30,9 @@ __date__ = "06/11/2019"
import
os
import
unittest
from
est.core.types
import
XASObject
,
Spectrum
from
est.core.types
import
Dim
try
:
import
PyMca5
import
PyMca5
# noqa
except
ImportError
:
has_pymca
=
False
else
:
...
...
est/core/process/pymca/test/test_io.py
View file @
7b374731
...
...
@@ -37,10 +37,9 @@ from est.core.io import read as read_xas
from
est.core.utils
import
spectra
as
spectra_utils
from
est.core.types
import
XASObject
from
silx.io.url
import
DataUrl
from
est.core.types
import
Dim
try
:
import
PyMca5
import
PyMca5
# noqa
except
ImportError
:
has_pymca
=
False
else
:
...
...
est/core/process/pymca/test/test_k_weight.py
View file @
7b374731
...
...
@@ -30,10 +30,9 @@ __date__ = "06/11/2019"
import
os
import
unittest
from
est.core.types
import
Spectrum
,
XASObject
from
est.core.types
import
Dim
try
:
import
PyMca5
import
PyMca5
# noqa
except
ImportError
:
has_pymca
=
False
else
:
...
...
est/core/process/pymca/test/test_normalization.py
View file @
7b374731
...
...
@@ -40,7 +40,7 @@ from est.core.utils import spectra as spectra_utils
from
est.core.types
import
Dim
try
:
import
PyMca5
import
PyMca5
# noqa
except
ImportError
:
has_pymca
=
False
else
:
...
...
est/core/process/pymca/test/test_workflow.py
View file @
7b374731
...
...
@@ -44,10 +44,9 @@ from est.core.io import XASWriter
from
est.core.io
import
read
as
read_xas
from
est.core.types
import
XASObject
from
est.core.utils
import
spectra
as
spectra_utils
from
est.core.types
import
Dim
try
:
import
PyMca5
import
PyMca5
# noqa
except
ImportError
:
has_pymca
=
False
else
:
...
...
est/core/process/roi.py
View file @
7b374731
...
...
@@ -30,8 +30,6 @@ __date__ = "06/11/2019"
from
est.core.types
import
XASObject
from
est.core.types
import
Spectrum
from
est.core.types
import
Spectra
from
est.core.process.process
import
_input_desc
from
est.core.process.process
import
_output_desc
from
.process
import
Process
import
logging
import
numpy
...
...
est/core/process/setconfig.py
View file @
7b374731
...
...
@@ -27,7 +27,6 @@ __authors__ = ["H. Payno"]
__license__
=
"MIT"
__date__
=
"06/11/2019"
from
est.core.types
import
XASObject
,
Spectrum
from
.process
import
Process
import
logging
...
...
est/core/process/test/test_workflow.py
View file @
7b374731
...
...
@@ -32,10 +32,9 @@ import tempfile
import
shutil
from
est.core.types
import
Spectrum
,
XASObject
from
est.core.io
import
XASWriter
from
est.core.types
import
Dim
try
:
import
larch
import
larch
# noqa
except
ImportError
:
has_larch
=
False
else
:
...
...
@@ -44,7 +43,7 @@ else:
from
est.core.process.larch.pre_edge
import
Larch_pre_edge
from
est.core.process.larch.xftf
import
Larch_xftf
try
:
import
PyMca5
import
PyMca5
# noqa
except
ImportError
:
has_pymca
=
False
else
:
...
...
est/core/test/test_io.py
View file @
7b374731
...
...
@@ -126,7 +126,7 @@ class TestSpectraDimensions(unittest.TestCase):
# if dims are incoherent with energy, should raise an error
dims
=
(
Dim
.
DIM_0
,
Dim
.
DIM_1
,
Dim
.
DIM_2
)
with
warnings
.
catch_warnings
(
record
=
True
)
as
w
:
with
warnings
.
catch_warnings
(
record
=
True
):
XASReader
().
read_frm_url
(
InputInformation
(
spectra_url
=
spectra_url
,
...
...
est/core/test/test_types.py
View file @
7b374731
...
...
@@ -33,18 +33,17 @@ import unittest
import
tempfile
import
h5py
import
shutil
from
est.core.types
import
Spectrum
,
XASObject
,
Dim
from
est.core.types
import
Spectrum
,
XASObject
from
est.core.utils
import
spectra
as
spectra_utils
from
est.core.io
import
read
as
read_xas
from
silx.io.url
import
DataUrl
from
est.units
import
ur
import
json
import
pint
import
silx.io.utils
from
est.core.types
import
Dim
try
:
import
PyMca5
import
PyMca5
# noqa
except
ImportError
:
has_pymca
=
False
else
:
...
...
est/core/types/__init__.py
View file @
7b374731
from
.spectrum
import
Spectrum
from
.spectra
import
Spectra
from
.sample
import
Sample
from
.xasobject
import
XASObject
from
.dim
import
Dim
from
.spectrum
import
Spectrum
# noqa
from
.spectra
import
Spectra
# noqa
from
.sample
import
Sample
# noqa
from
.xasobject
import
XASObject
# noqa
from
.dim
import
Dim
# noqa
est/core/types/spectrum.py
View file @
7b374731
...
...
@@ -39,7 +39,7 @@ import pint
_logger
=
logging
.
getLogger
(
__name__
)
try
:
import
larch
import
larch
# noqa
except
ImportError
:
class
_Spectrum_Base
:
...
...
est/core/types/test/test_spectra.py
View file @
7b374731
...
...
@@ -31,13 +31,12 @@ import tempfile
import
os
import
unittest
from
est.core.types
import
Spectrum
from
est.core.types
import
Dim
from
est.core.utils
import
spectra
as
spectra_utils
from
est.core.types
import
XASObject
import
shutil
try
:
import
PyMca5
import
PyMca5
# noqa
except
ImportError
:
has_pymca
=
False
else
:
...
...
est/core/types/test/test_spectrum.py
View file @
7b374731
...
...
@@ -32,10 +32,9 @@ import os
import
unittest
from
est.core.types
import
Spectrum
from
est.units
import
ur
from
est.core.types
import
Dim
try
:
import
PyMca5
import
PyMca5
# noqa
except
ImportError
:
has_pymca
=
False
else
:
...
...
est/core/types/test/test_xas_object.py
View file @
7b374731
...
...
@@ -38,12 +38,11 @@ from est.core.utils import spectra as spectra_utils
from
est.core.io
import
read
as
read_xas
from
silx.io.url
import
DataUrl
import
json
import
pint
import
silx.io.utils
from
est.core.types
import
Dim
try
:
import
PyMca5
import
PyMca5
# noqa
except
ImportError
:
has_pymca
=
False
else
:
...
...
Prev
1
2
3
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