nxs-analysis-tools 0.1.7__py3-none-any.whl → 0.1.9__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/chess.py +1 -1
- nxs_analysis_tools/datareduction.py +15 -3
- {nxs_analysis_tools-0.1.7.dist-info → nxs_analysis_tools-0.1.9.dist-info}/METADATA +1 -1
- nxs_analysis_tools-0.1.9.dist-info/RECORD +11 -0
- nxs_analysis_tools-0.1.7.dist-info/RECORD +0 -11
- {nxs_analysis_tools-0.1.7.dist-info → nxs_analysis_tools-0.1.9.dist-info}/WHEEL +0 -0
- {nxs_analysis_tools-0.1.7.dist-info → nxs_analysis_tools-0.1.9.dist-info}/licenses/LICENSE +0 -0
- {nxs_analysis_tools-0.1.7.dist-info → nxs_analysis_tools-0.1.9.dist-info}/top_level.txt +0 -0
_meta/__init__.py
CHANGED
nxs_analysis_tools/chess.py
CHANGED
|
@@ -764,7 +764,7 @@ class TempDependence:
|
|
|
764
764
|
LinearModel(prefix='background')])
|
|
765
765
|
linecutmodel.make_params()
|
|
766
766
|
linecutmodel.guess()
|
|
767
|
-
linecutmodel.params.set(
|
|
767
|
+
linecutmodel.params['peakamplitude'].set(min=0)
|
|
768
768
|
linecutmodel.fit()
|
|
769
769
|
|
|
770
770
|
def plot_order_parameter(self, ax=None, **kwargs):
|
|
@@ -608,8 +608,9 @@ def plot_slice(data, X=None, Y=None, sum_axis=None, transpose=False, vmin=None,
|
|
|
608
608
|
# Return the quadmesh object
|
|
609
609
|
return p
|
|
610
610
|
|
|
611
|
-
def animate_slice_temp(temp_dependence, slice_obj, ax=None,
|
|
612
|
-
title=True, title_fmt='d',
|
|
611
|
+
def animate_slice_temp(temp_dependence, slice_obj, ax=None, reverse_temps=False, interval=500,
|
|
612
|
+
save_gif=False, filename='animation', title=True, title_fmt='d',
|
|
613
|
+
plot_slice_kwargs=None, ax_kwargs=None):
|
|
613
614
|
"""
|
|
614
615
|
Animate 2D slices from a temperature-dependent dataset.
|
|
615
616
|
|
|
@@ -625,6 +626,8 @@ def animate_slice_temp(temp_dependence, slice_obj, ax=None, interval=500, save_g
|
|
|
625
626
|
Slice object to apply to each dataset; None entries are treated as ':'.
|
|
626
627
|
ax : matplotlib.axes.Axes, optional
|
|
627
628
|
The axes object to plot on. If None, a new figure and axes will be created.
|
|
629
|
+
reverse_temps : bool, optional
|
|
630
|
+
If True, animates datasets with increasing temperature. Default is False.
|
|
628
631
|
interval : int, optional
|
|
629
632
|
Delay between frames in milliseconds. Default is 500.
|
|
630
633
|
save_gif : bool, optional
|
|
@@ -679,8 +682,17 @@ def animate_slice_temp(temp_dependence, slice_obj, ax=None, interval=500, save_g
|
|
|
679
682
|
raise ValueError(f"Invalid title_fmt '{title_fmt}' for temperature value '{temp}'")
|
|
680
683
|
ax.set(title=f'$T$={formatted_temp}')
|
|
681
684
|
|
|
685
|
+
# Animate frames upon warming
|
|
686
|
+
if reverse_temps:
|
|
687
|
+
frames = temp_dependence.temperatures.copy()
|
|
688
|
+
# Animate frames upon cooling (default)
|
|
689
|
+
else:
|
|
690
|
+
frames = temp_dependence.temperatures.copy()
|
|
691
|
+
frames.reverse()
|
|
692
|
+
|
|
693
|
+
|
|
682
694
|
ani = animation.FuncAnimation(fig, update,
|
|
683
|
-
frames=
|
|
695
|
+
frames=frames,
|
|
684
696
|
interval=interval, repeat=False)
|
|
685
697
|
|
|
686
698
|
display(HTML(ani.to_jshtml()))
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
_meta/__init__.py,sha256=_6YTHnZTh1hFtcZstSxlck37JDEvSrKKPTDaeiNi2mc,346
|
|
2
|
+
nxs_analysis_tools/__init__.py,sha256=lutfLk7oBaMpKq2G2hf6V59SNqAhzSUyKLXGwTI_iDg,622
|
|
3
|
+
nxs_analysis_tools/chess.py,sha256=mTl3-hfKG6xUtuzqWJa63t1qg975Iv8ND6C6B1dxPio,32699
|
|
4
|
+
nxs_analysis_tools/datareduction.py,sha256=PMSV-_f66NK0Sf70z_xp7eQqcOe5krRkbQdVo6mTX3E,59233
|
|
5
|
+
nxs_analysis_tools/fitting.py,sha256=kRMhjObetGqmZ5-Jk1OHKGrXW4qI4D37s8VeC2ygJV8,10275
|
|
6
|
+
nxs_analysis_tools/pairdistribution.py,sha256=BDJdPiQ-XEk8vZKiFQnCotaWeS5cDDGqmSyhzC3fwrQ,65586
|
|
7
|
+
nxs_analysis_tools-0.1.9.dist-info/licenses/LICENSE,sha256=bE6FnYixueAGAnEfUuumbkSeMgdBguAAkheVgjv47Jo,1086
|
|
8
|
+
nxs_analysis_tools-0.1.9.dist-info/METADATA,sha256=Z0pCGXvg06-cD0iZhuIzMtam_j8EAJGRL3K3NAgNiCI,3180
|
|
9
|
+
nxs_analysis_tools-0.1.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
+
nxs_analysis_tools-0.1.9.dist-info/top_level.txt,sha256=8U000GNPzo6T6pOMjRdgOSO5heMzLMGjkxa1CDtyMHM,25
|
|
11
|
+
nxs_analysis_tools-0.1.9.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
_meta/__init__.py,sha256=zpGc6jhRvO6wrmQbAkztl9cSzg7jjatDDQ2_F-Aa0os,346
|
|
2
|
-
nxs_analysis_tools/__init__.py,sha256=lutfLk7oBaMpKq2G2hf6V59SNqAhzSUyKLXGwTI_iDg,622
|
|
3
|
-
nxs_analysis_tools/chess.py,sha256=e1x9u4o38iaVfpFLoEUuqI9iXhHgcCcfuHEOMfOE5PU,32699
|
|
4
|
-
nxs_analysis_tools/datareduction.py,sha256=-Db-Fz6F-xEl3nZsooUrPdDPBLEoQGL5tcW98sv18KE,58840
|
|
5
|
-
nxs_analysis_tools/fitting.py,sha256=kRMhjObetGqmZ5-Jk1OHKGrXW4qI4D37s8VeC2ygJV8,10275
|
|
6
|
-
nxs_analysis_tools/pairdistribution.py,sha256=BDJdPiQ-XEk8vZKiFQnCotaWeS5cDDGqmSyhzC3fwrQ,65586
|
|
7
|
-
nxs_analysis_tools-0.1.7.dist-info/licenses/LICENSE,sha256=bE6FnYixueAGAnEfUuumbkSeMgdBguAAkheVgjv47Jo,1086
|
|
8
|
-
nxs_analysis_tools-0.1.7.dist-info/METADATA,sha256=m4u4yFWCWveKrj6-7j0JGRuxRmIH3XTI2ESOb9BieSk,3180
|
|
9
|
-
nxs_analysis_tools-0.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
-
nxs_analysis_tools-0.1.7.dist-info/top_level.txt,sha256=8U000GNPzo6T6pOMjRdgOSO5heMzLMGjkxa1CDtyMHM,25
|
|
11
|
-
nxs_analysis_tools-0.1.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|