-
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.
feat: β¨ Introduce
min_rel
for confidence integrals (#1142)
* feat: β¨ Refactor confidence interval calculation and transform nested types * chore: β»οΈ Update type hints and function signature Update data conversion method to return a MutableMapping[str, Any] Update function name in notebook.py * chore: π Update vendor URL in Dockerfile * chore: β¬οΈ Update submodules in vendor directory * feat: β¨ Add conda environment setup scripts for fish and zsh shells * test: β Add min_rel_change parameter to `args_1()` function * test: β Add "min_rel_change": 10e-6 for testing * fix: π§ͺ Use `pytest` marker for testing `ConfidenceInterval`
- Loading branch information
Showing
11 changed files
with
169 additions
and
37 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
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
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,22 @@ | ||
#!/usr/bin/env fish | ||
|
||
set ENV_NAME $argv[1] | ||
set PACKAGE_NAME $argv[2] | ||
set PYTHON_VERSION $argv[3] | ||
|
||
if test -z "$PYTHON_VERSION" | ||
set PYTHON_VERSION 3.11 | ||
end | ||
|
||
conda create -n $ENV_NAME python=$PYTHON_VERSION --no-default-packages -y | ||
conda activate $ENV_NAME | ||
conda config --add channels conda-forge | ||
conda config --set channel_priority strict | ||
conda install mamba -y | ||
|
||
# Install spectrafit-all package | ||
mamba install spectrafit-all -y | ||
# Install an dditional package if provided | ||
if test -n "$PACKAGE_NAME" | ||
mamba install $PACKAGE_NAME -y | ||
end |
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,18 @@ | ||
#!/usr/bin/env zsh | ||
|
||
ENV_NAME=$1 | ||
PACKAGE_NAME=$2 | ||
PYTHON_VERSION=${3:-3.11} | ||
|
||
conda create -n $ENV_NAME python=$PYTHON_VERSION --no-default-packages | ||
conda activate $ENV_NAME | ||
conda config --add channels conda-forge | ||
conda config --set channel_priority strict | ||
conda install mamba -y | ||
|
||
# Install spectrafit-all package | ||
mamba install spectrafit-all -y | ||
# Install an dditional package if provided | ||
if [[ -n $PACKAGE_NAME ]]; then | ||
mamba install $PACKAGE_NAME -y | ||
fi |
Submodule docker-stacks
updated
182 files
Submodule lmfit-py
updated
26 files
+1 β0 | .gitignore | |
+9 β8 | .pre-commit-config.yaml | |
+25 β28 | azure-pipelines.yml | |
+2 β0 | doc/Makefile | |
+1 β1 | doc/conf.py | |
+1 β1 | doc/confidence.rst | |
+36 β8 | doc/fitting.rst | |
+5 β5 | doc/installation.rst | |
+44 β31 | doc/model.rst | |
+18 β7 | doc/whatsnew.rst | |
+709 β0 | examples/discuss_model_eval_uncertainty.ipynb | |
+102 β0 | examples/doc_model_uncertainty_pred.py | |
+5 β2 | lmfit/jsonutils.py | |
+20 β27 | lmfit/minimizer.py | |
+61 β36 | lmfit/model.py | |
+4 β0 | lmfit/parameter.py | |
+136 β0 | pyproject.toml | |
+0 β99 | setup.cfg | |
+1 β10 | tests/test_ampgo.py | |
+0 β6 | tests/test_basinhopping.py | |
+0 β8 | tests/test_dual_annealing.py | |
+21 β0 | tests/test_model.py | |
+56 β0 | tests/test_model_saveload.py | |
+1 β1 | tests/test_nose.py | |
+34 β0 | tests/test_params_uvars.py | |
+0 β7 | tests/test_shgo.py |