NeXpy 1.0.7__tar.gz → 1.0.8__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 (176) hide show
  1. {NeXpy-1.0.7 → nexpy-1.0.8}/.github/workflows/ci.yml +3 -3
  2. {NeXpy-1.0.7 → nexpy-1.0.8}/PKG-INFO +4 -2
  3. {NeXpy-1.0.7 → nexpy-1.0.8}/conda-recipe/meta.yaml +3 -3
  4. {NeXpy-1.0.7 → nexpy-1.0.8}/setup.cfg +3 -1
  5. {NeXpy-1.0.7 → nexpy-1.0.8}/src/NeXpy.egg-info/PKG-INFO +4 -2
  6. {NeXpy-1.0.7 → nexpy-1.0.8}/src/NeXpy.egg-info/requires.txt +2 -1
  7. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/_version.py +2 -2
  8. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/mainwindow.py +30 -3
  9. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/plotview.py +5 -2
  10. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/treeview.py +11 -20
  11. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/utils.py +2 -4
  12. {NeXpy-1.0.7 → nexpy-1.0.8}/.gitattributes +0 -0
  13. {NeXpy-1.0.7 → nexpy-1.0.8}/.gitignore +0 -0
  14. {NeXpy-1.0.7 → nexpy-1.0.8}/COPYING +0 -0
  15. {NeXpy-1.0.7 → nexpy-1.0.8}/README.md +0 -0
  16. {NeXpy-1.0.7 → nexpy-1.0.8}/README.rst +0 -0
  17. {NeXpy-1.0.7 → nexpy-1.0.8}/conda-recipe/bld.bat +0 -0
  18. {NeXpy-1.0.7 → nexpy-1.0.8}/conda-recipe/build.sh +0 -0
  19. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/Makefile +0 -0
  20. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/make.bat +0 -0
  21. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/_static/__ignore__.txt +0 -0
  22. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/conf.py +0 -0
  23. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/examples.rst +0 -0
  24. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/favicon.ico +0 -0
  25. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/axis-limits-bar.png +0 -0
  26. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/customize-panel.png +0 -0
  27. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/limits-panel.png +0 -0
  28. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/nexpy-fits.png +0 -0
  29. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/nexpy-gui.png +0 -0
  30. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/nexpy-logo.png +0 -0
  31. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/options-tab.png +0 -0
  32. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/projection-panel.png +0 -0
  33. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/projection-tab.png +0 -0
  34. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/scan-panel.png +0 -0
  35. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/signal-tab.png +0 -0
  36. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/simple-plot.png +0 -0
  37. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/skewed-axis.png +0 -0
  38. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/x-tab.png +0 -0
  39. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/y-tab.png +0 -0
  40. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/z-tab.png +0 -0
  41. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/images/z-toolbar.png +0 -0
  42. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/includeme.rst +0 -0
  43. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/index.rst +0 -0
  44. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/pythongui.rst +0 -0
  45. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/pythonshell.rst +0 -0
  46. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/readers.rst +0 -0
  47. {NeXpy-1.0.7 → nexpy-1.0.8}/doc/source/treeapi.rst +0 -0
  48. {NeXpy-1.0.7 → nexpy-1.0.8}/pyproject.toml +0 -0
  49. {NeXpy-1.0.7 → nexpy-1.0.8}/setup.py +0 -0
  50. {NeXpy-1.0.7 → nexpy-1.0.8}/src/NeXpy.egg-info/SOURCES.txt +0 -0
  51. {NeXpy-1.0.7 → nexpy-1.0.8}/src/NeXpy.egg-info/dependency_links.txt +0 -0
  52. {NeXpy-1.0.7 → nexpy-1.0.8}/src/NeXpy.egg-info/entry_points.txt +0 -0
  53. {NeXpy-1.0.7 → nexpy-1.0.8}/src/NeXpy.egg-info/pbr.json +0 -0
  54. {NeXpy-1.0.7 → nexpy-1.0.8}/src/NeXpy.egg-info/top_level.txt +0 -0
  55. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/__init__.py +0 -0
  56. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/api/__init__.py +0 -0
  57. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/api/frills/__init__.py +0 -0
  58. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/api/frills/fit.py +0 -0
  59. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/api/frills/functions/__init__.py +0 -0
  60. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/api/frills/models/__init__.py +0 -0
  61. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/api/frills/models/bose.py +0 -0
  62. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/api/frills/models/critexp.py +0 -0
  63. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/api/frills/models/op.py +0 -0
  64. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/api/frills/models/pdfdecay.py +0 -0
  65. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/__init__.py +0 -0
  66. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXaperture.nxdl.xml +0 -0
  67. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXattenuator.nxdl.xml +0 -0
  68. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXbeam.nxdl.xml +0 -0
  69. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXbeam_stop.nxdl.xml +0 -0
  70. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXbending_magnet.nxdl.xml +0 -0
  71. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXcapillary.nxdl.xml +0 -0
  72. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXcite.nxdl.xml +0 -0
  73. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXcollection.nxdl.xml +0 -0
  74. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXcollimator.nxdl.xml +0 -0
  75. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXcrystal.nxdl.xml +0 -0
  76. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXcylindrical_geometry.nxdl.xml +0 -0
  77. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXdata.nxdl.xml +0 -0
  78. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXdetector.nxdl.xml +0 -0
  79. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXdetector_channel.nxdl.xml +0 -0
  80. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXdetector_group.nxdl.xml +0 -0
  81. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXdetector_module.nxdl.xml +0 -0
  82. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXdisk_chopper.nxdl.xml +0 -0
  83. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXentry.nxdl.xml +0 -0
  84. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXenvironment.nxdl.xml +0 -0
  85. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXevent_data.nxdl.xml +0 -0
  86. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXfermi_chopper.nxdl.xml +0 -0
  87. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXfilter.nxdl.xml +0 -0
  88. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXflipper.nxdl.xml +0 -0
  89. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXfresnel_zone_plate.nxdl.xml +0 -0
  90. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXgeometry.nxdl.xml +0 -0
  91. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXgrating.nxdl.xml +0 -0
  92. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXguide.nxdl.xml +0 -0
  93. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXinsertion_device.nxdl.xml +0 -0
  94. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXinstrument.nxdl.xml +0 -0
  95. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXlog.nxdl.xml +0 -0
  96. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXmirror.nxdl.xml +0 -0
  97. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXmoderator.nxdl.xml +0 -0
  98. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXmonitor.nxdl.xml +0 -0
  99. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXmonochromator.nxdl.xml +0 -0
  100. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXnote.nxdl.xml +0 -0
  101. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXobject.nxdl.xml +0 -0
  102. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXoff_geometry.nxdl.xml +0 -0
  103. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXorientation.nxdl.xml +0 -0
  104. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXparameters.nxdl.xml +0 -0
  105. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXpdb.nxdl.xml +0 -0
  106. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXpinhole.nxdl.xml +0 -0
  107. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXpolarizer.nxdl.xml +0 -0
  108. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXpositioner.nxdl.xml +0 -0
  109. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXprocess.nxdl.xml +0 -0
  110. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXreflections.nxdl.xml +0 -0
  111. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXroot.nxdl.xml +0 -0
  112. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXsample.nxdl.xml +0 -0
  113. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXsample_component.nxdl.xml +0 -0
  114. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXsensor.nxdl.xml +0 -0
  115. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXshape.nxdl.xml +0 -0
  116. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXslit.nxdl.xml +0 -0
  117. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXsource.nxdl.xml +0 -0
  118. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXsubentry.nxdl.xml +0 -0
  119. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXtransformations.nxdl.xml +0 -0
  120. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXtranslation.nxdl.xml +0 -0
  121. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXuser.nxdl.xml +0 -0
  122. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXvelocity_selector.nxdl.xml +0 -0
  123. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/definitions/base_classes/NXxraylens.nxdl.xml +0 -0
  124. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/examples/README.rst +0 -0
  125. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/examples/chopper.nxs +0 -0
  126. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/examples/example.nxs +0 -0
  127. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/examples/plugins/README.rst +0 -0
  128. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/examples/plugins/chopper_plugin/chopper/__init__.py +0 -0
  129. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/examples/plugins/chopper_plugin/chopper/__init__.pyc +0 -0
  130. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/examples/plugins/chopper_plugin/chopper/convert_qe.py +0 -0
  131. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/examples/plugins/chopper_plugin/chopper/convert_qe.pyc +0 -0
  132. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/examples/plugins/chopper_plugin/chopper/get_ei.py +0 -0
  133. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/examples/plugins/chopper_plugin/chopper/get_ei.pyc +0 -0
  134. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/examples/plugins/chopper_plugin/pyproject.toml +0 -0
  135. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/examples/scripts/README.rst +0 -0
  136. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/examples/scripts/chopper_plot.py +0 -0
  137. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/examples/scripts/example.py +0 -0
  138. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/__init__.py +0 -0
  139. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/consoleapp.py +0 -0
  140. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/datadialogs.py +0 -0
  141. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/fitdialogs.py +0 -0
  142. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/importdialog.py +0 -0
  143. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/pyqt.py +0 -0
  144. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/back.png +0 -0
  145. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/backward-icon.png +0 -0
  146. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/customize.png +0 -0
  147. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/equal.png +0 -0
  148. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/export-data.png +0 -0
  149. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/export-figure.png +0 -0
  150. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/filesave.png +0 -0
  151. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/forward-icon.png +0 -0
  152. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/forward.png +0 -0
  153. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/hand.png +0 -0
  154. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/home.png +0 -0
  155. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/icon/NeXpy.png +0 -0
  156. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/icon/NeXpy.svg +0 -0
  157. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/link-icon.png +0 -0
  158. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/lock-icon.png +0 -0
  159. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/lock-red-icon.png +0 -0
  160. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/modify-style.png +0 -0
  161. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/move.png +0 -0
  162. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/pause-icon.png +0 -0
  163. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/refresh-icon.png +0 -0
  164. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/unlock-icon.png +0 -0
  165. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/unlock-red-icon.png +0 -0
  166. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/resources/zoom_to_rect.png +0 -0
  167. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/scripteditor.py +0 -0
  168. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/gui/widgets.py +0 -0
  169. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/nexpygui.py +0 -0
  170. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/plugins/__init__.py +0 -0
  171. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/readers/__init__.py +0 -0
  172. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/readers/readspec.py +0 -0
  173. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/readers/readstack.py +0 -0
  174. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/readers/readtiff.py +0 -0
  175. {NeXpy-1.0.7 → nexpy-1.0.8}/src/nexpy/readers/readtxt.py +0 -0
  176. {NeXpy-1.0.7 → nexpy-1.0.8}/tests/test_imports.py +0 -0
@@ -6,13 +6,13 @@ jobs:
6
6
  runs-on: ${{ matrix.os }}
7
7
  strategy:
8
8
  matrix:
9
- python-version: ["3.7", "3.8", "3.9", "3.10"]
9
+ python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
10
10
  os: [ubuntu-latest, macOS-latest, windows-latest]
11
11
 
12
12
  steps:
13
- - uses: actions/checkout@v3
13
+ - uses: actions/checkout@v4
14
14
  - name: Set up Python ${{ matrix.python-version }}
15
- uses: actions/setup-python@v4
15
+ uses: actions/setup-python@v5
16
16
  with:
17
17
  python-version: ${{ matrix.python-version }}
18
18
  - name: Install dependencies
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: NeXpy
3
- Version: 1.0.7
3
+ Version: 1.0.8
4
4
  Summary: A Python GUI to analyze NeXus data
5
5
  Home-page: https://nexpy.github.io/nexpy/
6
6
  Download-URL: https://github.com/nexpy/nexpy
@@ -18,12 +18,13 @@ Classifier: Programming Language :: Python :: 3.8
18
18
  Classifier: Programming Language :: Python :: 3.9
19
19
  Classifier: Programming Language :: Python :: 3.10
20
20
  Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
21
22
  Classifier: Topic :: Scientific/Engineering
22
23
  Classifier: Topic :: Scientific/Engineering :: Visualization
23
24
  Requires-Python: >=3.7
24
25
  Description-Content-Type: text/markdown
25
26
  License-File: COPYING
26
- Requires-Dist: nexusformat>=1.0.2
27
+ Requires-Dist: nexusformat>=1.0.5
27
28
  Requires-Dist: numpy
28
29
  Requires-Dist: scipy
29
30
  Requires-Dist: h5py>=2.9
@@ -38,6 +39,7 @@ Requires-Dist: ansi2html
38
39
  Requires-Dist: pillow
39
40
  Requires-Dist: mplcursors
40
41
  Requires-Dist: importlib-metadata; python_version < "3.10"
42
+ Requires-Dist: setuptools
41
43
  Provides-Extra: spec
42
44
  Requires-Dist: spec2nexus; extra == "spec"
43
45
  Provides-Extra: fabio
@@ -1,10 +1,10 @@
1
1
  package:
2
2
  name: nexpy
3
- version: "1.0.7"
3
+ version: "1.0.8"
4
4
 
5
5
  source:
6
6
  git_url: https://github.com/nexpy/nexpy.git
7
- git_tag: v1.0.7
7
+ git_tag: v1.0.8
8
8
 
9
9
  build:
10
10
  entry_points:
@@ -20,7 +20,7 @@ requirements:
20
20
 
21
21
  run:
22
22
  - python >=3.7
23
- - nexusformat >=1.0.2
23
+ - nexusformat >=1.0.5
24
24
  - numpy
25
25
  - scipy
26
26
  - h5py
@@ -21,6 +21,7 @@ classifiers =
21
21
  Programming Language :: Python :: 3.9
22
22
  Programming Language :: Python :: 3.10
23
23
  Programming Language :: Python :: 3.11
24
+ Programming Language :: Python :: 3.12
24
25
  Topic :: Scientific/Engineering
25
26
  Topic :: Scientific/Engineering :: Visualization
26
27
 
@@ -30,7 +31,7 @@ package_dir =
30
31
  =src
31
32
  python_requires = >=3.7
32
33
  install_requires =
33
- nexusformat >= 1.0.2
34
+ nexusformat >= 1.0.5
34
35
  numpy
35
36
  scipy
36
37
  h5py >= 2.9
@@ -45,6 +46,7 @@ install_requires =
45
46
  pillow
46
47
  mplcursors
47
48
  importlib-metadata; python_version<"3.10"
49
+ setuptools
48
50
 
49
51
  [options.packages.find]
50
52
  where = src
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: NeXpy
3
- Version: 1.0.7
3
+ Version: 1.0.8
4
4
  Summary: A Python GUI to analyze NeXus data
5
5
  Home-page: https://nexpy.github.io/nexpy/
6
6
  Download-URL: https://github.com/nexpy/nexpy
@@ -18,12 +18,13 @@ Classifier: Programming Language :: Python :: 3.8
18
18
  Classifier: Programming Language :: Python :: 3.9
19
19
  Classifier: Programming Language :: Python :: 3.10
20
20
  Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
21
22
  Classifier: Topic :: Scientific/Engineering
22
23
  Classifier: Topic :: Scientific/Engineering :: Visualization
23
24
  Requires-Python: >=3.7
24
25
  Description-Content-Type: text/markdown
25
26
  License-File: COPYING
26
- Requires-Dist: nexusformat>=1.0.2
27
+ Requires-Dist: nexusformat>=1.0.5
27
28
  Requires-Dist: numpy
28
29
  Requires-Dist: scipy
29
30
  Requires-Dist: h5py>=2.9
@@ -38,6 +39,7 @@ Requires-Dist: ansi2html
38
39
  Requires-Dist: pillow
39
40
  Requires-Dist: mplcursors
40
41
  Requires-Dist: importlib-metadata; python_version < "3.10"
42
+ Requires-Dist: setuptools
41
43
  Provides-Extra: spec
42
44
  Requires-Dist: spec2nexus; extra == "spec"
43
45
  Provides-Extra: fabio
@@ -1,4 +1,4 @@
1
- nexusformat>=1.0.2
1
+ nexusformat>=1.0.5
2
2
  numpy
3
3
  scipy
4
4
  h5py>=2.9
@@ -12,6 +12,7 @@ pylatexenc
12
12
  ansi2html
13
13
  pillow
14
14
  mplcursors
15
+ setuptools
15
16
 
16
17
  [:python_version < "3.10"]
17
18
  importlib-metadata
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.0.7'
16
- __version_tuple__ = version_tuple = (1, 0, 7)
15
+ __version__ = version = '1.0.8'
16
+ __version_tuple__ = version_tuple = (1, 0, 8)
@@ -566,6 +566,11 @@ class MainWindow(QtWidgets.QMainWindow):
566
566
  "Fit Data", self, shortcut=QtGui.QKeySequence("Ctrl+Shift+F"),
567
567
  triggered=self.fit_data)
568
568
  self.add_menu_action(self.data_menu, self.fit_action)
569
+ self.fit_weighted_action = QtWidgets.QAction(
570
+ "Fit Weighted Data", self,
571
+ shortcut=QtGui.QKeySequence("Ctrl+Shift+Alt+F"),
572
+ triggered=self.fit_weighted_data)
573
+ self.add_menu_action(self.data_menu, self.fit_weighted_action)
569
574
 
570
575
  def init_plugin_menus(self):
571
576
  """Add an menu item for every module in the plugin menus"""
@@ -1032,8 +1037,10 @@ class MainWindow(QtWidgets.QMainWindow):
1032
1037
  self.recent_file_actions[action] = (i, recent_file)
1033
1038
  self.settings.purge('recent')
1034
1039
  for recent_file in recent_files:
1035
- self.settings.set('recent', recent_file)
1036
- self.settings.set('session', filename)
1040
+ if "=" not in recent_file:
1041
+ self.settings.set('recent', recent_file)
1042
+ if "=" not in filename:
1043
+ self.settings.set('session', filename)
1037
1044
  self.settings.save()
1038
1045
 
1039
1046
  def save_file(self):
@@ -1481,7 +1488,8 @@ class MainWindow(QtWidgets.QMainWindow):
1481
1488
  self.treeview.status_message(node)
1482
1489
  signals = [node.nxsignal]
1483
1490
  signals.extend([node[signal] for signal
1484
- in node.attrs['auxiliary_signals']])
1491
+ in node.attrs['auxiliary_signals']
1492
+ if signal != node.nxsignal.nxname])
1485
1493
  colors = get_colors(len(signals))
1486
1494
  for i, signal in enumerate(signals):
1487
1495
  if i == 0:
@@ -1490,6 +1498,7 @@ class MainWindow(QtWidgets.QMainWindow):
1490
1498
  else:
1491
1499
  signal.oplot(marker='None', linestyle='-',
1492
1500
  color=colors[i])
1501
+ self.plotview.ax.set_title(node.nxroot.nxname + node.nxpath)
1493
1502
  self.plotview.otab.home()
1494
1503
  self.plotview.legend(signal=True)
1495
1504
  self.plotview.make_active()
@@ -1762,6 +1771,24 @@ class MainWindow(QtWidgets.QMainWindow):
1762
1771
  except NeXusError as error:
1763
1772
  report_error("Fitting Data", error)
1764
1773
 
1774
+ def fit_weighted_data(self):
1775
+ try:
1776
+ node = self.treeview.get_node()
1777
+ if node is None:
1778
+ return
1779
+ elif isinstance(node, NXdata):
1780
+ if node.ndim > 1:
1781
+ raise NeXusError(
1782
+ "Fitting only enabled for one-dimensional data")
1783
+ else:
1784
+ raise NeXusError("Select an NXdata group")
1785
+ if 'Fit' not in self.panels:
1786
+ self.panels['Fit'] = FitDialog()
1787
+ self.panels['Fit'].activate(node.weighted_data())
1788
+ logging.info(f"Fitting invoked on'{node.nxpath}'")
1789
+ except NeXusError as error:
1790
+ report_error("Fitting Data", error)
1791
+
1765
1792
  def input_base_classes(self):
1766
1793
  base_class_path = pkg_resources.resource_filename(
1767
1794
  'nexpy', 'definitions/base_classes')
@@ -1473,8 +1473,11 @@ class NXPlotView(QtWidgets.QDialog):
1473
1473
  from .fitdialogs import FitDialog
1474
1474
  if not self.mainwindow.panel_is_running('Fit'):
1475
1475
  self.panels['Fit'] = FitDialog()
1476
- self.panels['Fit'].activate(self.plots[self.num]['data'],
1477
- plotview=self,
1476
+ if self.weighted:
1477
+ data = self.plots[self.num]['data'].weighted_data()
1478
+ else:
1479
+ data = self.plots[self.num]['data']
1480
+ self.panels['Fit'].activate(data, plotview=self,
1478
1481
  color=self.plots[self.num]['color'])
1479
1482
 
1480
1483
  def symlog(self, linthresh=None, linscale=None, vmax=None):
@@ -13,7 +13,7 @@ from nexusformat.nexus import (NeXusError, NXdata, NXentry, NXfield, NXgroup,
13
13
  NXlink, NXroot, nxload)
14
14
 
15
15
  from .pyqt import QtCore, QtGui, QtWidgets
16
- from .utils import display_message, modification_time, report_error
16
+ from .utils import display_message, get_name, modification_time, report_error
17
17
  from .widgets import NXSortModel
18
18
 
19
19
 
@@ -116,22 +116,7 @@ class NXtree(NXgroup):
116
116
  raise NeXusError(f"{name} not in the tree")
117
117
 
118
118
  def get_name(self, filename):
119
- name = os.path.splitext(
120
- os.path.basename(filename))[0].replace(' ', '_')
121
- name = "".join([c for c in name.replace('-', '_')
122
- if c.isalpha() or c.isdigit() or c == '_'])
123
- if name in self._shell:
124
- ind = []
125
- for key in self._shell:
126
- try:
127
- if key.startswith(name+'_'):
128
- ind.append(int(key[len(name)+1:]))
129
- except ValueError:
130
- pass
131
- if ind == []:
132
- ind = [0]
133
- name = name+'_'+str(sorted(ind)[-1]+1)
134
- return name
119
+ return get_name(filename, self._shell)
135
120
 
136
121
  def get_new_name(self):
137
122
  ind = []
@@ -337,6 +322,7 @@ class NXTreeView(QtWidgets.QTreeView):
337
322
  self.mainwindow.signal_action.setEnabled(False)
338
323
  self.mainwindow.default_action.setEnabled(False)
339
324
  self.mainwindow.fit_action.setEnabled(False)
325
+ self.mainwindow.fit_weighted_action.setEnabled(False)
340
326
  try:
341
327
  node = self.get_node()
342
328
  except Exception:
@@ -395,9 +381,13 @@ class NXTreeView(QtWidgets.QTreeView):
395
381
  if isinstance(node, NXdata):
396
382
  self.mainwindow.signal_action.setEnabled(True)
397
383
  try:
398
- if ((isinstance(node, NXdata) and node.plot_rank == 1) or
399
- (isinstance(node, NXgroup) and
400
- ('fit' in node or 'model' in node))):
384
+ if isinstance(node, NXdata) and node.plot_rank == 1:
385
+ self.mainwindow.fit_action.setEnabled(True)
386
+ if node.nxweights is not None:
387
+ self.mainwindow.fit_weighted_action.setEnabled(
388
+ True)
389
+ elif (isinstance(node, NXgroup) and
390
+ ('fit' in node or 'model' in node)):
401
391
  self.mainwindow.fit_action.setEnabled(True)
402
392
  except Exception:
403
393
  pass
@@ -464,6 +454,7 @@ class NXTreeView(QtWidgets.QTreeView):
464
454
  self.addMenu(self.mainwindow.link_action)
465
455
  self.menu.addSeparator()
466
456
  self.addMenu(self.mainwindow.fit_action)
457
+ self.addMenu(self.mainwindow.fit_weighted_action)
467
458
  self.menu.addSeparator()
468
459
  self.addMenu(self.mainwindow.signal_action)
469
460
  self.addMenu(self.mainwindow.default_action)
@@ -15,10 +15,10 @@ import logging
15
15
  import os
16
16
  import re
17
17
  import sys
18
- import time
19
18
  import traceback as tb
20
19
  from configparser import ConfigParser
21
20
  from datetime import datetime
21
+ from pathlib import Path
22
22
  from threading import Thread
23
23
 
24
24
  import numpy as np
@@ -427,9 +427,7 @@ def convertHTML(text):
427
427
 
428
428
  def get_name(filename, entries=[]):
429
429
  """Return a valid object name from a filename."""
430
- name = os.path.splitext(os.path.basename(filename))[0].replace(' ', '_')
431
- name = "".join([c for c in name.replace('-', '_')
432
- if c.isalpha() or c.isdigit() or c == '_'])
430
+ name = re.sub('\W|^(?=\d)','_', Path(filename).stem)
433
431
  if name in entries:
434
432
  ind = []
435
433
  for key in entries:
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