Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
merrygoat committed May 16, 2023
2 parents c1cb935 + 0325e7b commit d8e634c
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 12 deletions.
4 changes: 1 addition & 3 deletions README.md
Expand Up @@ -40,9 +40,7 @@ Note that `Tutorial Notebook 4` will not run correctly in Binder as it requires
Compatibility
--------------

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
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
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.
The latest version of xrdfit was tested with Python version 3.10. The minimum required Python version is 3.7.

Required libraries
--------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Expand Up @@ -22,7 +22,7 @@
author = 'Peter Crowther and Christopher Daniel'

# The full version, including alpha/beta/rc tags
release = '1.2.1'
release = '1.3.0'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Expand Up @@ -7,7 +7,7 @@ xrdfit documentation
Installation
==============

``xrdfit`` is compatible with Python 3.6+.
``xrdfit`` is compatible with Python 3.7+.

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

Expand Down
2 changes: 1 addition & 1 deletion readthedocs.yaml
Expand Up @@ -3,7 +3,7 @@
version: 2

python:
version: 3.6
version: 3.7
install:
- requirements: requirements.txt
- method: setuptools
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -3,7 +3,7 @@ matplotlib
pandas
dill
tqdm
lmfit
lmfit>=1.1.0
notebook
ipywidgets
PyYAML
6 changes: 3 additions & 3 deletions setup.py
Expand Up @@ -5,7 +5,7 @@

setup(
name='xrdfit',
version='1.2.1',
version='1.3.0',
description='Automated fitting of XRD peaks using Pseudo-Voight fits',
author='Peter Crowther, Christopher Daniel',
long_description=long_description,
Expand All @@ -27,5 +27,5 @@
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
)
python_requires='>=3.7',
)
2 changes: 1 addition & 1 deletion tutorial notebooks/3 - Fitting peaks over time.ipynb
Expand Up @@ -132,7 +132,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"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",
"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",
"\n",
"Error bars are plotted by default, to turn them off you can use the `show_error` parameter:"
]
Expand Down
2 changes: 1 addition & 1 deletion xrdfit/pv_fit.py
Expand Up @@ -29,7 +29,7 @@ def do_pv_fit(peak_data: np.ndarray, peak_param: "PeakParams") -> lmfit.model.Mo
model += lmfit.models.PseudoVoigtModel(prefix=prefix)
else:
model = lmfit.models.PseudoVoigtModel(prefix=prefix)
model += lmfit.Model(lambda background: background)
model += lmfit.Model(lambda x, background: background)

two_theta = peak_data[:, 0]
intensity = peak_data[:, 1]
Expand Down

0 comments on commit d8e634c

Please sign in to comment.