-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] pre-commit autoupdate (#1155)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black.git: 23.12.1 β 24.1.1](https://github.com/psf/black.git/compare/23.12.1...24.1.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 β v4.5.0](pre-commit/pre-commit-hooks@v4.4.0...v4.5.0) - [github.com/psf/black.git: 23.9.1 β 23.11.0](https://github.com/psf/black.git/compare/23.9.1...23.11.0) - [github.com/pre-commit/mirrors-mypy: v1.5.1 β v1.7.0](pre-commit/mirrors-mypy@v1.5.1...v1.7.0) - [github.com/PyCQA/pylint: v3.0.0a7 β v3.0.1](pylint-dev/pylint@v3.0.0a7...v3.0.1) - [github.com/pre-commit/mirrors-prettier: v3.0.3 β v3.1.0](pre-commit/mirrors-prettier@v3.0.3...v3.1.0) - [github.com/asottile/pyupgrade: v3.13.0 β v3.15.0](asottile/pyupgrade@v3.13.0...v3.15.0) * build: β¬οΈ Update `black` and `pytest` * docs: β»οΈ Refactor model parameter assignment in `models.py` * ci: π§ Add pre-commit setup and caching * fix: π Fix model parameter assignment * build: β¬οΈ Update dtale version to 3.9.0 * fix: π Update pre-commit-config.yaml and models.md --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Anselm Hahn <[email protected]>
- Loading branch information
1 parent
dde3fa9
commit 27e0b5d
Showing
36 changed files
with
531 additions
and
435 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 |
---|---|---|
|
@@ -15,8 +15,21 @@ jobs: | |
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
- name: Install pre-commit | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pre-commit | ||
pip freeze --local | ||
- name: Cash pre-commit | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: ${{ runner.os }}-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pre-commit- | ||
- name: Pre-commit | ||
uses: pre-commit/[email protected] | ||
run: | | ||
pre-commit run --all-files --color=always | ||
build: | ||
name: Python ${{ matrix.python-version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | ||
needs: pre-commit | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,5 +5,4 @@ | |
SpectraFit uses [Semantic Versioning](https://semver.org/). | ||
""" | ||
|
||
|
||
__version__ = "1.0.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""PPTXModel class for SpectraFit API.""" | ||
|
||
import re | ||
import tempfile | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Test the file model.""" | ||
|
||
import pytest | ||
|
||
from spectrafit.api.file_model import DataFileAPI | ||
|
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,4 +1,5 @@ | ||
"""Test the pptx_model module.""" | ||
|
||
from math import isclose | ||
from typing import Tuple | ||
from typing import Type | ||
|
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
"""Starting jupyter lab as a app.""" | ||
|
||
|
||
import sys | ||
|
||
from jupyterlab.labapp import main | ||
|
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,4 +1,5 @@ | ||
"""Test of the Jupiter plugin app.""" | ||
|
||
from unittest import mock | ||
|
||
|
||
|
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
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,4 +1,5 @@ | ||
"""Convert the input and output files to the preferred file format.""" | ||
|
||
import argparse | ||
import json | ||
|
||
|
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,4 +1,5 @@ | ||
"""Convert the lock file to a powerpoint presentation.""" | ||
|
||
import argparse | ||
|
||
from pathlib import Path | ||
|
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,6 +1,5 @@ | ||
"""Test of the RIXS Visualizer.""" | ||
|
||
|
||
from pathlib import Path | ||
from typing import Any | ||
from typing import Tuple | ||
|
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,4 +1,5 @@ | ||
"""Fit-Results as Report.""" | ||
|
||
import pprint | ||
import sys | ||
|
||
|
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,4 +1,5 @@ | ||
"""SpectraFit, the command line tool for fitting.""" | ||
|
||
import argparse | ||
|
||
from typing import Any | ||
|
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,4 +1,5 @@ | ||
"""Pytest of the plotting features of spectrafit.""" | ||
|
||
import pandas as pd | ||
|
||
from matplotlib import pyplot | ||
|
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,4 +1,5 @@ | ||
"""Pytest of report model.""" | ||
|
||
from math import isclose | ||
from typing import Any | ||
from typing import Dict | ||
|
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,4 +1,5 @@ | ||
"""Pytest of tools model.""" | ||
|
||
import gzip | ||
import pickle | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Test of the jupyter plugin.""" | ||
|
||
from typing import Any | ||
from typing import Dict | ||
from typing import List | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Tools for generating spectra for testing.""" | ||
|
||
import math | ||
|
||
from pathlib import Path | ||
|
Submodule docker-stacks
updated
182 files
Submodule lmfit-py
updated
27 files
+0 β1 | .gitignore | |
+8 β9 | .pre-commit-config.yaml | |
+28 β25 | azure-pipelines.yml | |
+0 β2 | doc/Makefile | |
+1 β1 | doc/conf.py | |
+1 β1 | doc/confidence.rst | |
+8 β36 | doc/fitting.rst | |
+5 β5 | doc/installation.rst | |
+31 β44 | doc/model.rst | |
+7 β18 | doc/whatsnew.rst | |
+0 β709 | examples/discuss_model_eval_uncertainty.ipynb | |
+0 β102 | examples/doc_model_uncertainty_pred.py | |
+4 β43 | lmfit/confidence.py | |
+2 β5 | lmfit/jsonutils.py | |
+27 β20 | lmfit/minimizer.py | |
+36 β61 | lmfit/model.py | |
+0 β4 | lmfit/parameter.py | |
+0 β136 | pyproject.toml | |
+99 β0 | setup.cfg | |
+10 β1 | tests/test_ampgo.py | |
+6 β0 | tests/test_basinhopping.py | |
+8 β0 | tests/test_dual_annealing.py | |
+0 β21 | tests/test_model.py | |
+0 β56 | tests/test_model_saveload.py | |
+1 β1 | tests/test_nose.py | |
+0 β34 | tests/test_params_uvars.py | |
+7 β0 | tests/test_shgo.py |