nxs-analysis-tools 0.0.28__tar.gz → 0.0.29__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.28/src/nxs_analysis_tools.egg-info → nxs-analysis-tools-0.0.29}/PKG-INFO +1 -1
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/pyproject.toml +1 -1
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/src/_meta/__init__.py +1 -1
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/src/nxs_analysis_tools/fitting.py +5 -1
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29/src/nxs_analysis_tools.egg-info}/PKG-INFO +1 -1
- nxs-analysis-tools-0.0.29/tests/test_chess_fitting.py +21 -0
- nxs-analysis-tools-0.0.28/tests/test_chess_fitting.py +0 -21
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/LICENSE +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/MANIFEST.in +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/README.md +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/setup.cfg +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/setup.py +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/src/nxs_analysis_tools/__init__.py +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/src/nxs_analysis_tools/chess.py +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/src/nxs_analysis_tools/datareduction.py +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/src/nxs_analysis_tools/pairdistribution.py +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/src/nxs_analysis_tools.egg-info/SOURCES.txt +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/src/nxs_analysis_tools.egg-info/dependency_links.txt +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/src/nxs_analysis_tools.egg-info/requires.txt +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/src/nxs_analysis_tools.egg-info/top_level.txt +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/tests/test_chess.py +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/tests/test_datareduction.py +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/tests/test_fitting.py +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/tests/test_lmfit.py +0 -0
- {nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/tests/test_pairdistribution.py +0 -0
|
@@ -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,21 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
sys.path.append('../src/nxs_analysis_tools/')
|
|
3
|
+
from datareduction import load_data, Scissors
|
|
4
|
+
from chess import *
|
|
5
|
+
from fitting import *
|
|
6
|
+
|
|
7
|
+
from lmfit.models import GaussianModel, LinearModel, LorentzianModel
|
|
8
|
+
|
|
9
|
+
sample = TempDependence()
|
|
10
|
+
sample.load_datasets(folder=r'K:\pokharel-3470-a\PrCd3P3\BRO7')
|
|
11
|
+
sample.cut_data(center=(0.5,-3,0), window=(0.1,0.3,0.1))
|
|
12
|
+
|
|
13
|
+
sample.set_model_components([GaussianModel(prefix='peak'), LorentzianModel(prefix='diffuse'), LinearModel(prefix='background')])
|
|
14
|
+
sample.set_param_hint('peakcenter', min=-0.1, max=0.1)
|
|
15
|
+
sample.make_params()
|
|
16
|
+
sample.guess()
|
|
17
|
+
sample.print_initial_params()
|
|
18
|
+
sample.plot_initial_guess()
|
|
19
|
+
sample.fit()
|
|
20
|
+
sample.plot_fit()
|
|
21
|
+
sample.print_fit_report()
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
sys.path.append('../src/nxs_analysis_tools/')
|
|
3
|
-
from datareduction import load_data, Scissors
|
|
4
|
-
from chess import *
|
|
5
|
-
from fitting import *
|
|
6
|
-
|
|
7
|
-
from lmfit.models import GaussianModel, LinearModel
|
|
8
|
-
|
|
9
|
-
sample = TempDependence()
|
|
10
|
-
sample.load_datasets(folder='../docs/source/examples/example_data/sample_name')
|
|
11
|
-
sample.cut_data(center=(0,0,0), window=(0.1,0.75,0.1))
|
|
12
|
-
|
|
13
|
-
sample.set_model_components([GaussianModel(prefix='peak'), LinearModel(prefix='background')])
|
|
14
|
-
sample.set_param_hint('peakcenter', min=-0.1, max=0.1)
|
|
15
|
-
sample.make_params()
|
|
16
|
-
sample.guess()
|
|
17
|
-
sample.print_initial_params()
|
|
18
|
-
sample.plot_initial_guess()
|
|
19
|
-
sample.fit()
|
|
20
|
-
sample.plot_fit()
|
|
21
|
-
sample.print_fit_report()
|
|
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.28 → nxs-analysis-tools-0.0.29}/src/nxs_analysis_tools/datareduction.py
RENAMED
|
File without changes
|
{nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/src/nxs_analysis_tools/pairdistribution.py
RENAMED
|
File without changes
|
{nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/src/nxs_analysis_tools.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{nxs-analysis-tools-0.0.28 → nxs-analysis-tools-0.0.29}/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
|