Skip to content

Commit

Permalink
Merge pull request #241 from carnisj/skimage
Browse files Browse the repository at this point in the history
Release constraint on skimage version
  • Loading branch information
carnisj authored Mar 18, 2022
2 parents 0837484 + 9d65aca commit 5525707
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 7 deletions.
5 changes: 3 additions & 2 deletions bcdi/utils/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
# Jerome Carnis, carnis_jerome@yahoo.fr

"""
Definition of the correct parameters for the config files.
Validation of configuration parameters.
Parameter validation is performed over the excepted parameters.
The validation is performed only on the expected parameters. Other parameters are simply
discarded.
"""
from numbers import Number, Real
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion bcdi/utils/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class ConfigParser:
file. Some validation is also realized in the class.
:param file_path: path of the configuration file that contains
the arguments, str.
the arguments, str.
:param command_line_args: an optional dictionary of command-line arguments
"""

Expand Down
2 changes: 2 additions & 0 deletions doc/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Future:
-------

* Release the constraint on scikit-image version in the requirements.

* Bug: use explicitely the figure handle to save figures in `bcdi_strain.py` and
`bcdi_preprocessing_BCDI.py`

Expand Down
33 changes: 33 additions & 0 deletions doc/modules/utils/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,39 @@ API Reference
.. automodule:: bcdi.utils.image_registration
:members:

io_helper
^^^^^^^^^

Class and decorators related to the safe opening of files.

API Reference
-------------

.. automodule:: bcdi.utils.io_helper
:members:

parameters
^^^^^^^^^^

Function related to the validation of configuration parameters.

API Reference
-------------

.. automodule:: bcdi.utils.parameters
:members:

parser
^^^^^^

Class and functions related to loading of the config file and command line parameters.

API Reference
-------------

.. automodule:: bcdi.utils.parser
:members:

validation
^^^^^^^^^^

Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies:
- python=3.9
- numpy
- scipy
- scikit-image<=0.18.3
- scikit-image
- matplotlib
- h5py
- traits
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
numpy
scipy
scikit-image<=0.18.3
scikit-image
matplotlib
hdf5plugin
h5py
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@
6. Creating figures for publication using templates.""",
url="https://github.com/carnisj/bcdi",
project_urls={"Documentation": "https://bcdi.readthedocs.io/en/latest/"},
python_requires=">=3.6*",
python_requires=">=3.6*, <3.10",
install_requires=[
"numpy",
"scipy",
"scikit-image<=0.18.3",
"scikit-image",
"matplotlib",
"hdf5plugin",
"h5py",
Expand Down

0 comments on commit 5525707

Please sign in to comment.