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.
- {nxs_analysis_tools-0.0.44/src/nxs_analysis_tools.egg-info → nxs_analysis_tools-0.0.45}/PKG-INFO +1 -1
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/pyproject.toml +1 -1
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/_meta/__init__.py +1 -1
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools/pairdistribution.py +2 -2
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45/src/nxs_analysis_tools.egg-info}/PKG-INFO +1 -1
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_symmetrizer_rectangular_plane.py +2 -3
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/LICENSE +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/MANIFEST.in +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/README.md +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/setup.cfg +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/setup.py +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools/__init__.py +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools/chess.py +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools/datareduction.py +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools/fitting.py +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools.egg-info/SOURCES.txt +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools.egg-info/dependency_links.txt +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools.egg-info/requires.txt +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools.egg-info/top_level.txt +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_chess.py +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_chess_fitting.py +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_datareduction.py +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_fitting.py +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_lmfit.py +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_mask_plotting.py +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_pairdistribution.py +0 -0
- {nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_plot_slice_with_ndarray.py +0 -0
{nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools/pairdistribution.py
RENAMED
|
@@ -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 =
|
|
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],
|
{nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_symmetrizer_rectangular_plane.py
RENAMED
|
@@ -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 =
|
|
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],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools/datareduction.py
RENAMED
|
File without changes
|
|
File without changes
|
{nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/src/nxs_analysis_tools.egg-info/requires.txt
RENAMED
|
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
|
{nxs_analysis_tools-0.0.44 → nxs_analysis_tools-0.0.45}/tests/test_plot_slice_with_ndarray.py
RENAMED
|
File without changes
|