Skip to content

Commit d8e634c

Browse files
committed
Merge branch 'develop'
2 parents c1cb935 + 0325e7b commit d8e634c

File tree

8 files changed

+10
-12
lines changed

8 files changed

+10
-12
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ Note that `Tutorial Notebook 4` will not run correctly in Binder as it requires
4040
Compatibility
4141
--------------
4242

43-
The code was developed and tested with Python version 3.8. The minimum required Python version is 3.6. If you install the dependencies of xrdfit using the
44-
specification in requirements.txt, this will use the same package versions used by the developers. While this is good for reproducibility, it is worth noting that
45-
if you are using a newer Python version (> 3.8), some of these packages may not have binary wheels for your version and may require compilation.
43+
The latest version of xrdfit was tested with Python version 3.10. The minimum required Python version is 3.7.
4644

4745
Required libraries
4846
--------------------

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'Peter Crowther and Christopher Daniel'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '1.2.1'
25+
release = '1.3.0'
2626

2727

2828
# -- General configuration ---------------------------------------------------

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ xrdfit documentation
77
Installation
88
==============
99

10-
``xrdfit`` is compatible with Python 3.6+.
10+
``xrdfit`` is compatible with Python 3.7+.
1111

1212
Use :command:`pip` to install the latest stable version of ``xrdfit``:
1313

readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
version: 2
44

55
python:
6-
version: 3.6
6+
version: 3.7
77
install:
88
- requirements: requirements.txt
99
- method: setuptools

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ matplotlib
33
pandas
44
dill
55
tqdm
6-
lmfit
6+
lmfit>=1.1.0
77
notebook
88
ipywidgets
99
PyYAML

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='xrdfit',
8-
version='1.2.1',
8+
version='1.3.0',
99
description='Automated fitting of XRD peaks using Pseudo-Voight fits',
1010
author='Peter Crowther, Christopher Daniel',
1111
long_description=long_description,
@@ -27,5 +27,5 @@
2727
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
2828
"Operating System :: OS Independent",
2929
],
30-
python_requires='>=3.6',
31-
)
30+
python_requires='>=3.7',
31+
)

tutorial notebooks/3 - Fitting peaks over time.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
"cell_type": "markdown",
133133
"metadata": {},
134134
"source": [
135-
"In this case the errors on the parameters are mostly small relative to the magnitude of the parameters they look particularly large in this case because the fit parameters do not change significantly. This is because the 10 example files represent only a short time period where little was changing in the material.\n",
135+
"In this case the errors on the parameters are mostly small relative to the magnitude of the parameters. They look particularly large in this case because the fit parameters do not change significantly. This is because the 10 example files represent only a short time period where little was changing in the material.\n",
136136
"\n",
137137
"Error bars are plotted by default, to turn them off you can use the `show_error` parameter:"
138138
]

xrdfit/pv_fit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def do_pv_fit(peak_data: np.ndarray, peak_param: "PeakParams") -> lmfit.model.Mo
2929
model += lmfit.models.PseudoVoigtModel(prefix=prefix)
3030
else:
3131
model = lmfit.models.PseudoVoigtModel(prefix=prefix)
32-
model += lmfit.Model(lambda background: background)
32+
model += lmfit.Model(lambda x, background: background)
3333

3434
two_theta = peak_data[:, 0]
3535
intensity = peak_data[:, 1]

0 commit comments

Comments
 (0)