pytxs 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytxs-0.2.0/pytxs.egg-info → pytxs-0.2.1}/PKG-INFO +31 -15
- pytxs-0.2.1/README.rst +82 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/conf.py +8 -4
- {pytxs-0.2.0 → pytxs-0.2.1}/pyproject.toml +1 -0
- {pytxs-0.2.0 → pytxs-0.2.1/pytxs.egg-info}/PKG-INFO +31 -15
- {pytxs-0.2.0 → pytxs-0.2.1}/pytxs.egg-info/SOURCES.txt +1 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/_version.py +3 -3
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/analysis/plot.py +3 -3
- pytxs-0.2.1/txs/tests/test_imports.py +25 -0
- pytxs-0.2.0/README.rst +0 -67
- {pytxs-0.2.0 → pytxs-0.2.1}/.flake8 +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/LICENSE.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/MANIFEST.in +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/Makefile +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/fig/fig_plot_diffs.png +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/fig/fig_setup_beamline.png +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/fig/fig_txs_plot_abs.png +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/fig/fig_txs_plot_azim_regroup.png +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/make.bat +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/analysis.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/datared.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/help.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/import.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/index.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/license.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/mask.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/reference/analysis/index.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/reference/analysis/plot.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/reference/analysis/svd.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/reference/analysis/utils.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/reference/azav.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/reference/common.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/reference/corr.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/reference/datared.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/reference/datasets.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/reference/heating.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/reference/live.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/reference/plot.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/reference/utils.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/docs/source/reference.rst +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/pytxs.egg-info/dependency_links.txt +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/pytxs.egg-info/entry_points.txt +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/pytxs.egg-info/requires.txt +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/pytxs.egg-info/top_level.txt +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/requirements-dev.txt +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/setup.cfg +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/setup.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/__init__.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/analysis/__init__.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/analysis/svd.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/analysis/utils.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/app/MainWindow.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/app/PlotBase.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/app/PlotHeatmap.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/app/ProcessWorker.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/app/__init__.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/app/__main__.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/app/actions.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/app/mainwindow.ui +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/app/plot.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/app/tests/test_ProcessWorker.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/app/txs.svg +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/app/utils.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/app/widgets.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/azav.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/blissdata.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/common.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/corr.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/datared.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/datasets.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/detectors/__init__.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/detectors/jungfrau.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/heating.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/live.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/plot.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/tests/conftest.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/tests/test_azav.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/tests/test_corr.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/tests/test_datared.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/tests/test_datasets.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/tests/test_utils.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/utils.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/txs/xes.py +0 -0
- {pytxs-0.2.0 → pytxs-0.2.1}/versioneer.py +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytxs
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: time-resolved x-ray scattering
|
|
5
5
|
Author-email: Matteo Levantino <matteo.levantino@esrf.fr>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://gitlab.esrf.fr/levantin/txs
|
|
8
|
+
Project-URL: Documentation, https://levantin.gitlab-pages.esrf.fr/txs
|
|
8
9
|
Classifier: Intended Audience :: Science/Research
|
|
9
10
|
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
10
11
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -33,23 +34,35 @@ txs
|
|
|
33
34
|
====
|
|
34
35
|
|
|
35
36
|
**txs** is a free and open-source python package for the analysis
|
|
36
|
-
of time-resolved x-ray scattering/spectroscopy data.
|
|
37
|
+
of time-resolved x-ray scattering/spectroscopy data.
|
|
38
|
+
|
|
39
|
+
It is developed at the ID09 beamline of the ESRF and covers azimuthal
|
|
40
|
+
integration of detector images, data reduction of pump-probe experiments
|
|
41
|
+
(differences, averaging, outlier rejection) and plotting, for BLISS (HDF5)
|
|
42
|
+
and legacy ID09 (EDF) datasets, with a graphical interface.
|
|
37
43
|
|
|
38
44
|
|
|
39
45
|
GETTING txs
|
|
40
46
|
------------
|
|
41
47
|
|
|
42
|
-
|
|
48
|
+
txs requires Python 3.10 or later and runs on all major platforms.
|
|
49
|
+
For download and installation:
|
|
43
50
|
|
|
44
51
|
.. code-block:: bash
|
|
45
52
|
|
|
46
53
|
pip install pytxs
|
|
47
54
|
|
|
48
|
-
|
|
55
|
+
With the graphical interface (``txs`` command):
|
|
56
|
+
|
|
57
|
+
.. code-block:: bash
|
|
58
|
+
|
|
59
|
+
pip install "pytxs[gui]"
|
|
60
|
+
|
|
61
|
+
For installing a specific version (e.g. version 0.2.1):
|
|
49
62
|
|
|
50
63
|
.. code-block:: bash
|
|
51
64
|
|
|
52
|
-
pip install "pytxs==0.
|
|
65
|
+
pip install "pytxs==0.2.1"
|
|
53
66
|
|
|
54
67
|
For staying on the 0.x versions (before the reorganization of the dataset
|
|
55
68
|
handling in version 1.0, e.g. for scripts using ``txs.BlissDataset``):
|
|
@@ -58,30 +71,32 @@ handling in version 1.0, e.g. for scripts using ``txs.BlissDataset``):
|
|
|
58
71
|
|
|
59
72
|
pip install "pytxs<1"
|
|
60
73
|
|
|
61
|
-
|
|
74
|
+
For upgrading txs to the last released version:
|
|
62
75
|
|
|
63
76
|
.. code-block:: bash
|
|
64
77
|
|
|
65
|
-
pip install
|
|
78
|
+
pip install --upgrade pytxs
|
|
66
79
|
|
|
67
|
-
For
|
|
80
|
+
For installing the development version from the repository (not released,
|
|
81
|
+
it may change at any time):
|
|
68
82
|
|
|
69
83
|
.. code-block:: bash
|
|
70
84
|
|
|
71
|
-
pip install
|
|
85
|
+
pip install git+https://gitlab.esrf.fr/levantin/txs.git@master
|
|
72
86
|
|
|
73
|
-
For
|
|
87
|
+
For reinstalling txs alone (e.g. to go back from the development version to
|
|
88
|
+
a released one) without changing the other installed packages:
|
|
74
89
|
|
|
75
90
|
.. code-block:: bash
|
|
76
91
|
|
|
77
|
-
pip install --force-reinstall
|
|
92
|
+
pip install --force-reinstall --no-deps "pytxs==0.2.1"
|
|
78
93
|
|
|
79
94
|
|
|
80
95
|
DOCUMENTATION
|
|
81
96
|
-------------
|
|
82
97
|
|
|
83
|
-
*
|
|
84
|
-
* Quick guide: https://confluence.esrf.fr/display/ID09KB/txs
|
|
98
|
+
* Documentation: https://levantin.gitlab-pages.esrf.fr/txs
|
|
99
|
+
* Quick guide: https://confluence.esrf.fr/display/ID09KB/txs
|
|
85
100
|
|
|
86
101
|
|
|
87
102
|
SOURCE CODE
|
|
@@ -93,5 +108,6 @@ SOURCE CODE
|
|
|
93
108
|
LICENSE
|
|
94
109
|
-------
|
|
95
110
|
|
|
96
|
-
txs is available under MIT License. See
|
|
97
|
-
|
|
111
|
+
txs is available under MIT License. See
|
|
112
|
+
`LICENSE.rst <https://gitlab.esrf.fr/levantin/txs/-/blob/master/LICENSE.rst>`_
|
|
113
|
+
for more details.
|
pytxs-0.2.1/README.rst
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
====
|
|
2
|
+
txs
|
|
3
|
+
====
|
|
4
|
+
|
|
5
|
+
**txs** is a free and open-source python package for the analysis
|
|
6
|
+
of time-resolved x-ray scattering/spectroscopy data.
|
|
7
|
+
|
|
8
|
+
It is developed at the ID09 beamline of the ESRF and covers azimuthal
|
|
9
|
+
integration of detector images, data reduction of pump-probe experiments
|
|
10
|
+
(differences, averaging, outlier rejection) and plotting, for BLISS (HDF5)
|
|
11
|
+
and legacy ID09 (EDF) datasets, with a graphical interface.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
GETTING txs
|
|
15
|
+
------------
|
|
16
|
+
|
|
17
|
+
txs requires Python 3.10 or later and runs on all major platforms.
|
|
18
|
+
For download and installation:
|
|
19
|
+
|
|
20
|
+
.. code-block:: bash
|
|
21
|
+
|
|
22
|
+
pip install pytxs
|
|
23
|
+
|
|
24
|
+
With the graphical interface (``txs`` command):
|
|
25
|
+
|
|
26
|
+
.. code-block:: bash
|
|
27
|
+
|
|
28
|
+
pip install "pytxs[gui]"
|
|
29
|
+
|
|
30
|
+
For installing a specific version (e.g. version 0.2.1):
|
|
31
|
+
|
|
32
|
+
.. code-block:: bash
|
|
33
|
+
|
|
34
|
+
pip install "pytxs==0.2.1"
|
|
35
|
+
|
|
36
|
+
For staying on the 0.x versions (before the reorganization of the dataset
|
|
37
|
+
handling in version 1.0, e.g. for scripts using ``txs.BlissDataset``):
|
|
38
|
+
|
|
39
|
+
.. code-block:: bash
|
|
40
|
+
|
|
41
|
+
pip install "pytxs<1"
|
|
42
|
+
|
|
43
|
+
For upgrading txs to the last released version:
|
|
44
|
+
|
|
45
|
+
.. code-block:: bash
|
|
46
|
+
|
|
47
|
+
pip install --upgrade pytxs
|
|
48
|
+
|
|
49
|
+
For installing the development version from the repository (not released,
|
|
50
|
+
it may change at any time):
|
|
51
|
+
|
|
52
|
+
.. code-block:: bash
|
|
53
|
+
|
|
54
|
+
pip install git+https://gitlab.esrf.fr/levantin/txs.git@master
|
|
55
|
+
|
|
56
|
+
For reinstalling txs alone (e.g. to go back from the development version to
|
|
57
|
+
a released one) without changing the other installed packages:
|
|
58
|
+
|
|
59
|
+
.. code-block:: bash
|
|
60
|
+
|
|
61
|
+
pip install --force-reinstall --no-deps "pytxs==0.2.1"
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
DOCUMENTATION
|
|
65
|
+
-------------
|
|
66
|
+
|
|
67
|
+
* Documentation: https://levantin.gitlab-pages.esrf.fr/txs
|
|
68
|
+
* Quick guide: https://confluence.esrf.fr/display/ID09KB/txs
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
SOURCE CODE
|
|
72
|
+
-----------
|
|
73
|
+
|
|
74
|
+
* Source code: https://gitlab.esrf.fr/levantin/txs
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
LICENSE
|
|
78
|
+
-------
|
|
79
|
+
|
|
80
|
+
txs is available under MIT License. See
|
|
81
|
+
`LICENSE.rst <https://gitlab.esrf.fr/levantin/txs/-/blob/master/LICENSE.rst>`_
|
|
82
|
+
for more details.
|
|
@@ -24,10 +24,14 @@ project = 'txs'
|
|
|
24
24
|
copyright = '2023, Matteo Levantino'
|
|
25
25
|
author = 'Matteo Levantino'
|
|
26
26
|
|
|
27
|
-
# The
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
release = '
|
|
27
|
+
# The full version (from the installed package, else from the source tree)
|
|
28
|
+
try:
|
|
29
|
+
from importlib.metadata import version as _pkg_version
|
|
30
|
+
release = _pkg_version('pytxs')
|
|
31
|
+
except Exception:
|
|
32
|
+
from txs import __version__ as release
|
|
33
|
+
# The short version shown in the title (without the local '+...' part)
|
|
34
|
+
version = release.split('+')[0]
|
|
31
35
|
|
|
32
36
|
|
|
33
37
|
# -- General configuration ---------------------------------------------------
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytxs
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: time-resolved x-ray scattering
|
|
5
5
|
Author-email: Matteo Levantino <matteo.levantino@esrf.fr>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://gitlab.esrf.fr/levantin/txs
|
|
8
|
+
Project-URL: Documentation, https://levantin.gitlab-pages.esrf.fr/txs
|
|
8
9
|
Classifier: Intended Audience :: Science/Research
|
|
9
10
|
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
10
11
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -33,23 +34,35 @@ txs
|
|
|
33
34
|
====
|
|
34
35
|
|
|
35
36
|
**txs** is a free and open-source python package for the analysis
|
|
36
|
-
of time-resolved x-ray scattering/spectroscopy data.
|
|
37
|
+
of time-resolved x-ray scattering/spectroscopy data.
|
|
38
|
+
|
|
39
|
+
It is developed at the ID09 beamline of the ESRF and covers azimuthal
|
|
40
|
+
integration of detector images, data reduction of pump-probe experiments
|
|
41
|
+
(differences, averaging, outlier rejection) and plotting, for BLISS (HDF5)
|
|
42
|
+
and legacy ID09 (EDF) datasets, with a graphical interface.
|
|
37
43
|
|
|
38
44
|
|
|
39
45
|
GETTING txs
|
|
40
46
|
------------
|
|
41
47
|
|
|
42
|
-
|
|
48
|
+
txs requires Python 3.10 or later and runs on all major platforms.
|
|
49
|
+
For download and installation:
|
|
43
50
|
|
|
44
51
|
.. code-block:: bash
|
|
45
52
|
|
|
46
53
|
pip install pytxs
|
|
47
54
|
|
|
48
|
-
|
|
55
|
+
With the graphical interface (``txs`` command):
|
|
56
|
+
|
|
57
|
+
.. code-block:: bash
|
|
58
|
+
|
|
59
|
+
pip install "pytxs[gui]"
|
|
60
|
+
|
|
61
|
+
For installing a specific version (e.g. version 0.2.1):
|
|
49
62
|
|
|
50
63
|
.. code-block:: bash
|
|
51
64
|
|
|
52
|
-
pip install "pytxs==0.
|
|
65
|
+
pip install "pytxs==0.2.1"
|
|
53
66
|
|
|
54
67
|
For staying on the 0.x versions (before the reorganization of the dataset
|
|
55
68
|
handling in version 1.0, e.g. for scripts using ``txs.BlissDataset``):
|
|
@@ -58,30 +71,32 @@ handling in version 1.0, e.g. for scripts using ``txs.BlissDataset``):
|
|
|
58
71
|
|
|
59
72
|
pip install "pytxs<1"
|
|
60
73
|
|
|
61
|
-
|
|
74
|
+
For upgrading txs to the last released version:
|
|
62
75
|
|
|
63
76
|
.. code-block:: bash
|
|
64
77
|
|
|
65
|
-
pip install
|
|
78
|
+
pip install --upgrade pytxs
|
|
66
79
|
|
|
67
|
-
For
|
|
80
|
+
For installing the development version from the repository (not released,
|
|
81
|
+
it may change at any time):
|
|
68
82
|
|
|
69
83
|
.. code-block:: bash
|
|
70
84
|
|
|
71
|
-
pip install
|
|
85
|
+
pip install git+https://gitlab.esrf.fr/levantin/txs.git@master
|
|
72
86
|
|
|
73
|
-
For
|
|
87
|
+
For reinstalling txs alone (e.g. to go back from the development version to
|
|
88
|
+
a released one) without changing the other installed packages:
|
|
74
89
|
|
|
75
90
|
.. code-block:: bash
|
|
76
91
|
|
|
77
|
-
pip install --force-reinstall
|
|
92
|
+
pip install --force-reinstall --no-deps "pytxs==0.2.1"
|
|
78
93
|
|
|
79
94
|
|
|
80
95
|
DOCUMENTATION
|
|
81
96
|
-------------
|
|
82
97
|
|
|
83
|
-
*
|
|
84
|
-
* Quick guide: https://confluence.esrf.fr/display/ID09KB/txs
|
|
98
|
+
* Documentation: https://levantin.gitlab-pages.esrf.fr/txs
|
|
99
|
+
* Quick guide: https://confluence.esrf.fr/display/ID09KB/txs
|
|
85
100
|
|
|
86
101
|
|
|
87
102
|
SOURCE CODE
|
|
@@ -93,5 +108,6 @@ SOURCE CODE
|
|
|
93
108
|
LICENSE
|
|
94
109
|
-------
|
|
95
110
|
|
|
96
|
-
txs is available under MIT License. See
|
|
97
|
-
|
|
111
|
+
txs is available under MIT License. See
|
|
112
|
+
`LICENSE.rst <https://gitlab.esrf.fr/levantin/txs/-/blob/master/LICENSE.rst>`_
|
|
113
|
+
for more details.
|
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2026-12-
|
|
11
|
+
"date": "2026-12-01T23:02:15+0100",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "0.2.
|
|
14
|
+
"full-revisionid": "37e1ed4ac2ab2e61990c39d42bdfeec52e1cf842",
|
|
15
|
+
"version": "0.2.1"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import numpy as np
|
|
10
10
|
import matplotlib.pyplot as plt
|
|
11
|
-
from matplotlib
|
|
11
|
+
from matplotlib import colormaps
|
|
12
12
|
from ipywidgets import widgets
|
|
13
13
|
|
|
14
14
|
from txs.heating import remove_heating
|
|
@@ -41,7 +41,7 @@ def plot_dataset(
|
|
|
41
41
|
min=0, max=len(delays.keys()) - 1, value=0, step=1, description="delay"
|
|
42
42
|
)
|
|
43
43
|
|
|
44
|
-
cmap =
|
|
44
|
+
cmap = colormaps['tab10']
|
|
45
45
|
|
|
46
46
|
@widgets.interact(delay=delay_slider)
|
|
47
47
|
def update_plot(delay):
|
|
@@ -125,7 +125,7 @@ def plot_svd_analysis(
|
|
|
125
125
|
ax.append(fig.add_subplot(gs[2, 0]))
|
|
126
126
|
ax.append(fig.add_subplot(gs[2, 1]))
|
|
127
127
|
cursor = Cursor(ax[:2])
|
|
128
|
-
cmap =
|
|
128
|
+
cmap = colormaps['gnuplot']
|
|
129
129
|
|
|
130
130
|
svd_rank = widgets.IntSlider(
|
|
131
131
|
min=0,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""Import the modules that 'import txs' does not load.
|
|
2
|
+
|
|
3
|
+
They are otherwise not imported by any test, so an incompatibility with a
|
|
4
|
+
new version of a dependency (e.g. matplotlib.cm.get_cmap, removed in
|
|
5
|
+
matplotlib 3.9) would go unnoticed.
|
|
6
|
+
"""
|
|
7
|
+
import importlib
|
|
8
|
+
|
|
9
|
+
import pytest
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@pytest.mark.parametrize("module", [
|
|
13
|
+
"txs.heating",
|
|
14
|
+
"txs.xes",
|
|
15
|
+
"txs.analysis.utils",
|
|
16
|
+
"txs.analysis.svd",
|
|
17
|
+
"txs.detectors.jungfrau",
|
|
18
|
+
])
|
|
19
|
+
def test_import(module):
|
|
20
|
+
importlib.import_module(module)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def test_import_analysis_plot():
|
|
24
|
+
pytest.importorskip("ipywidgets") # optional, notebooks only
|
|
25
|
+
importlib.import_module("txs.analysis.plot")
|
pytxs-0.2.0/README.rst
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
====
|
|
2
|
-
txs
|
|
3
|
-
====
|
|
4
|
-
|
|
5
|
-
**txs** is a free and open-source python package for the analysis
|
|
6
|
-
of time-resolved x-ray scattering/spectroscopy data.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
GETTING txs
|
|
10
|
-
------------
|
|
11
|
-
|
|
12
|
-
You can run txs on all major platforms. For download and installation:
|
|
13
|
-
|
|
14
|
-
.. code-block:: bash
|
|
15
|
-
|
|
16
|
-
pip install pytxs
|
|
17
|
-
|
|
18
|
-
For installing a specific version (e.g. version 0.0.2):
|
|
19
|
-
|
|
20
|
-
.. code-block:: bash
|
|
21
|
-
|
|
22
|
-
pip install "pytxs==0.0.2"
|
|
23
|
-
|
|
24
|
-
For staying on the 0.x versions (before the reorganization of the dataset
|
|
25
|
-
handling in version 1.0, e.g. for scripts using ``txs.BlissDataset``):
|
|
26
|
-
|
|
27
|
-
.. code-block:: bash
|
|
28
|
-
|
|
29
|
-
pip install "pytxs<1"
|
|
30
|
-
|
|
31
|
-
or, from the repository:
|
|
32
|
-
|
|
33
|
-
.. code-block:: bash
|
|
34
|
-
|
|
35
|
-
pip install git+https://gitlab.esrf.fr/levantin/txs.git@v0.2.0
|
|
36
|
-
|
|
37
|
-
For upgrading txs to the last version/commit:
|
|
38
|
-
|
|
39
|
-
.. code-block:: bash
|
|
40
|
-
|
|
41
|
-
pip install --upgrade git+https://gitlab.esrf.fr/levantin/txs.git
|
|
42
|
-
|
|
43
|
-
For forcing the reinstallation of all packages (including dependencies):
|
|
44
|
-
|
|
45
|
-
.. code-block:: bash
|
|
46
|
-
|
|
47
|
-
pip install --force-reinstall git+https://gitlab.esrf.fr/levantin/txs.git
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
DOCUMENTATION
|
|
51
|
-
-------------
|
|
52
|
-
|
|
53
|
-
* Homepage: https://levantin.gitlab-pages.esrf.fr/txs
|
|
54
|
-
* Quick guide: https://confluence.esrf.fr/display/ID09KB/txs+Python+package
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
SOURCE CODE
|
|
58
|
-
-----------
|
|
59
|
-
|
|
60
|
-
* Source code: https://gitlab.esrf.fr/levantin/txs
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
LICENSE
|
|
64
|
-
-------
|
|
65
|
-
|
|
66
|
-
txs is available under MIT License. See LICENSE.rst for more details.
|
|
67
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|