-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
145 changed files
with
484 additions
and
6,024 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
name: "\U0001F41B Bug report" | ||
about: Something is no working and needs a fix. | ||
title: "[BUG] A short description of the bug" | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
### Describe the bug | ||
A clear and concise description of what the bug is. | ||
|
||
### Environment | ||
**DeerLab Version:** X.X.X | ||
**Python Version:** X.X.X | ||
**OS:** Windows, Max, Linux? | ||
|
||
### How to reproduce it? | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
### Expected behavior | ||
A clear and concise description of what you expected to happen. | ||
|
||
### Code Snippet | ||
```` | ||
Copy-paste your code here | ||
```` | ||
|
||
### Files | ||
If there are any files required to run your code please upload them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Docs Build & Deployment | ||
|
||
on: | ||
push: | ||
branches: | ||
- manual_ghp_update | ||
- master | ||
paths: | ||
- 'docsrc/**' | ||
schedule: | ||
# Run once a week on Sunday at 12:00 PM | ||
- cron: '0 12 * * 0' | ||
|
||
jobs: | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
key: ${{ runner.os }}-${{ hashFiles('**/make.bat') }} | ||
restore-keys: | | ||
{{ runner.os }}-pip- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install sphinx==1.8.0 | ||
python -m pip install sphinx_rtd_theme | ||
python -m pip install numpydoc | ||
python -m pip install sphinx-gallery | ||
python -m pip install sphinxcontrib-httpdomain | ||
sudo apt install texlive-extra-utils | ||
sudo apt-get install texlive-latex-extra | ||
python -m pip install . | ||
- name: Build with Sphinx | ||
run: | | ||
sphinx-build -E -b html ./docsrc/source ./docs | ||
- name: Deploy to GH-Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,5 @@ docsrc/__pycache__/ | |
dist/ | ||
build/ | ||
.debugging.py | ||
multidocs/**/* | ||
docsrc/source/auto_examples/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
------------------------------- | ||
|
||
Version 0.10.0 - August 2020 | ||
----------------------------- | ||
|
||
As of this version, DeerLab is written in Python in contrast to older versions based on MATLAB. | ||
|
||
Deprecated functions | ||
The following functions have been deprecated due to limited usability or due to functionality overlap with other DeerLab functions: ``aptkernel``, ``backgroundstart``, ``fitbackground``, ``paramodel``, and ``time2freq``. | ||
|
||
Overall changes | ||
* All fit functions now return a single ``FitResult`` output which will contain all results. | ||
|
||
* All functions are now compatible with non-uniformly increasing distance axes. | ||
|
||
* All fit functions are completely agnostic with respect of the abolute values of the signal amplitude. This is automatically fitted by all function and return as part of the results. | ||
|
||
* Uncertainty quantification for all fit functions is returned as a ``UncertQuant`` object from which confidence intervals, parameter distributions, etc. can be generated generalizing the uncertainty interface for all DeerLab. Uncertainty can now be propagated to arbitrary functions. | ||
|
||
Specific changes | ||
* ``fitparamodel``: the functionality has been streamlined. Function now fits arbitrary parametric models using non-linear leas-squares without consideration of whether it is a time-domain or distance-domain model. The models no longer need to take two inputs (axis+parameters) and now only tk the parameters as input. | ||
|
||
* ``fitregmodel``: goodness-of-fit estimators are now computed using the proper estimation the degrees of freedom. | ||
|
||
* ``fitmultimodel``: added internal measures to avoid situations where one or several components are suppressed by fitting zero-amplitudes making the method more stable. | ||
|
||
* ``uqst``: the uncertainty distributions of the parameters are now returned as properly normalized probability density functions. | ||
|
||
* ``fftspec``: frequency axis construction has been corrected. | ||
|
||
* ``regoperator``: now calculates the numerically exact finite-difference matrix using Fornberg's method. | ||
|
||
* ``correctphase``: now can handle 2D-datasets. | ||
|
||
------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,45 @@ | ||
# PyDeerLab | ||
<p align="center"> | ||
<img src="https://raw.githubusercontent.com/JeschkeLab/DeerLab/master/docsrc/source/_static/logo_dark.png" alt="DeerLab Logo" width="40%"></img> | ||
</p> | ||
</div> | ||
|
||
This is a Python port of the DeerLab MATLAB toolbox. | ||
### About | ||
DeerLab is a Python package for the analysis of dipolar EPR (electron paramagnetic resonance) spectroscopy data. Dipolar EPR spectroscopy techniques include DEER (double electron-electron resonance), RIDME (relaxation-induced dipolar modulation enhancement), and others. The documentation can be found [here](https://jeschkelab.github.io/DeerLab/index.html). | ||
|
||
DeerLab consists of a collection of functions for modelling, data processing, and least-squares fitting. They can be combined in scripts to build custom data analysis workflows. DeerLab supports both classes of distance distribution models: non-parametric (Tikhonov regularization and related) and parametric (multi-Gaussians etc). It also provides a selection of background and experiment models. | ||
|
||
The early versions of DeerLab (up to version 0.9) are written in MATLAB. The old MATLAB codebase is archived and can be found [here](https://github.com/JeschkeLab/DeerLab-Matlab). | ||
|
||
### Requirements | ||
|
||
DeerLab is available for Windows, Mac and Linux systems and requires **Python 3.6**, **3.7**, or **3.8**. | ||
|
||
All additional dependencies are automatically downloaded and installed during the setup. | ||
|
||
### Setup | ||
|
||
A pre-built distribution can be installed using `pip`. | ||
|
||
First, ensure that `pip` is up-to-date. From a terminal (preferably with administrative privileges) use the following command: | ||
|
||
python -m pip install --upgrade pip | ||
|
||
Next, install DeerLab with | ||
|
||
python -m pip install deerlab | ||
|
||
More details on the installation of DeerLab can be found [here](https://jeschkelab.github.io/DeerLab/installation.html). | ||
|
||
### Citation | ||
|
||
A paper about DeerLab is currently submitted for publication. When you use DeerLab in your work, for now, please cite the preprint | ||
|
||
> Fábregas Ibáñez, L., Jeschke, G., and Stoll, S.: DeerLab: A comprehensive software package for analyzing dipolar EPR spectroscopy data, Magn. Reson. Discuss., https://doi.org/10.5194/mr-2020-13, 2020 | ||
Please check back frequently for updated publication information. | ||
|
||
### License | ||
|
||
The DeerLab toolbox is licensed under the [MIT License](LICENSE). | ||
|
||
Copyright (c) 2019-2020: Luis Fábregas Ibáñez, Stefan Stoll, Gunnar Jeschke, and [other contributors](https://github.com/JeschkeLab/DeerLab/contributors). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.10.0-dev | ||
v0.10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.