nxs-analysis-tools 0.0.44__tar.gz → 0.0.45__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.

Potentially problematic release.


This version of nxs-analysis-tools might be problematic. Click here for more details.

Files changed (27) hide show
  1. {nxs_analysis_tools-0.0.44/src/nxs_analysis_tools.egg-info → nxs_analysis_tools-0.0.45}/PKG-INFO +1 -1
  2. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/pyproject.toml +1 -1
  3. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/_meta/__init__.py +1 -1
  4. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools/pairdistribution.py +2 -2
  5. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45/src/nxs_analysis_tools.egg-info}/PKG-INFO +1 -1
  6. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_symmetrizer_rectangular_plane.py +2 -3
  7. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/LICENSE +0 -0
  8. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/MANIFEST.in +0 -0
  9. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/README.md +0 -0
  10. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/setup.cfg +0 -0
  11. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/setup.py +0 -0
  12. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools/__init__.py +0 -0
  13. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools/chess.py +0 -0
  14. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools/datareduction.py +0 -0
  15. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools/fitting.py +0 -0
  16. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools.egg-info/SOURCES.txt +0 -0
  17. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools.egg-info/dependency_links.txt +0 -0
  18. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools.egg-info/requires.txt +0 -0
  19. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools.egg-info/top_level.txt +0 -0
  20. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_chess.py +0 -0
  21. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_chess_fitting.py +0 -0
  22. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_datareduction.py +0 -0
  23. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_fitting.py +0 -0
  24. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_lmfit.py +0 -0
  25. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_mask_plotting.py +0 -0
  26. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_pairdistribution.py +0 -0
  27. {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_plot_slice_with_ndarray.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nxs-analysis-tools
3
- Version: 0.0.44
3
+ Version: 0.0.45
4
4
  Summary: Reduce and transform nexus format (.nxs) scattering data.
5
5
  Author-email: "Steven J. Gomez Alvarado" <stevenjgomez@ucsb.edu>
6
6
  License: MIT License
@@ -6,7 +6,7 @@ build-backend = 'setuptools.build_meta'
6
6
 
7
7
  [project]
8
8
  name = 'nxs-analysis-tools'
9
- version = '0.0.44'
9
+ version = '0.0.45'
10
10
  description = 'Reduce and transform nexus format (.nxs) scattering data.'
11
11
  readme = 'README.md'
12
12
  requires-python = '>=3.7'
@@ -6,5 +6,5 @@ __author__ = 'Steven J. Gomez Alvarado'
6
6
  __email__ = 'stevenjgomez@ucsb.edu'
7
7
  __copyright__ = f"2023, {__author__}"
8
8
  __license__ = 'MIT'
9
- __version__ = '0.0.44'
9
+ __version__ = '0.0.45'
10
10
  __repo_url__ = 'https://github.com/stevenjgomez/nxs_analysis_tools'
@@ -197,7 +197,7 @@ class Symmetrizer2D:
197
197
  # Scale and skew counts
198
198
  skew_angle_adj = 90 - self.skew_angle
199
199
 
200
- scale2 = q1.max()/q2.max()
200
+ scale2 = 1 # q1.max()/q2.max() # TODO: Need to double check this
201
201
  counts_unscaled2 = ndimage.affine_transform(counts,
202
202
  Affine2D().scale(scale2, 1).inverted().get_matrix()[:2, :2],
203
203
  offset=[-(1 - scale2) * counts.shape[
@@ -253,7 +253,7 @@ class Symmetrizer2D:
253
253
  order=0,
254
254
  )
255
255
 
256
- scale2 = q1.max()/q2.max()
256
+ scale2 = counts.shape[0]/counts.shape[1]
257
257
  wedge = ndimage.affine_transform(wedge,
258
258
  Affine2D().scale(scale2, 1).get_matrix()[:2, :2],
259
259
  offset=[(1 - scale2) * counts.shape[0] / 2, 0],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nxs-analysis-tools
3
- Version: 0.0.44
3
+ Version: 0.0.45
4
4
  Summary: Reduce and transform nexus format (.nxs) scattering data.
5
5
  Author-email: "Steven J. Gomez Alvarado" <stevenjgomez@ucsb.edu>
6
6
  License: MIT License
@@ -194,14 +194,13 @@ class Symmetrizer2D:
194
194
  # Scale and skew counts
195
195
  skew_angle_adj = 90 - self.skew_angle
196
196
 
197
- scale2 = q1.max()/q2.max()
197
+ scale2 = 1 # q1.max()/q2.max()
198
198
  counts_unscaled2 = ndimage.affine_transform(counts,
199
199
  Affine2D().scale(scale2, 1).inverted().get_matrix()[:2, :2],
200
200
  offset=[-(1 - scale2) * counts.shape[
201
201
  0] / 2 / scale2, 0],
202
202
  order=0,
203
203
  )
204
- plot_slice(counts_unscaled2)
205
204
 
206
205
  scale1 = np.cos(skew_angle_adj * np.pi / 180)
207
206
  counts_unscaled1 = ndimage.affine_transform(counts_unscaled2,
@@ -251,7 +250,7 @@ class Symmetrizer2D:
251
250
  order=0,
252
251
  )
253
252
 
254
- scale2 = q1.max()/q2.max()
253
+ scale2 = counts.shape[0]/counts.shape[1]
255
254
  wedge = ndimage.affine_transform(wedge,
256
255
  Affine2D().scale(scale2, 1).get_matrix()[:2, :2],
257
256
  offset=[(1 - scale2) * counts.shape[0] / 2, 0],