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.
Files changed (112) hide show
  1. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/PKG-INFO +1 -1
  2. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/NeXpy.egg-info/PKG-INFO +1 -1
  3. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/_version.py +2 -2
  4. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/fitdialogs.py +14 -4
  5. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/.gitattributes +0 -0
  6. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/.github/dependabot.yaml +0 -0
  7. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/.github/workflows/ci.yml +0 -0
  8. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/.gitignore +0 -0
  9. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/COPYING +0 -0
  10. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/README.md +0 -0
  11. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/README.rst +0 -0
  12. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/conda-recipe/bld.bat +0 -0
  13. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/conda-recipe/build.sh +0 -0
  14. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/conda-recipe/meta.yaml +0 -0
  15. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/Makefile +0 -0
  16. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/make.bat +0 -0
  17. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/_static/__ignore__.txt +0 -0
  18. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/conf.py +0 -0
  19. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/examples.rst +0 -0
  20. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/favicon.ico +0 -0
  21. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/axis-limits-bar.png +0 -0
  22. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/customize-panel.png +0 -0
  23. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/limits-panel.png +0 -0
  24. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/nexpy-fits.png +0 -0
  25. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/nexpy-gui.png +0 -0
  26. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/nexpy-logo.png +0 -0
  27. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/options-tab.png +0 -0
  28. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/projection-panel.png +0 -0
  29. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/projection-tab.png +0 -0
  30. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/scan-panel.png +0 -0
  31. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/signal-tab.png +0 -0
  32. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/simple-plot.png +0 -0
  33. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/skewed-axis.png +0 -0
  34. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/x-tab.png +0 -0
  35. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/y-tab.png +0 -0
  36. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/z-tab.png +0 -0
  37. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/images/z-toolbar.png +0 -0
  38. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/includeme.rst +0 -0
  39. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/index.rst +0 -0
  40. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/pythongui.rst +0 -0
  41. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/pythonshell.rst +0 -0
  42. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/readers.rst +0 -0
  43. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/doc/source/treeapi.rst +0 -0
  44. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/pyproject.toml +0 -0
  45. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/setup.cfg +0 -0
  46. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/NeXpy.egg-info/SOURCES.txt +0 -0
  47. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/NeXpy.egg-info/dependency_links.txt +0 -0
  48. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/NeXpy.egg-info/entry_points.txt +0 -0
  49. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/NeXpy.egg-info/pbr.json +0 -0
  50. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/NeXpy.egg-info/requires.txt +0 -0
  51. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/NeXpy.egg-info/top_level.txt +0 -0
  52. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/__init__.py +0 -0
  53. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/README.rst +0 -0
  54. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/chopper.nxs +0 -0
  55. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/example.nxs +0 -0
  56. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/README.rst +0 -0
  57. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/__init__.py +0 -0
  58. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/__init__.pyc +0 -0
  59. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/convert_qe.py +0 -0
  60. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/convert_qe.pyc +0 -0
  61. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/get_ei.py +0 -0
  62. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/chopper/get_ei.pyc +0 -0
  63. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/plugins/chopper_plugin/pyproject.toml +0 -0
  64. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/scripts/README.rst +0 -0
  65. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/scripts/chopper_plot.py +0 -0
  66. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/examples/scripts/example.py +0 -0
  67. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/__init__.py +0 -0
  68. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/consoleapp.py +0 -0
  69. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/datadialogs.py +0 -0
  70. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/dialogs.py +0 -0
  71. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/importdialog.py +0 -0
  72. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/mainwindow.py +0 -0
  73. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/plotview.py +0 -0
  74. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/pyqt.py +0 -0
  75. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/NeXpy.png +0 -0
  76. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/NeXpy.svg +0 -0
  77. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/back.png +0 -0
  78. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/backward-icon.png +0 -0
  79. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/customize.png +0 -0
  80. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/equal.png +0 -0
  81. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/export-data.png +0 -0
  82. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/export-figure.png +0 -0
  83. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/filesave.png +0 -0
  84. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/forward-icon.png +0 -0
  85. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/forward.png +0 -0
  86. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/hand.png +0 -0
  87. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/home.png +0 -0
  88. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/link-icon.png +0 -0
  89. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/lock-icon.png +0 -0
  90. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/lock-red-icon.png +0 -0
  91. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/modify-style.png +0 -0
  92. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/move.png +0 -0
  93. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/pause-icon.png +0 -0
  94. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/refresh-icon.png +0 -0
  95. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/unlock-icon.png +0 -0
  96. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/unlock-red-icon.png +0 -0
  97. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/resources/zoom_to_rect.png +0 -0
  98. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/scripteditor.py +0 -0
  99. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/treeview.py +0 -0
  100. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/utils.py +0 -0
  101. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/gui/widgets.py +0 -0
  102. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/models/bose.py +0 -0
  103. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/models/critexp.py +0 -0
  104. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/models/op.py +0 -0
  105. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/models/pdfdecay.py +0 -0
  106. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/nexpygui.py +0 -0
  107. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/readers/readnpy.py +0 -0
  108. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/readers/readspec.py +0 -0
  109. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/readers/readstack.py +0 -0
  110. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/readers/readtiff.py +0 -0
  111. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/src/nexpy/readers/readtxt.py +0 -0
  112. {nexpy-2.0.0b7 → nexpy-2.0.0b8}/tests/test_imports.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: NeXpy
3
- Version: 2.0.0b7
3
+ Version: 2.0.0b8
4
4
  Summary: Python GUI to analyze NeXus data
5
5
  Author-email: Raymond Osborn <rayosborn@mac.com>
6
6
  License: Licensing Terms for NeXpy
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: NeXpy
3
- Version: 2.0.0b7
3
+ Version: 2.0.0b8
4
4
  Summary: Python GUI to analyze NeXus data
5
5
  Author-email: Raymond Osborn <rayosborn@mac.com>
6
6
  License: Licensing Terms for NeXpy
@@ -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.0b7'
21
- __version_tuple__ = version_tuple = (2, 0, 0, 'b7')
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
- Loads a fit from a NeXus NXprocess group.
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