Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ jobs:
deploy:

runs-on: ubuntu-latest

permissions:
id-token: write

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: 3.10
python-version: 3.12

- name: Install dependencies and build
run: |
Expand All @@ -36,5 +38,5 @@ jobs:

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_PASSWORD }}
#with:
# password: ${{ secrets.PYPI_PASSWORD }}
2 changes: 1 addition & 1 deletion docs/src/api/model.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. automodule:: easyreflectometry.experiment.model
.. automodule:: easyreflectometry.model
:members:
:undoc-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion docs/src/api/sample.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

.. automodule:: easyreflectometry.sample.sample
.. automodule:: easyreflectometry.sample
:members:
:undoc-members:
:show-inheritance:
3 changes: 2 additions & 1 deletion docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

import easyreflectometry

sys.path.insert(0, os.path.abspath('../src'))
# sys.path.insert(0, os.path.abspath('../src'))
sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "src"))

main_root = Path(__file__).parents[2]
sys.path.append(str(main_root))
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ dev = [
docs = [
"myst_parser==4.0.1",
"nbsphinx==0.9.7",
"sphinx_autodoc_typehints==3.0.1",
"sphinx_book_theme==1.1.4",
"sphinx",
"sphinx_autodoc_typehints",
"sphinx-book-theme==1.1.4",
"sphinx-copybutton==0.5.2",
"toml==0.10.2",
]
Expand Down
2 changes: 1 addition & 1 deletion src/easyreflectometry/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.3.0'
__version__ = '1.3.1'
8 changes: 4 additions & 4 deletions src/easyreflectometry/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from .measurement import load_as_dataset

__all__ = [
load,
load_as_dataset,
ProjectData,
DataSet1D,
"load",
"load_as_dataset",
"ProjectData",
"DataSet1D",
]
10 changes: 5 additions & 5 deletions src/easyreflectometry/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from .resolution_functions import ResolutionFunction

__all__ = (
LinearSpline,
PercentageFwhm,
ResolutionFunction,
Model,
ModelCollection,
"LinearSpline",
"PercentageFwhm",
"ResolutionFunction",
"Model",
"ModelCollection",
)
28 changes: 14 additions & 14 deletions src/easyreflectometry/sample/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
from .elements.materials.material_solvated import MaterialSolvated

__all__ = (
BaseAssembly,
GradientLayer,
Layer,
LayerAreaPerMolecule,
LayerCollection,
Material,
MaterialCollection,
MaterialDensity,
MaterialMixture,
MaterialSolvated,
Multilayer,
RepeatingMultilayer,
Sample,
SurfactantLayer,
"BaseAssembly",
"GradientLayer",
"Layer",
"LayerAreaPerMolecule",
"LayerCollection",
"Material",
"MaterialCollection",
"MaterialDensity",
"MaterialMixture",
"MaterialSolvated",
"Multilayer",
"RepeatingMultilayer",
"Sample",
"SurfactantLayer",
)
Loading