Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
est
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mauro Rovezzi
est
Commits
06efa841
Commit
06efa841
authored
11 months ago
by
Loic Huder
Browse files
Options
Downloads
Patches
Plain Diff
Remove get_xas_obj
parent
aac6854c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
snippets/raw_bm23_analysis.py
+2
-4
2 additions, 4 deletions
snippets/raw_bm23_analysis.py
src/est/app/utils/xasobj.py
+0
-18
0 additions, 18 deletions
src/est/app/utils/xasobj.py
with
2 additions
and
22 deletions
snippets/raw_bm23_analysis.py
+
2
−
4
View file @
06efa841
from
est.app.utils.xasobj
import
get_xas_obj
from
silx.io.url
import
DataUrl
from
est.core.io
import
read_from_input_information
from
est.units
import
ur
from
larch.xafs
import
etok
from
silx.gui
import
qt
...
...
@@ -162,9 +162,7 @@ class AnalysisThread(threading.Thread):
)
# this could be replace by a larch Spectrum. We would just have to duplicated noise treatment
xas_obj
=
get_xas_obj
(
input_information
=
input_information
,
)
xas_obj
=
read_from_input_information
(
input_information
)
self
.
spectrum
=
xas_obj
.
spectra
.
data
.
flat
[
0
]
# TODO: add a process attact to attach informations from an url.
...
...
This diff is collapsed.
Click to expand it.
src/est/app/utils/xasobj.py
deleted
100644 → 0
+
0
−
18
View file @
aac6854c
import
logging
from
est
import
settings
from
est.core.io
import
read_from_input_information
from
est.io.information
import
InputInformation
def
get_xas_obj
(
input_information
:
InputInformation
,
timeout
=
settings
.
DEFAULT_READ_TIMEOUT
):
"""
load xas object from command line input
:param spec_input: tuple of Union[str, None, dict]
:param float timeout: read time out (for hdf5 only for now)
"""
xas_obj
=
read_from_input_information
(
information
=
input_information
,
timeout
=
timeout
)
return
xas_obj
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment