NeXpy 1.0.9__tar.gz → 2.0.0__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.
- nexpy-2.0.0/.github/dependabot.yaml +13 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/.github/workflows/ci.yml +12 -4
- nexpy-2.0.0/.github/workflows/sphinx.yml +31 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/PKG-INFO +88 -30
- nexpy-2.0.0/README.rst +175 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/conda-recipe/meta.yaml +16 -14
- nexpy-2.0.0/docs/Makefile +20 -0
- nexpy-2.0.0/docs/requirements.txt +3 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/conf.py +69 -65
- nexpy-2.0.0/docs/source/images/manage-plugins.png +0 -0
- nexpy-2.0.0/docs/source/images/options-tab.png +0 -0
- nexpy-2.0.0/docs/source/images/projection-tab.png +0 -0
- nexpy-2.0.0/docs/source/images/rotation-plot.png +0 -0
- nexpy-2.0.0/docs/source/images/validation-panel.png +0 -0
- nexpy-2.0.0/docs/source/index.rst +65 -0
- nexpy-2.0.0/docs/source/pythongui.rst +1545 -0
- nexpy-2.0.0/docs/source/pythonshell.rst +1361 -0
- nexpy-2.0.0/pyproject.toml +75 -0
- nexpy-2.0.0/setup.cfg +4 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/NeXpy.egg-info/PKG-INFO +88 -30
- nexpy-2.0.0/src/NeXpy.egg-info/SOURCES.txt +116 -0
- nexpy-2.0.0/src/NeXpy.egg-info/dependency_links.txt +1 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/NeXpy.egg-info/requires.txt +15 -16
- nexpy-2.0.0/src/nexpy/_version.py +34 -0
- nexpy-2.0.0/src/nexpy/examples/plugins/README.rst +46 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/examples/plugins/chopper_plugin/chopper/convert_qe.py +3 -2
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/examples/plugins/chopper_plugin/chopper/get_ei.py +3 -2
- nexpy-2.0.0/src/nexpy/gui/consoleapp.py +335 -0
- nexpy-1.0.9/setup.py → nexpy-2.0.0/src/nexpy/gui/datadialogs.py +9 -4
- nexpy-1.0.9/src/nexpy/gui/datadialogs.py → nexpy-2.0.0/src/nexpy/gui/dialogs.py +2972 -1860
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/fitdialogs.py +833 -187
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/importdialog.py +24 -9
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/mainwindow.py +862 -347
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/plotview.py +843 -298
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/pyqt.py +9 -0
- nexpy-2.0.0/src/nexpy/gui/resources/backward-icon.png +0 -0
- nexpy-2.0.0/src/nexpy/gui/resources/forward-icon.png +0 -0
- nexpy-2.0.0/src/nexpy/gui/resources/pause-icon.png +0 -0
- nexpy-2.0.0/src/nexpy/gui/resources/refresh-icon.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/scripteditor.py +138 -88
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/treeview.py +385 -40
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/utils.py +666 -118
- nexpy-2.0.0/src/nexpy/gui/widgets.py +4657 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/nexpygui.py +4 -4
- nexpy-2.0.0/src/nexpy/readers/readnpy.py +49 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/readers/readspec.py +11 -12
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/readers/readstack.py +9 -15
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/readers/readtiff.py +4 -4
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/readers/readtxt.py +9 -8
- {nexpy-1.0.9 → nexpy-2.0.0}/tests/test_imports.py +1 -8
- nexpy-1.0.9/README.rst +0 -167
- nexpy-1.0.9/doc/Makefile +0 -156
- nexpy-1.0.9/doc/source/images/options-tab.png +0 -0
- nexpy-1.0.9/doc/source/images/projection-tab.png +0 -0
- nexpy-1.0.9/doc/source/index.rst +0 -36
- nexpy-1.0.9/doc/source/pythongui.rst +0 -1423
- nexpy-1.0.9/doc/source/pythonshell.rst +0 -1202
- nexpy-1.0.9/pyproject.toml +0 -6
- nexpy-1.0.9/setup.cfg +0 -87
- nexpy-1.0.9/src/NeXpy.egg-info/SOURCES.txt +0 -175
- nexpy-1.0.9/src/nexpy/_version.py +0 -16
- nexpy-1.0.9/src/nexpy/api/frills/__init__.py +0 -0
- nexpy-1.0.9/src/nexpy/api/frills/fit.py +0 -239
- nexpy-1.0.9/src/nexpy/api/frills/functions/__init__.py +0 -0
- nexpy-1.0.9/src/nexpy/api/frills/models/__init__.py +0 -0
- nexpy-1.0.9/src/nexpy/definitions/__init__.py +0 -0
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXaperture.nxdl.xml +0 -104
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXattenuator.nxdl.xml +0 -123
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXbeam.nxdl.xml +0 -340
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXbeam_stop.nxdl.xml +0 -125
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXbending_magnet.nxdl.xml +0 -120
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXcapillary.nxdl.xml +0 -102
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXcite.nxdl.xml +0 -70
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXcollection.nxdl.xml +0 -68
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXcollimator.nxdl.xml +0 -112
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXcrystal.nxdl.xml +0 -333
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXcylindrical_geometry.nxdl.xml +0 -108
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXdata.nxdl.xml +0 -508
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXdetector.nxdl.xml +0 -967
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXdetector_channel.nxdl.xml +0 -162
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXdetector_group.nxdl.xml +0 -103
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXdetector_module.nxdl.xml +0 -180
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXdisk_chopper.nxdl.xml +0 -179
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXentry.nxdl.xml +0 -230
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXenvironment.nxdl.xml +0 -74
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXevent_data.nxdl.xml +0 -122
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXfermi_chopper.nxdl.xml +0 -114
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXfilter.nxdl.xml +0 -195
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXflipper.nxdl.xml +0 -93
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXfresnel_zone_plate.nxdl.xml +0 -104
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXgeometry.nxdl.xml +0 -80
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXgrating.nxdl.xml +0 -114
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXguide.nxdl.xml +0 -230
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXinsertion_device.nxdl.xml +0 -111
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXinstrument.nxdl.xml +0 -85
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXlog.nxdl.xml +0 -138
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXmirror.nxdl.xml +0 -194
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXmoderator.nxdl.xml +0 -118
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXmonitor.nxdl.xml +0 -160
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXmonochromator.nxdl.xml +0 -108
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXnote.nxdl.xml +0 -72
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXobject.nxdl.xml +0 -34
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXoff_geometry.nxdl.xml +0 -125
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXorientation.nxdl.xml +0 -70
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXparameters.nxdl.xml +0 -49
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXpdb.nxdl.xml +0 -183
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXpinhole.nxdl.xml +0 -78
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXpolarizer.nxdl.xml +0 -83
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXpositioner.nxdl.xml +0 -109
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXprocess.nxdl.xml +0 -70
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXreflections.nxdl.xml +0 -661
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXroot.nxdl.xml +0 -105
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXsample.nxdl.xml +0 -421
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXsample_component.nxdl.xml +0 -155
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXsensor.nxdl.xml +0 -193
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXshape.nxdl.xml +0 -94
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXslit.nxdl.xml +0 -88
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXsource.nxdl.xml +0 -217
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXsubentry.nxdl.xml +0 -189
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXtransformations.nxdl.xml +0 -221
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXtranslation.nxdl.xml +0 -66
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXuser.nxdl.xml +0 -89
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXvelocity_selector.nxdl.xml +0 -108
- nexpy-1.0.9/src/nexpy/definitions/base_classes/NXxraylens.nxdl.xml +0 -132
- nexpy-1.0.9/src/nexpy/examples/plugins/README.rst +0 -42
- nexpy-1.0.9/src/nexpy/gui/__init__.py +0 -0
- nexpy-1.0.9/src/nexpy/gui/consoleapp.py +0 -370
- nexpy-1.0.9/src/nexpy/gui/resources/backward-icon.png +0 -0
- nexpy-1.0.9/src/nexpy/gui/resources/forward-icon.png +0 -0
- nexpy-1.0.9/src/nexpy/gui/resources/pause-icon.png +0 -0
- nexpy-1.0.9/src/nexpy/gui/resources/refresh-icon.png +0 -0
- nexpy-1.0.9/src/nexpy/gui/widgets.py +0 -1378
- nexpy-1.0.9/src/nexpy/plugins/__init__.py +0 -0
- nexpy-1.0.9/src/nexpy/readers/__init__.py +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/.gitattributes +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/.gitignore +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/COPYING +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/README.md +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/conda-recipe/bld.bat +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/conda-recipe/build.sh +0 -0
- /nexpy-1.0.9/src/NeXpy.egg-info/dependency_links.txt → /nexpy-2.0.0/docs/.nojekyll +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/make.bat +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/_static/__ignore__.txt +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/examples.rst +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/favicon.ico +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/images/axis-limits-bar.png +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/images/customize-panel.png +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/images/limits-panel.png +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/images/nexpy-fits.png +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/images/nexpy-gui.png +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/images/nexpy-logo.png +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/images/projection-panel.png +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/images/scan-panel.png +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/images/signal-tab.png +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/images/simple-plot.png +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/images/skewed-axis.png +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/images/x-tab.png +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/images/y-tab.png +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/images/z-tab.png +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/images/z-toolbar.png +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/includeme.rst +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/readers.rst +0 -0
- {nexpy-1.0.9/doc → nexpy-2.0.0/docs}/source/treeapi.rst +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/NeXpy.egg-info/entry_points.txt +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/NeXpy.egg-info/pbr.json +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/NeXpy.egg-info/top_level.txt +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/__init__.py +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/examples/README.rst +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/examples/chopper.nxs +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/examples/example.nxs +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/examples/plugins/chopper_plugin/chopper/__init__.py +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/examples/plugins/chopper_plugin/chopper/__init__.pyc +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/examples/plugins/chopper_plugin/chopper/convert_qe.pyc +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/examples/plugins/chopper_plugin/chopper/get_ei.pyc +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/examples/plugins/chopper_plugin/pyproject.toml +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/examples/scripts/README.rst +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/examples/scripts/chopper_plot.py +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/examples/scripts/example.py +0 -0
- {nexpy-1.0.9/src/nexpy/api → nexpy-2.0.0/src/nexpy/gui}/__init__.py +0 -0
- {nexpy-1.0.9/src/nexpy/gui/resources/icon → nexpy-2.0.0/src/nexpy/gui/resources}/NeXpy.png +0 -0
- {nexpy-1.0.9/src/nexpy/gui/resources/icon → nexpy-2.0.0/src/nexpy/gui/resources}/NeXpy.svg +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/back.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/customize.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/equal.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/export-data.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/export-figure.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/filesave.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/forward.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/hand.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/home.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/link-icon.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/lock-icon.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/lock-red-icon.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/modify-style.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/move.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/unlock-icon.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/unlock-red-icon.png +0 -0
- {nexpy-1.0.9 → nexpy-2.0.0}/src/nexpy/gui/resources/zoom_to_rect.png +0 -0
- {nexpy-1.0.9/src/nexpy/api/frills → nexpy-2.0.0/src/nexpy}/models/bose.py +0 -0
- {nexpy-1.0.9/src/nexpy/api/frills → nexpy-2.0.0/src/nexpy}/models/critexp.py +0 -0
- {nexpy-1.0.9/src/nexpy/api/frills → nexpy-2.0.0/src/nexpy}/models/op.py +0 -0
- {nexpy-1.0.9/src/nexpy/api/frills → nexpy-2.0.0/src/nexpy}/models/pdfdecay.py +0 -0
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
name: CI
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- 'main'
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- 'main'
|
|
10
|
+
|
|
3
11
|
jobs:
|
|
4
12
|
build:
|
|
5
13
|
|
|
6
14
|
runs-on: ${{ matrix.os }}
|
|
7
15
|
strategy:
|
|
8
16
|
matrix:
|
|
9
|
-
python-version: ["3.
|
|
17
|
+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
10
18
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
11
19
|
|
|
12
20
|
steps:
|
|
13
|
-
- uses: actions/checkout@
|
|
21
|
+
- uses: actions/checkout@v5
|
|
14
22
|
- name: Set up Python ${{ matrix.python-version }}
|
|
15
|
-
uses: actions/setup-python@
|
|
23
|
+
uses: actions/setup-python@v6
|
|
16
24
|
with:
|
|
17
25
|
python-version: ${{ matrix.python-version }}
|
|
18
26
|
- name: Install dependencies
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: "Sphinx: Render Documentation"
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- 'docs'
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- 'docs'
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- name: Build HTML
|
|
20
|
+
uses: ammaraskar/sphinx-action@master
|
|
21
|
+
- name: Upload artifacts
|
|
22
|
+
uses: actions/upload-artifact@v4
|
|
23
|
+
with:
|
|
24
|
+
name: html-docs
|
|
25
|
+
path: docs/build/html/
|
|
26
|
+
- name: Deploy to GitHub Pages
|
|
27
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
28
|
+
if: ${{github.ref == 'refs/heads/docs'}}
|
|
29
|
+
with:
|
|
30
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
31
|
+
publish_dir: docs/build/html
|
|
@@ -1,51 +1,109 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: NeXpy
|
|
3
|
-
Version:
|
|
4
|
-
Summary:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: Python GUI to analyze NeXus data
|
|
5
|
+
Author-email: Raymond Osborn <rayosborn@mac.com>
|
|
6
|
+
License: Licensing Terms for NeXpy
|
|
7
|
+
-------------------------
|
|
8
|
+
|
|
9
|
+
NeXpy is licensed under the terms of the Modified BSD License (also known as
|
|
10
|
+
New or Revised BSD), as follows:
|
|
11
|
+
|
|
12
|
+
Copyright (c) 2014-2021, NeXpy Development Team
|
|
13
|
+
|
|
14
|
+
All rights reserved.
|
|
15
|
+
|
|
16
|
+
Redistribution and use in source and binary forms, with or without
|
|
17
|
+
modification, are permitted provided that the following conditions are met:
|
|
18
|
+
|
|
19
|
+
Redistributions of source code must retain the above copyright notice, this
|
|
20
|
+
list of conditions and the following disclaimer.
|
|
21
|
+
|
|
22
|
+
Redistributions in binary form must reproduce the above copyright notice, this
|
|
23
|
+
list of conditions and the following disclaimer in the documentation and/or
|
|
24
|
+
other materials provided with the distribution.
|
|
25
|
+
|
|
26
|
+
Neither the name of the NeXpy Development Team nor the names of its
|
|
27
|
+
contributors may be used to endorse or promote products derived from this
|
|
28
|
+
software without specific prior written permission.
|
|
29
|
+
|
|
30
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
31
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
32
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
33
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
|
34
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
35
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
36
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
37
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
38
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
39
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
40
|
+
|
|
41
|
+
About the NeXpy Development Team
|
|
42
|
+
----------------------------------
|
|
43
|
+
|
|
44
|
+
The NeXpy Development Team is the set of all contributors to the NeXpy
|
|
45
|
+
project on the Github at https://github.com/nexpy/nexpy. The project is
|
|
46
|
+
currently led by Ray Osborn.
|
|
47
|
+
|
|
48
|
+
Copyright
|
|
49
|
+
---------
|
|
50
|
+
|
|
51
|
+
The following banner should be used in any source code file to indicate the
|
|
52
|
+
copyright and license terms:
|
|
53
|
+
|
|
54
|
+
#-----------------------------------------------------------------------------
|
|
55
|
+
# Copyright (c) 2014-2021, NeXpy Development Team.
|
|
56
|
+
#
|
|
57
|
+
# Distributed under the terms of the Modified BSD License.
|
|
58
|
+
#
|
|
59
|
+
# The full license is in the file COPYING, distributed with this software.
|
|
60
|
+
#-----------------------------------------------------------------------------
|
|
61
|
+
|
|
62
|
+
Project-URL: Homepage, https://nexpy.github.io/nexpy
|
|
63
|
+
Project-URL: Repository, https://github.com/nexpy/nexpy.git
|
|
64
|
+
Project-URL: Issues, https://github.com/nexpy/nexpy/issues
|
|
65
|
+
Project-URL: Documentation, https://nexpy.github.io/nexpy
|
|
66
|
+
Project-URL: Changelog, https://github.com/nexpy/nexpy/releases
|
|
67
|
+
Keywords: neutron scattering,x-ray scattering,data analysis,visualization
|
|
10
68
|
Classifier: Development Status :: 5 - Production/Stable
|
|
69
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
11
70
|
Classifier: Intended Audience :: Developers
|
|
12
71
|
Classifier: Intended Audience :: Science/Research
|
|
13
|
-
Classifier:
|
|
14
|
-
Classifier: Programming Language :: Python
|
|
72
|
+
Classifier: Topic :: Scientific/Engineering
|
|
15
73
|
Classifier: Programming Language :: Python :: 3
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
18
74
|
Classifier: Programming Language :: Python :: 3.9
|
|
19
75
|
Classifier: Programming Language :: Python :: 3.10
|
|
20
76
|
Classifier: Programming Language :: Python :: 3.11
|
|
21
77
|
Classifier: Programming Language :: Python :: 3.12
|
|
78
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
79
|
Classifier: Topic :: Scientific/Engineering
|
|
23
80
|
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
24
|
-
Requires-Python: >=3.
|
|
81
|
+
Requires-Python: >=3.9
|
|
25
82
|
Description-Content-Type: text/markdown
|
|
26
83
|
License-File: COPYING
|
|
27
|
-
Requires-Dist:
|
|
28
|
-
Requires-Dist:
|
|
29
|
-
Requires-Dist:
|
|
30
|
-
Requires-Dist: h5py>=2.9
|
|
31
|
-
Requires-Dist: qtpy>=2.4
|
|
32
|
-
Requires-Dist: qtconsole>=5.4.3
|
|
84
|
+
Requires-Dist: ansi2html
|
|
85
|
+
Requires-Dist: fabio
|
|
86
|
+
Requires-Dist: h5py
|
|
33
87
|
Requires-Dist: ipython
|
|
34
|
-
Requires-Dist:
|
|
88
|
+
Requires-Dist: lmfit
|
|
35
89
|
Requires-Dist: matplotlib
|
|
36
|
-
Requires-Dist: lmfit>=1.0.3
|
|
37
|
-
Requires-Dist: pylatexenc
|
|
38
|
-
Requires-Dist: ansi2html
|
|
39
|
-
Requires-Dist: pillow
|
|
40
90
|
Requires-Dist: mplcursors
|
|
41
|
-
Requires-Dist:
|
|
42
|
-
Requires-Dist:
|
|
43
|
-
|
|
44
|
-
Requires-Dist:
|
|
45
|
-
|
|
46
|
-
Requires-Dist:
|
|
91
|
+
Requires-Dist: nexusformat>=2.0.0
|
|
92
|
+
Requires-Dist: numpy
|
|
93
|
+
Requires-Dist: packaging
|
|
94
|
+
Requires-Dist: pillow
|
|
95
|
+
Requires-Dist: pygments
|
|
96
|
+
Requires-Dist: pylatexenc
|
|
97
|
+
Requires-Dist: qtconsole
|
|
98
|
+
Requires-Dist: qtpy
|
|
99
|
+
Requires-Dist: scipy
|
|
100
|
+
Requires-Dist: importlib_metadata; python_version < "3.10"
|
|
101
|
+
Requires-Dist: importlib_resources; python_version < "3.10"
|
|
47
102
|
Provides-Extra: testing
|
|
48
103
|
Requires-Dist: pytest; extra == "testing"
|
|
104
|
+
Provides-Extra: spec
|
|
105
|
+
Requires-Dist: spec2nexus; extra == "spec"
|
|
106
|
+
Dynamic: license-file
|
|
49
107
|
|
|
50
108
|
Introduction
|
|
51
109
|
============
|
nexpy-2.0.0/README.rst
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
Installation
|
|
2
|
+
============
|
|
3
|
+
Released versions of NeXpy are available on `PyPI
|
|
4
|
+
<https://pypi.python.org/pypi/NeXpy/>`__ and `conda-forge
|
|
5
|
+
<https://anaconda.org/conda-forge/nexpy>`__.
|
|
6
|
+
|
|
7
|
+
You can therefore install using 'pip'::
|
|
8
|
+
|
|
9
|
+
$ pip install nexpy
|
|
10
|
+
|
|
11
|
+
or 'conda'::
|
|
12
|
+
|
|
13
|
+
$ conda install -c conda-forge nexpy
|
|
14
|
+
|
|
15
|
+
.. note:: You can add conda-forge to your default channels so that it is
|
|
16
|
+
automatically searched when installing. Just type
|
|
17
|
+
``conda config --add channels conda-forge``.
|
|
18
|
+
|
|
19
|
+
If you have the `Python Setup Tools
|
|
20
|
+
<https://pypi.python.org/pypi/setuptools>`__, you can install the
|
|
21
|
+
package from the source code either by downloading one of the `Github
|
|
22
|
+
releases <https://github.com/nexpy/nexpy/releases>`__ or by cloning the
|
|
23
|
+
latest development version in the `NeXpy Git repository
|
|
24
|
+
<https://github.com/nexpy/nexpy>`__::
|
|
25
|
+
|
|
26
|
+
$ git clone https://github.com/nexpy/nexpy.git
|
|
27
|
+
|
|
28
|
+
Then use standard Python tools to build and/or install a distribution
|
|
29
|
+
from within the source directory::
|
|
30
|
+
|
|
31
|
+
$ python -m build # build a distribution
|
|
32
|
+
$ python -m pip install . # install the package
|
|
33
|
+
|
|
34
|
+
The Python API for reading and writing NeXus files is in a separate
|
|
35
|
+
package, `nexusformat <https://github.com/nexpy/nexusformat>`__, which
|
|
36
|
+
is also available on `PyPI <https://pypi.python.org/pypi/nexusformat>`__
|
|
37
|
+
and `conda-forge <https://anaconda.org/conda-forge/nexusformat>`__.
|
|
38
|
+
|
|
39
|
+
If the NeXpy GUI is not required, the package may be used in any Python
|
|
40
|
+
shell. It may be installed using::
|
|
41
|
+
|
|
42
|
+
$ pip install nexusformat
|
|
43
|
+
|
|
44
|
+
or::
|
|
45
|
+
|
|
46
|
+
$ conda install -c conda-forge nexusformat
|
|
47
|
+
|
|
48
|
+
The package can also be installed from the source code either by
|
|
49
|
+
downloading one of the `Github releases
|
|
50
|
+
<https://github.com/nexpy/nexusformat/releases>`__ or by cloning the
|
|
51
|
+
latest development version in the `NeXpy Git repository
|
|
52
|
+
<https://github.com/nexpy/nexusformat>`__::
|
|
53
|
+
|
|
54
|
+
$ git clone https://github.com/nexpy/nexusformat.git
|
|
55
|
+
|
|
56
|
+
Required Libraries
|
|
57
|
+
==================
|
|
58
|
+
Python Command-Line API
|
|
59
|
+
-----------------------
|
|
60
|
+
NeXpy provides a GUI interface to the `nexusformat API
|
|
61
|
+
<https://github.com/nexpy/nexusformat>`__, which uses `h5py
|
|
62
|
+
<http://h5py.org>`__ to read and write HDF5 files that implement the
|
|
63
|
+
`NeXus data format standard <https://www.nexusformat.org>`__. It does
|
|
64
|
+
not use the NeXus C API, which means that the current version cannot
|
|
65
|
+
read and write legacy HDF4 or XML NeXus files. One of the `NeXus
|
|
66
|
+
conversion utilities <https://manual.nexusformat.org/utilities.html>`__
|
|
67
|
+
should be used to convert such files to HDF5.
|
|
68
|
+
|
|
69
|
+
If you only intend to utilize the Python API from the command-line, the
|
|
70
|
+
only other required libraries are `NumPy <https://numpy.org>`__ and
|
|
71
|
+
`SciPy <http://scipy.org>`__. Autocompletion of group and field paths
|
|
72
|
+
within an open file is available if `IPython <https://ipython.org/>`__
|
|
73
|
+
is installed.
|
|
74
|
+
|
|
75
|
+
================= =================================================
|
|
76
|
+
Library URL
|
|
77
|
+
================= =================================================
|
|
78
|
+
nexusformat https://github.com/nexpy/nexusformat/
|
|
79
|
+
h5py https://www.h5py.org
|
|
80
|
+
numpy https://numpy.org/
|
|
81
|
+
scipy https://scipy.org/
|
|
82
|
+
packaging https://packaging.pypa.io/
|
|
83
|
+
dateutil https://dateutil.readthedocs.io/
|
|
84
|
+
colored https://dslackw.gitlab.io/colored/
|
|
85
|
+
pygments https://pygments.org/
|
|
86
|
+
================= =================================================
|
|
87
|
+
|
|
88
|
+
NeXpy GUI
|
|
89
|
+
---------
|
|
90
|
+
The GUI is built using the PyQt. The `qtpy package
|
|
91
|
+
<https://github.com/spyder-ide/qtpy>`__ is used to import whatever PyQt
|
|
92
|
+
library is installed, whether PyQt5, PyQt6, PySide2, or PySide6.
|
|
93
|
+
|
|
94
|
+
NeXpy embeds an `IPython shell <http://ipython.org/>`__ and `Matplotlib
|
|
95
|
+
plotting pane <http://matplotlib.sourceforge.net>`__, within a Qt GUI
|
|
96
|
+
based on the Jupyter QtConsole with an in-process kernel.
|
|
97
|
+
|
|
98
|
+
Least-squares fitting of 1D data uses the `LMFIT package
|
|
99
|
+
<https://lmfit.github.io/lmfit-py/>`__.
|
|
100
|
+
|
|
101
|
+
================= =================================================
|
|
102
|
+
Library URL
|
|
103
|
+
================= =================================================
|
|
104
|
+
IPython https://ipython.org/
|
|
105
|
+
qtconsole https://qtconsole.readthedocs.io/
|
|
106
|
+
qtpy https://github.com/spyder-ide/qtpy
|
|
107
|
+
matplotlib https://matplotlib.org/
|
|
108
|
+
lmfit https://lmfit.github.io/lmfit-py/
|
|
109
|
+
fabio https://github.com/silx-kit/fabio
|
|
110
|
+
pillow https://pillow.readthedocs.io/
|
|
111
|
+
pylatexenc https://pylatexenc.readthedocs.io/
|
|
112
|
+
ansi2html https://pypi.python.org/pypi/ansi2html/
|
|
113
|
+
mplcursors https://mplcursors.readthedocs.io/
|
|
114
|
+
================= =================================================
|
|
115
|
+
|
|
116
|
+
Additional Packages
|
|
117
|
+
-------------------
|
|
118
|
+
Importers may require additional libraries to read the imported files in
|
|
119
|
+
their native format, *e.g.*, `spec2nexus
|
|
120
|
+
<http://spec2nexus.readthedocs.org/>`__ for reading SPEC files.
|
|
121
|
+
|
|
122
|
+
From v0.9.1, a new 2D smoothing option is available in the list of
|
|
123
|
+
interpolations in the signal tab if `astropy <http://www.astropy.org>`__
|
|
124
|
+
is installed. It is labelled 'convolve' and provides, by default, a
|
|
125
|
+
2-pixel Gaussian smoothing of the data. The number of pixels can be
|
|
126
|
+
changed in the shell by setting ``plotview.smooth``.
|
|
127
|
+
|
|
128
|
+
================= =================================================
|
|
129
|
+
Library URL
|
|
130
|
+
================= =================================================
|
|
131
|
+
spec2nexus http://spec2nexus.readthedocs.org/
|
|
132
|
+
astropy http://www.astropy.org/
|
|
133
|
+
================= =================================================
|
|
134
|
+
|
|
135
|
+
.. note:: NeXpy should still run without these additional packages, but
|
|
136
|
+
invoking the relevant menu items may trigger a warning.
|
|
137
|
+
|
|
138
|
+
Running the GUI
|
|
139
|
+
---------------
|
|
140
|
+
To run from the installed location, add the $prefix/bin directory to
|
|
141
|
+
your path if you installed outside the python installation, and then
|
|
142
|
+
run::
|
|
143
|
+
|
|
144
|
+
$ nexpy [-r]
|
|
145
|
+
|
|
146
|
+
The -r option restores all files loaded in the previous session.
|
|
147
|
+
|
|
148
|
+
Semantic Versioning
|
|
149
|
+
-------------------
|
|
150
|
+
NeXpy uses `Semantic Versioning <http://semver.org/spec/v2.0.0.html>`__.
|
|
151
|
+
|
|
152
|
+
User Support
|
|
153
|
+
------------
|
|
154
|
+
Consult the `NeXpy documentation <http://nexpy.github.io/nexpy/>`__ for
|
|
155
|
+
details of both the Python command-line API and how to use the NeXpy
|
|
156
|
+
GUI. If you have any general questions concerning the use of NeXpy,
|
|
157
|
+
please address them to the `NeXus Mailing List
|
|
158
|
+
<http://download.nexusformat.org/doc/html/mailinglist.html>`__. If you
|
|
159
|
+
discover any bugs, please submit a `Github issue
|
|
160
|
+
<https://github.com/nexpy/nexpy/issues>`__, preferably with relevant
|
|
161
|
+
tracebacks.
|
|
162
|
+
|
|
163
|
+
Acknowledgements
|
|
164
|
+
----------------
|
|
165
|
+
The `NeXus format <http://www.nexusformat.org>`__ for neutron, x-ray and
|
|
166
|
+
muon data is developed by an international collaboration under the
|
|
167
|
+
supervision of the `NeXus International Advisory Committee
|
|
168
|
+
<https://www.nexusformat.org/NIAC.html>`__. The Python tree API used in
|
|
169
|
+
NeXpy was originally developed by Paul Kienzle, who also wrote the
|
|
170
|
+
standard Python interface to the NeXus C-API. The original version of
|
|
171
|
+
NeXpy was initially developed by Boyana Norris, Jason Sarich, and Daniel
|
|
172
|
+
Lowell, and Ray Osborn using wxPython, and formed the inspiration for
|
|
173
|
+
the current PyQt version. Validation of NeXus files was developed by
|
|
174
|
+
Kaitlyn Marlor and Justin Wozniak. I am grateful to Tom Schoonjans for
|
|
175
|
+
installing the packages on conda-forge.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
package:
|
|
2
2
|
name: nexpy
|
|
3
|
-
version: "
|
|
3
|
+
version: "2.0.0"
|
|
4
4
|
|
|
5
5
|
source:
|
|
6
6
|
git_url: https://github.com/nexpy/nexpy.git
|
|
7
|
-
git_tag:
|
|
7
|
+
git_tag: v2.0.0
|
|
8
8
|
|
|
9
9
|
build:
|
|
10
10
|
entry_points:
|
|
@@ -14,26 +14,28 @@ build:
|
|
|
14
14
|
|
|
15
15
|
requirements:
|
|
16
16
|
build:
|
|
17
|
-
- python >=3.
|
|
17
|
+
- python >=3.9
|
|
18
18
|
- setuptools
|
|
19
19
|
- setuptools_scm
|
|
20
20
|
|
|
21
21
|
run:
|
|
22
|
-
- python >=3.
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
- scipy
|
|
22
|
+
- python >= 3.9
|
|
23
|
+
- ansi2html
|
|
24
|
+
- fabio
|
|
26
25
|
- h5py
|
|
27
|
-
- qtpy >= 2.4
|
|
28
26
|
- ipython
|
|
29
|
-
-
|
|
30
|
-
- ipykernel >=6.15.2
|
|
27
|
+
- lmfit
|
|
31
28
|
- matplotlib
|
|
32
|
-
- lmfit >=1.0.3
|
|
33
|
-
- ansi2html
|
|
34
|
-
- pylatexenc
|
|
35
|
-
- pillow
|
|
36
29
|
- mplcursors
|
|
30
|
+
- nexusformat >= 2.0.0b3
|
|
31
|
+
- numpy
|
|
32
|
+
- packaging
|
|
33
|
+
- pillow
|
|
34
|
+
- pygments
|
|
35
|
+
- pylatexenc
|
|
36
|
+
- qtconsole
|
|
37
|
+
- qtpy
|
|
38
|
+
- scipy
|
|
37
39
|
|
|
38
40
|
test:
|
|
39
41
|
imports:
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Minimal makefile for Sphinx documentation
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# You can set these variables from the command line, and also
|
|
5
|
+
# from the environment for the first two.
|
|
6
|
+
SPHINXOPTS ?=
|
|
7
|
+
SPHINXBUILD ?= sphinx-build
|
|
8
|
+
SOURCEDIR = source
|
|
9
|
+
BUILDDIR = build
|
|
10
|
+
|
|
11
|
+
# Put it first so that "make" without argument is like "make help".
|
|
12
|
+
help:
|
|
13
|
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
14
|
+
|
|
15
|
+
.PHONY: help Makefile
|
|
16
|
+
|
|
17
|
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
18
|
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
19
|
+
%: Makefile
|
|
20
|
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|