NeXpy 2.0.0b7__tar.gz → 2.0.0b8__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.0b7 → nexpy-2.0.0b8}/PKG-INFO +1 -1
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/NeXpy.egg-info/PKG-INFO +1 -1
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/_version.py +2 -2
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/fitdialogs.py +14 -4
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/.gitattributes +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/.github/dependabot.yaml +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/.github/workflows/ci.yml +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/.gitignore +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/COPYING +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/README.md +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/README.rst +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/conda-recipe/bld.bat +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/conda-recipe/build.sh +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/conda-recipe/meta.yaml +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/Makefile +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/make.bat +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/_static/__ignore__.txt +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/conf.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/examples.rst +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/favicon.ico +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/axis-limits-bar.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/customize-panel.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/limits-panel.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/nexpy-fits.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/nexpy-gui.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/nexpy-logo.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/options-tab.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/projection-panel.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/projection-tab.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/scan-panel.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/signal-tab.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/simple-plot.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/skewed-axis.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/x-tab.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/y-tab.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/z-tab.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/z-toolbar.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/includeme.rst +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/index.rst +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/pythongui.rst +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/pythonshell.rst +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/readers.rst +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/treeapi.rst +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/pyproject.toml +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/setup.cfg +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/NeXpy.egg-info/SOURCES.txt +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/NeXpy.egg-info/dependency_links.txt +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/NeXpy.egg-info/entry_points.txt +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/NeXpy.egg-info/pbr.json +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/NeXpy.egg-info/requires.txt +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/NeXpy.egg-info/top_level.txt +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/__init__.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/README.rst +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/chopper.nxs +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/example.nxs +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/README.rst +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/__init__.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/__init__.pyc +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/convert_qe.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/convert_qe.pyc +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/get_ei.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/get_ei.pyc +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/pyproject.toml +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/scripts/README.rst +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/scripts/chopper_plot.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/scripts/example.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/__init__.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/consoleapp.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/datadialogs.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/dialogs.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/importdialog.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/mainwindow.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/plotview.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/pyqt.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/NeXpy.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/NeXpy.svg +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/back.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/backward-icon.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/customize.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/equal.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/export-data.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/export-figure.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/filesave.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/forward-icon.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/forward.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/hand.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/home.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/link-icon.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/lock-icon.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/lock-red-icon.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/modify-style.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/move.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/pause-icon.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/refresh-icon.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/unlock-icon.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/unlock-red-icon.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/zoom_to_rect.png +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/scripteditor.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/treeview.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/utils.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/widgets.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/models/bose.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/models/critexp.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/models/op.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/models/pdfdecay.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/nexpygui.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/readers/readnpy.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/readers/readspec.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/readers/readstack.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/readers/readtiff.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/readers/readtxt.py +0 -0
- {nexpy-2.0.0b7 → nexpy-2.0.0b8}/tests/test_imports.py +0 -0
|
@@ -17,5 +17,5 @@ __version__: str
|
|
|
17
17
|
__version_tuple__: VERSION_TUPLE
|
|
18
18
|
version_tuple: VERSION_TUPLE
|
|
19
19
|
|
|
20
|
-
__version__ = version = '2.0.
|
|
21
|
-
__version_tuple__ = version_tuple = (2, 0, 0, '
|
|
20
|
+
__version__ = version = '2.0.0b8'
|
|
21
|
+
__version_tuple__ = version_tuple = (2, 0, 0, 'b8')
|
|
@@ -286,8 +286,10 @@ class FitTab(NXTab):
|
|
|
286
286
|
self.form_combo = NXComboBox()
|
|
287
287
|
self.compose_button = NXPushButton(
|
|
288
288
|
"Compose Models", self.compose_model)
|
|
289
|
+
self.import_button = NXPushButton("Import Model", self.import_fit)
|
|
289
290
|
model_layout = self.make_layout(add_button, self.model_combo,
|
|
290
291
|
self.form_combo, 'stretch',
|
|
292
|
+
self.import_button,
|
|
291
293
|
self.compose_button, align='justified')
|
|
292
294
|
|
|
293
295
|
self.parameter_layout = self.initialize_parameter_grid()
|
|
@@ -499,6 +501,7 @@ class FitTab(NXTab):
|
|
|
499
501
|
Set to True if the data have been fitted.
|
|
500
502
|
"""
|
|
501
503
|
if len(self.models) == 0:
|
|
504
|
+
self.import_button.setVisible(True)
|
|
502
505
|
self.compose_button.setVisible(False)
|
|
503
506
|
self.remove_button.setVisible(False)
|
|
504
507
|
self.remove_combo.setVisible(False)
|
|
@@ -514,6 +517,7 @@ class FitTab(NXTab):
|
|
|
514
517
|
self.plot_combo.setVisible(False)
|
|
515
518
|
self.plot_checkbox.setVisible(False)
|
|
516
519
|
else:
|
|
520
|
+
self.import_button.setVisible(False)
|
|
517
521
|
if len(self.models) > 1:
|
|
518
522
|
self.compose_button.setVisible(True)
|
|
519
523
|
self.remove_button.setVisible(True)
|
|
@@ -790,9 +794,18 @@ class FitTab(NXTab):
|
|
|
790
794
|
except Exception:
|
|
791
795
|
return None, None
|
|
792
796
|
|
|
797
|
+
def import_fit(self):
|
|
798
|
+
"""Select the NXprocess group containing the fit."""
|
|
799
|
+
group = self.treeview.node
|
|
800
|
+
if not isinstance(group, NXprocess):
|
|
801
|
+
display_message("Import Fit",
|
|
802
|
+
"Select a valid NXprocess group in the tree")
|
|
803
|
+
else:
|
|
804
|
+
self.load_fit(group)
|
|
805
|
+
|
|
793
806
|
def load_fit(self, group):
|
|
794
807
|
"""
|
|
795
|
-
|
|
808
|
+
Load a fit from a NeXus NXprocess group.
|
|
796
809
|
|
|
797
810
|
Parameters
|
|
798
811
|
----------
|
|
@@ -840,9 +853,6 @@ class FitTab(NXTab):
|
|
|
840
853
|
if error:
|
|
841
854
|
parameter.stderr = float(
|
|
842
855
|
saved_parameters[p].attrs['error'])
|
|
843
|
-
parameter.vary = True
|
|
844
|
-
else:
|
|
845
|
-
parameter.vary = False
|
|
846
856
|
self.models.append({'name': model_name,
|
|
847
857
|
'class': model_class,
|
|
848
858
|
'model': model,
|
|
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
|
{nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/__init__.py
RENAMED
|
File without changes
|
{nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/__init__.pyc
RENAMED
|
File without changes
|
{nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/convert_qe.py
RENAMED
|
File without changes
|
{nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/convert_qe.pyc
RENAMED
|
File without changes
|
|
File without changes
|
{nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/get_ei.pyc
RENAMED
|
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
|