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
2 changes: 1 addition & 1 deletion .github/workflows/documentation-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11
- name: Install Pandoc, repo and dependencies
run: |
sudo apt install pandoc
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11

- name: Install dependencies and build
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.10', '3.11','3.12']
if: "!contains(github.event.head_commit.message, '[ci skip]')"

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

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

- name: Install dependencies and build
run: |
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Before you submit a pull request, check that it meets these guidelines:
2. If the pull request adds functionality, the docs should be updated. Put
your new functionality into a function with a docstring, and add the
feature to the list in README.md.
3. The pull request should work for Python 3.9, 3.10, and 3.11, and for PyPy. Check
3. The pull request should work for Python, 3.10, 3.11 and 3.12, and for PyPy. Check
https://travis-ci.com/easyScience/EasyReflectometryLib/pull_requests
and make sure that the tests pass for all supported Python versions.

Expand Down
15 changes: 0 additions & 15 deletions docs/src/calculators.rst

This file was deleted.

20 changes: 0 additions & 20 deletions docs/src/dictionay.rst

This file was deleted.

4 changes: 0 additions & 4 deletions docs/src/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@

installation
usage
sample/sample
calculators
model/model
tutorials/tutorials
dictionary
contributing
authors
api/api
Expand Down
662 changes: 662 additions & 0 deletions docs/src/tutorials/advancedfitting/multi_contrast.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
Assemblies
Creating multilayers and surfactant layers
==========

:py:mod:`easyreflectometry` is designed to be used with a broad range of different assemblies.
These assemblies offer flexibility for the user and enable more powerful analysis by making chemical and pysical constraints available with limited code.
:py:mod:`easyreflectometry` is designed to be used with a broad range of different assemblies.
Assemblies are collective layers behaving as a single object, for example, a multilayer or a surfactant layer.
These assemblies offer flexibility for the user and enable more powerful analysis by making chemical and physical constraints available with limited code.
In this page, we will document the assemblies that are available with simple examples of the constructors that exist.
Full API documentation is also available for the :py:mod:`easyreflectometry.sample.assemblies` module.

:py:class:`Multilayer`
----------------------

This assembly should be used for a series of layers that, for whatever reason, should be thought of as a single object.
This assembly should be used for a series of layers that should be thought of as a single object.
For example, in the `simple fitting tutorial`_ this assembly type is used to combine the silicon and silicon dioxide layer that as formed into a single object.
All of the separate layers in these objects will be fitted individually, i.e. there is no constraints present, however, there is some cognative benefit to grouping layers together.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Layers
Defining Layers
======

Similar to a range of different `materials`_, there are a few different ways that a layer can be defined in :py:mod:`easyreflectometry`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Materials
Defining materials
=========

In order to support a wide range of applications (and to build complex `assemblies`_) there are a few different types of material that can be utilised in :py:mod:`easyreflectometry`.
These can include constraints or enabel the user to define the material based on chemical or physical properties.
Full API documentation for the :py:mod:`easyreflectometry.sample.elements.material` mdoule is also available, but here we will give some simple uses for them.
These can include constraints or enable the user to define the material based on chemical or physical properties.
Full API documentation for the :py:mod:`easyreflectometry.sample.elements.material` module is also available, but here we will give some simple uses for them.

:py:class:`Material`
--------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Model
Creating a model
=====

The main component of an experiment in :py:mod:`easyreflectometry` is the :py:class:`Model`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Sample
Basic
======

The :py:mod:`easyreflectometry` package is focused on making easy to use functionality for specific modelling approaches.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"id": "f404875e",
"metadata": {},
"source": [
"First configure matplotlib to place figures in notebook and import needed modules"
"First configure matplotlib to place figures in notebook and import needed modules. Note that the plot function needs installation of `plopp` seperately or installation of `easyreflectometry[dev]`"
]
},
{
Expand Down Expand Up @@ -354,7 +354,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "erl_d",
"display_name": ".venv2",
"language": "python",
"name": "python3"
},
Expand All @@ -368,7 +368,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.5"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"id": "e46c0e41",
"metadata": {},
"source": [
"First configure matplotlib to place figures in notebook and import needed modules"
"First configure matplotlib to place figures in notebook and import needed modules. Note that the plot function needs installation of `plopp` seperately or installation of `easyreflectometry[dev]`"
]
},
{
Expand Down Expand Up @@ -151,7 +151,7 @@
"Now we can create the `SurfactantLayer` object, this takes a large number of parameters, that we will introduce gradually. \n",
"\n",
"<center>\n",
" <img src='dspc.png' alt='The chemical structure for the DSPC molecule.' width='400px'></img>\n",
" <img src='dspc.png' alt='The chemical structure for the DSPC molecule.'></img>\n",
"</center>\n",
"<center>\n",
" The chemical structure for the DSPC molecule. By <a href='https://commons.wikimedia.org/w/index.php?curid=97726650'>Graeme Bartlett - Self Drawn, CC0</a>\n",
Expand Down Expand Up @@ -474,7 +474,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": ".venv2",
"language": "python",
"name": "python3"
},
Expand All @@ -488,7 +488,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.10"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions docs/src/tutorials/fitting/repeating.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"id": "f5d0bd58",
"metadata": {},
"source": [
"First configure matplotlib to place figures in notebook and import needed modules"
"First configure matplotlib to place figures in notebook and import needed modules. Note that the plot function needs installation of `plopp` seperately or installation of `easyreflectometry[dev]`"
]
},
{
Expand Down Expand Up @@ -327,7 +327,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": ".venv2",
"language": "python",
"name": "python3"
},
Expand All @@ -341,7 +341,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.10"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down
7 changes: 4 additions & 3 deletions docs/src/tutorials/fitting/simple_fitting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"id": "d0fea80b",
"metadata": {},
"source": [
"First configure matplotlib to place figures in notebook and import needed modules"
"First configure matplotlib to place figures in notebook and import needed modules.\n",
"Note that the plot function needs installation of `plopp` seperately or installation of `easyreflectometry[dev]`"
]
},
{
Expand Down Expand Up @@ -523,7 +524,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": ".test",
"language": "python",
"name": "python3"
},
Expand All @@ -537,7 +538,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.10"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down
Loading
Loading