Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
b02e59f
Updated Gitignore
HKaras Dec 2, 2025
b5d79dd
Big Documentation Update
HKaras Dec 2, 2025
2953b4d
New doc test github action
HKaras Dec 2, 2025
949370d
Update sphinx packages
HKaras Dec 2, 2025
66e471f
Update github action
HKaras Dec 2, 2025
02b6391
Another githuh action fix
HKaras Dec 2, 2025
8c31f81
Documentation Update
HKaras Dec 2, 2025
dd9c382
Update ETH AWG for new software
HKaras Jan 26, 2026
df8b0e5
Merge remote-tracking branch 'origin/develop' into develop
HKaras Jan 26, 2026
22b5f4f
Added rise time to linear chirp pulses
HKaras Feb 4, 2026
a5d5dcb
F236 update
HKaras Sep 18, 2025
0272a2e
Updated F236 Interface
HKaras Dec 3, 2025
c13e47b
GaussPulse Improvements
HKaras Dec 3, 2025
163055a
Added tau to tune mode + bug fixes
HKaras Jan 21, 2026
898d7ad
Bug Fixes
HKaras Feb 11, 2026
44b8f95
Better NUS handling of parameter rounding
HKaras Mar 31, 2026
4703370
Removed div 0 warnings
HKaras Apr 28, 2026
1aeb5bd
Patch13 dev (#19)
HKaras May 27, 2026
f57d0ea
Merge branch 'main' into develop
HKaras May 27, 2026
b9688ad
Update doc dependecies
HKaras May 27, 2026
ad1fc18
Updated main deps
HKaras May 27, 2026
3ec6e46
PyEPR_Control docstring update
HKaras Jun 22, 2026
d0da52e
Resonator fit moved to sqrt-lorentzian
HKaras Jul 14, 2026
f2d4835
Lots of doc updates
HKaras Jul 14, 2026
29ad866
Removed poetry
HKaras Jul 14, 2026
5e687c2
Added support for linked/parallel phase cycles
HKaras Jul 14, 2026
3236532
Bug Fixes with _axes_uuid and pcyc
HKaras Jul 30, 2026
1894bc1
pulse UUID resets when being copied
HKaras Jul 30, 2026
a8b79c9
Minor improvements
HKaras Jul 30, 2026
e3cd563
Minor Changes
HKaras Jul 31, 2026
241a789
Improved pulse tuning
HKaras Aug 18, 2026
c1b4c94
More colors
HKaras Aug 18, 2026
2ce6df2
More plotting
HKaras Aug 18, 2026
6ef538f
Added ResonatorTuneSequences
HKaras Aug 18, 2026
2cc2190
Moved Base Interface Class to prenvet circular imports
HKaras Aug 18, 2026
81eae02
Bug Fix: copying with pcyc
HKaras Sep 18, 2026
bb8b15c
Add set field command and hilbert transform
Oct 8, 2026
cd163e5
Three Pulse ESEEM
HKaras Oct 13, 2026
fc078f4
Extended IO
HKaras Oct 13, 2026
a3bf9cc
Better ResonatorProfile plot and Filtering
HKaras Oct 14, 2026
3386241
Some more fixes
HKaras Oct 27, 2026
1f66a77
Minor Bug Fixes
HKaras Nov 2, 2026
fa358c8
Gaussian Pulse Definition Fix
HKaras Nov 4, 2026
adf44c4
Moved Sequences + drawing function
HKaras Nov 16, 2026
587ba88
Major refactor of import statements
HKaras Nov 16, 2026
db38078
Docstring update
HKaras Nov 16, 2026
59048a8
Package file update
HKaras Nov 16, 2026
607c2d9
Tests update
HKaras Nov 16, 2026
d10eacf
Dataset doc-string updates
HKaras Nov 16, 2026
ff69ac5
Documentation update
HKaras Nov 16, 2026
703e9be
Updates to PyEPR_Control and other minor changes
HKaras Nov 16, 2026
2135bb6
New sequences and better docs
HKaras Nov 17, 2026
cf9b127
More examples
HKaras Nov 17, 2026
a1000f0
Merge remote-tracking branch 'origin/UNIGE_updates' into develop
HKaras Nov 17, 2026
78eed7f
Update github workflows
HKaras Nov 17, 2026
cf0765c
Update Release Notes
HKaras Nov 17, 2026
7868bb7
Remove legacy sequences.py
HKaras Nov 17, 2026
878847c
Add phase cycles to MetaData
HKaras Nov 17, 2026
185cb2b
Updated release notes
HKaras Nov 17, 2026
770bad8
Merge remote-tracking branch 'origin/main' into develop
HKaras Nov 17, 2026
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
25 changes: 13 additions & 12 deletions .github/workflows/Build_Deploy_Docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,35 @@ jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: write # needed to push to the gh-pages branch

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python -
echo "${HOME}/.local/bin" >> $GITHUB_PATH

- name: Install uv
uses: astral-sh/setup-uv@v6

- name: Install dependencies
run: poetry install --with doc
run: uv sync --extra doc

- name: Build documentation
run: poetry run sphinx-build -b html docsrc/ docsrc/_build/html > sphinx_build.log 2>&1
run: uv run sphinx-build -b html docsrc/ docsrc/_build/html > sphinx_build.log 2>&1
- name: Upload build log
uses: actions/upload-artifact@v4.6.2
if: always()
with:
name: sphinx-build-log
path: sphinx_build.log

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docsrc/_build/html
59 changes: 0 additions & 59 deletions .github/workflows/PyPI_upload.yml

This file was deleted.

19 changes: 8 additions & 11 deletions .github/workflows/TestBuild_Docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,24 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python -
echo "${HOME}/.local/bin" >> $GITHUB_PATH

- name: Install uv
uses: astral-sh/setup-uv@v6

- name: Install dependencies
run: poetry install --with doc
run: uv sync --extra doc

- name: Build documentation
run: poetry run sphinx-build -b html docsrc/ docsrc/_build/html > sphinx_build.log 2>&1
run: uv run sphinx-build -b html docsrc/ docsrc/_build/html > sphinx_build.log 2>&1
- name: Upload build log
uses: actions/upload-artifact@v4.6.2
if: always()
with:
name: sphinx-build-log
path: sphinx_build.log

5 changes: 4 additions & 1 deletion .github/workflows/TestPyPI_Upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ jobs:
needs:
- build
runs-on: ubuntu-latest

# PRs from forks cannot obtain an OIDC token for trusted publishing
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository

environment:
name: testpypi
url: https://test.pypi.org/p/PyEPR-ESR
Expand All @@ -58,3 +60,4 @@ jobs:
with:
verbose: true
repository-url: https://test.pypi.org/legacy/
skip-existing: true # re-runs on the same version would otherwise fail
1 change: 1 addition & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,5 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true # version may already be on TestPyPI from the PR workflow

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
sg_execution_times.rst


# PyInstaller
# Usually these files are written by a python script from a template
Expand Down Expand Up @@ -70,6 +72,7 @@ instance/
# Sphinx documentation
docsrc/_build/
docsrc/autoapi/
_build/

# PyBuilder
target/
Expand Down Expand Up @@ -128,5 +131,8 @@ dmypy.json
.DS_Store

poetry.lock
*.lock

docsrc/auto_examples/

_pulsespel_output/
9 changes: 8 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
"python.testing.pytestEnabled": true,
"python-envs.pythonProjects": [
{
"path": ".",
"envManager": "ms-python.python:venv",
"packageManager": "ms-python.python:pip"
}
]
}
72 changes: 58 additions & 14 deletions docsrc/API_docs.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. rst-class:: api-docs

API doc
=================
Classes
Expand All @@ -23,21 +25,51 @@ Analysis Modules
pyepr.ResonatorProfileAnalysis
pyepr.CarrPurcellAnalysis
pyepr.ReptimeAnalysis
pyepr.AmplifierLinearityAnalysis

Sequences
~~~~~~~~~
.. _Sequences:

Setup and Calibration Sequences
+++++++++++++++++++++++++++++++
.. _SetupSequences:
.. autoapisummary::

pyepr.sequences.HahnEchoSequence
pyepr.sequences.HahnEchoRelaxationSequence
pyepr.sequences.FieldSweepSequence
pyepr.sequences.ReptimeScan
pyepr.sequences.CarrPurcellSequence
pyepr.sequences.FieldSweepSequence
pyepr.sequences.ResonatorProfileSequence
pyepr.sequences.TWTProfileSequence
pyepr.sequences.T1InversionRecoverySequence

Relxation Sequences
+++++++++++++++++++++
.. _RelaxationSequences:
.. autoapisummary::

pyepr.sequences.HahnEchoRelaxationSequence
pyepr.sequences.CarrPurcellSequence
pyepr.sequences.T1InversionRecoverySequence
pyepr.sequences.ReptimeScanSequence

Dipolar EPR Sequences
+++++++++++++++++++++
.. _DipolarSequences:

.. autoapisummary::

pyepr.sequences.DEER.ThreePulseDEERSequence
pyepr.sequences.DEER.FourPulseDEERSequence
pyepr.sequences.DEER.FivePulseDEERSequence

Hyperfine Spectroscopy Sequences
++++++++++++++++++++++++++++++++
.. _HyperfineSequences:

.. autoapisummary::

pyepr.sequences.ESEEM.ThreePulseESEEMSequence
pyepr.sequences.ESEEM.HYSCORESequence

Pulses
~~~~~~
.. _Pulses:
Expand All @@ -48,36 +80,44 @@ Pulses
pyepr.pulses.Detection
pyepr.pulses.RectPulse
pyepr.pulses.GaussianPulse
pyepr.pulses.HSPulse
pyepr.pulses.ChirpPulse
pyepr.pulses.HSPulse
pyepr.pulses.SincPulse
pyepr.pulses.WURSTPulse

Termination Criteria
~~~~~~~~~~~~~~~~~~~~

Termination criteria are used for stopping sequences under specific conditions,
such as when a certain signal-to-noise ratio is reached or when a specific time has elapsed.
They are used through the :py:meth:`interface.terminate_at <pyepr.hardware.BaseInterfaceClass.Interface.terminate_at>` method.

.. autoapisummary::

pyepr.criteria.Criteria
pyepr.criteria.TimeCriteria
pyepr.criteria.SNRCriteria

Utilities
~~~~~~~~~

.. autoapisummary::

pyepr.dataset.EPRAccessor

Interfaces
~~~~~~~~~~
.. _Interfaces:

.. autoapisummary::
pyepr.classes.Interface

pyepr.hardware.BaseInterfaceClass.Interface
pyepr.hardware.Bruker_AWG.BrukerAWG
pyepr.hardware.Bruker_MPFU.BrukerMPFU
pyepr.hardware.XeprAPI_link.XeprAPILink
pyepr.hardware.ETH_awg.ETH_awg_interface
pyepr.hardware.PyEPR_control.PyEPRControlInterface
pyepr.hardware.XeprAPI_link.XeprAPILink

Utilities
~~~~~~~~~

.. autoapisummary::

pyepr.dataset.EPRAccessor

Functions
----------------
Expand All @@ -86,6 +126,8 @@ I/O
~~~

.. autoapisummary::
:nosignatures:

pyepr.tools.eprload
pyepr.utils.save_file
pyepr.dataset.create_dataset_from_sequence
Expand All @@ -97,6 +139,8 @@ Utilities
~~~~~~~~~

.. autoapisummary::
:nosignatures:

pyepr.utils.transpose_dict_of_list
pyepr.utils.transpose_list_of_dicts
pyepr.utils.round_step
Expand Down
5 changes: 5 additions & 0 deletions docsrc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
To build the documentation and serve it with live reloading, run:
```
sphinx-autobuild docsrc docsrc/_build/html
```

to build the documentation once without live reloading, run:
```
sphinx-build -b html docsrc docsrc/_build/html
```
23 changes: 23 additions & 0 deletions docsrc/_static/autoapi.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* "Attributes" / "Methods" headings on class pages (_templates/autoapi/python/class.rst).
Styled as section headings so they stand apart from docstring rubrics such as "Examples". */
p.rubric.autoapi-member-heading {
font-size: 1.25em;
margin-top: 2rem;
padding-bottom: 0.25rem;
border-bottom: 1px solid var(--color-background-border);
}

/* Summary tables on API_docs.rst (its top section has class "api-docs"): full width with
a fixed first column, so every table on the page lines up. */
section.api-docs table.autosummary {
width: 100%;
table-layout: fixed;
}
section.api-docs table.autosummary td:first-child {
width: 40%;
}

/* "Inherited from X: a, b, c" link lists under those headings. */
div.autoapi-inherited {
margin-top: 1rem;
}
6 changes: 6 additions & 0 deletions docsrc/_static/gallery.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* Code blocks given ":class: scroll-40" (e.g. the PulseSpel file tabs in
examples/interfaces/PulseSpel_Compile.py): show at most 40 lines, then scroll. */
div.scroll-40 pre {
max-height: 40lh;
overflow-y: auto;
}
Loading
Loading