nxs-analysis-tools 0.0.24__tar.gz → 0.0.25__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 (24) hide show
  1. {nxs-analysis-tools-0.0.24/src/nxs_analysis_tools.egg-info → nxs-analysis-tools-0.0.25}/PKG-INFO +1 -1
  2. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/pyproject.toml +1 -1
  3. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/src/_meta/__init__.py +1 -1
  4. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/src/nxs_analysis_tools/datareduction.py +19 -0
  5. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25/src/nxs_analysis_tools.egg-info}/PKG-INFO +1 -1
  6. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/LICENSE +0 -0
  7. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/MANIFEST.in +0 -0
  8. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/README.md +0 -0
  9. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/setup.cfg +0 -0
  10. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/setup.py +0 -0
  11. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/src/nxs_analysis_tools/__init__.py +0 -0
  12. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/src/nxs_analysis_tools/chess.py +0 -0
  13. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/src/nxs_analysis_tools/fitting.py +0 -0
  14. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/src/nxs_analysis_tools/pairdistribution.py +0 -0
  15. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/src/nxs_analysis_tools.egg-info/SOURCES.txt +0 -0
  16. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/src/nxs_analysis_tools.egg-info/dependency_links.txt +0 -0
  17. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/src/nxs_analysis_tools.egg-info/requires.txt +0 -0
  18. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/src/nxs_analysis_tools.egg-info/top_level.txt +0 -0
  19. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/tests/test_chess.py +0 -0
  20. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/tests/test_chess_fitting.py +0 -0
  21. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/tests/test_datareduction.py +0 -0
  22. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/tests/test_fitting.py +0 -0
  23. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/tests/test_lmfit.py +0 -0
  24. {nxs-analysis-tools-0.0.24 → nxs-analysis-tools-0.0.25}/tests/test_pairdistribution.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nxs-analysis-tools
3
- Version: 0.0.24
3
+ Version: 0.0.25
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.24'
9
+ version = '0.0.25'
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.24'
9
+ __version__= '0.0.25'
10
10
  __repo_url__ = 'https://github.com/stevenjgomez/nxs_analysis_tools'
@@ -656,6 +656,25 @@ def reciprocal_lattice_params(lattice_params):
656
656
 
657
657
 
658
658
  def rotate_data(data, lattice_angle, rotation_angle, rotation_axis):
659
+ """
660
+ Rotates 3D data around a specified axis.
661
+
662
+ Parameters
663
+ ----------
664
+ data : :class:`nexusformat.nexus.NXdata`
665
+ Input data.
666
+ lattice_angle : float
667
+ Angle between the two in-plane lattice axes in degrees.
668
+ rotation_angle : float
669
+ Angle of rotation in degrees.
670
+ rotation_axis : int
671
+ Axis of rotation (0, 1, or 2).
672
+
673
+ Returns
674
+ -------
675
+ rotated_data : :class:`nexusformat.nexus.NXdata`
676
+ Rotated data as an NXdata object.
677
+ """
659
678
  # Define output array
660
679
  output_array = np.zeros(data[data.signal].shape)
661
680
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nxs-analysis-tools
3
- Version: 0.0.24
3
+ Version: 0.0.25
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