nxs-analysis-tools 0.0.27__py3-none-any.whl → 0.0.29__py3-none-any.whl
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.
- _meta/__init__.py +1 -1
- nxs_analysis_tools/datareduction.py +3 -2
- nxs_analysis_tools/fitting.py +5 -1
- {nxs_analysis_tools-0.0.27.dist-info → nxs_analysis_tools-0.0.29.dist-info}/METADATA +1 -1
- nxs_analysis_tools-0.0.29.dist-info/RECORD +11 -0
- nxs_analysis_tools-0.0.27.dist-info/RECORD +0 -11
- {nxs_analysis_tools-0.0.27.dist-info → nxs_analysis_tools-0.0.29.dist-info}/LICENSE +0 -0
- {nxs_analysis_tools-0.0.27.dist-info → nxs_analysis_tools-0.0.29.dist-info}/WHEEL +0 -0
- {nxs_analysis_tools-0.0.27.dist-info → nxs_analysis_tools-0.0.29.dist-info}/top_level.txt +0 -0
_meta/__init__.py
CHANGED
|
@@ -695,7 +695,8 @@ def rotate_data(data, lattice_angle, rotation_angle, rotation_axis, printout=Fal
|
|
|
695
695
|
|
|
696
696
|
for i in range(len(data[data.axes[rotation_axis]])):
|
|
697
697
|
if printout:
|
|
698
|
-
print(f'
|
|
698
|
+
print(f'\rRotating {data.axes[rotation_axis]}={data[data.axes[rotation_axis]][i]}... ',
|
|
699
|
+
end='', flush=True)
|
|
699
700
|
# Identify current slice
|
|
700
701
|
if rotation_axis == 0:
|
|
701
702
|
sliced_data = data[i, :, :]
|
|
@@ -762,7 +763,7 @@ def rotate_data(data, lattice_angle, rotation_angle, rotation_axis, printout=Fal
|
|
|
762
763
|
output_array[:, i, :] = counts_unpadded
|
|
763
764
|
elif rotation_axis == 2:
|
|
764
765
|
output_array[:, :, i] = counts_unpadded
|
|
765
|
-
print('
|
|
766
|
+
print('\nDone.')
|
|
766
767
|
return NXdata(NXfield(output_array, name='counts'),
|
|
767
768
|
(data[data.axes[0]], data[data.axes[1]], data[data.axes[2]]))
|
|
768
769
|
|
nxs_analysis_tools/fitting.py
CHANGED
|
@@ -120,7 +120,11 @@ class LinecutModel:
|
|
|
120
120
|
# Else, combine the components into a composite model and use that as the
|
|
121
121
|
else:
|
|
122
122
|
self.model_components = model_components
|
|
123
|
-
self.model =
|
|
123
|
+
self.model = model_components[0]
|
|
124
|
+
|
|
125
|
+
# Combine remaining components into the composite model
|
|
126
|
+
for component in model_components[1:]:
|
|
127
|
+
self.model = CompositeModel(self.model, component, operator.add)
|
|
124
128
|
|
|
125
129
|
def set_param_hint(self, *args, **kwargs):
|
|
126
130
|
"""
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
_meta/__init__.py,sha256=jtcXSNzQFbWDoq-6ootCIfg8pBynwgynZP9FHNbtaVc,351
|
|
2
|
+
nxs_analysis_tools/__init__.py,sha256=HAdFMaImTfd2nCP1XzeSwreAv-wK6CeJbTn92aDQ-Bc,490
|
|
3
|
+
nxs_analysis_tools/chess.py,sha256=tNWc5xiwEjdtVPq0FFm2dCP2xvtkuv4IkMLur7Qeqjs,14079
|
|
4
|
+
nxs_analysis_tools/datareduction.py,sha256=Gvx9QyTyhqvu56PgiA9k7PzeGYtq71lTaofNESbg7xA,32616
|
|
5
|
+
nxs_analysis_tools/fitting.py,sha256=FBAlswyh-tASOVUx1HQ4F50NbQcDasc497PBkZ6AStU,9065
|
|
6
|
+
nxs_analysis_tools/pairdistribution.py,sha256=-_ULgC1XA9UKposzk51-64Y3cPWqdnBNAK7sdVTGHXM,20972
|
|
7
|
+
nxs_analysis_tools-0.0.29.dist-info/LICENSE,sha256=tdnoYVH1-ogW_5-gGs9bK-IkCamH1ATJqrdL37kWTHk,1102
|
|
8
|
+
nxs_analysis_tools-0.0.29.dist-info/METADATA,sha256=khCozYcLg4RkY2KWFx_rr8dR46lAx3D37gdAdNUOTGI,3837
|
|
9
|
+
nxs_analysis_tools-0.0.29.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
10
|
+
nxs_analysis_tools-0.0.29.dist-info/top_level.txt,sha256=8U000GNPzo6T6pOMjRdgOSO5heMzLMGjkxa1CDtyMHM,25
|
|
11
|
+
nxs_analysis_tools-0.0.29.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
_meta/__init__.py,sha256=qSCH0zIui0Ez8gddDZVHx4MO1XhOiaEh3ld7HLucMRw,351
|
|
2
|
-
nxs_analysis_tools/__init__.py,sha256=HAdFMaImTfd2nCP1XzeSwreAv-wK6CeJbTn92aDQ-Bc,490
|
|
3
|
-
nxs_analysis_tools/chess.py,sha256=tNWc5xiwEjdtVPq0FFm2dCP2xvtkuv4IkMLur7Qeqjs,14079
|
|
4
|
-
nxs_analysis_tools/datareduction.py,sha256=eqPY8YMpG1g_eS5Dtu7UcIjnBImOjO2JFevWtd33lwQ,32551
|
|
5
|
-
nxs_analysis_tools/fitting.py,sha256=f0wUn2uLwT6a2Yg8QgzzSdR0zgqjjeNMj-H_HJh7D6o,8888
|
|
6
|
-
nxs_analysis_tools/pairdistribution.py,sha256=-_ULgC1XA9UKposzk51-64Y3cPWqdnBNAK7sdVTGHXM,20972
|
|
7
|
-
nxs_analysis_tools-0.0.27.dist-info/LICENSE,sha256=tdnoYVH1-ogW_5-gGs9bK-IkCamH1ATJqrdL37kWTHk,1102
|
|
8
|
-
nxs_analysis_tools-0.0.27.dist-info/METADATA,sha256=S8OvDXNEabKdiCnWd0r4A5g3IqH65EmjtrP3f1itS2U,3837
|
|
9
|
-
nxs_analysis_tools-0.0.27.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
10
|
-
nxs_analysis_tools-0.0.27.dist-info/top_level.txt,sha256=8U000GNPzo6T6pOMjRdgOSO5heMzLMGjkxa1CDtyMHM,25
|
|
11
|
-
nxs_analysis_tools-0.0.27.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|