Commit graph

1429 commits

Author SHA1 Message Date
Fabian Joswig
3c36ab08c8 [Version] Bump version to 2.15.0-dev 2025-03-09 12:37:42 +01:00
Fabian Joswig
b2847a1f80 [Release] Bump version to 2.14.0 and update CHANGELOG 2025-03-09 12:35:29 +01:00
s-kuberski
17792418ed
[Fix] Removed the possibility to create an Obs from data on several replica (#258)
* [Fix] Removed the possibility to create an Obs from data on several replica

* [Fix] extended tests and corrected a small bug in the previous commit

---------

Co-authored-by: Simon Kuberski <simon.kuberski@cern.ch>
2025-02-25 16:58:44 +01:00
Fabian Joswig
dd4f8525f7
[CI] Add ARM runner and bump macos runner python version to 3.12 (#260) 2025-02-19 18:23:56 +01:00
s-kuberski
5f5438b563
[Feat] Introduce checks of the provided inverse matrix for correlated fits (#259)
Co-authored-by: Simon Kuberski <simon.kuberski@cern.ch>
2025-02-19 18:15:55 +01:00
s-kuberski
6ed6ce6113
[fix] Corrected an error message (#257)
Co-authored-by: Simon Kuberski <simon.kuberski@cern.ch>
2025-02-13 19:43:56 +01:00
Fabian Joswig
7eabd68c5f
[CI] Speed up test workflow install phase by using uv (#254)
* [CI] Speed up install phase by using uv

* [CI] Use uv in examples workflow

* [CI] Fix yml syntax

* [CI] Install uv into system env

* [CI] Add system install for examples workflow
2025-01-10 09:36:05 +01:00
Justus Kuhlmann
9ff34c27d7
Fix/sfcf ensname (#253)
* correct strings in _get_rep_names, add option for rep_sep

* doc

* add test for rep name getters
2025-01-06 10:46:49 +01:00
Fabian Joswig
997d360db3
[ci] Add ruff workflow (#250)
* [ci] Add ruff workflow

* [ci] Add src for ruff workflow

* [ci] Rename ruff worklow

* [ci] Adjust on for ruff workflow
2024-12-24 17:52:08 +01:00
Fabian Joswig
3eac9214b4
[Fix] Ruff rules and more precise Excpetion types (#248)
* [Fix] Fix test for membership should be 'not in' (E713)

* [Fix] Fix module imported but unused (F401)

* [Fix] More precise Exception types in dirac, obs and correlator
2024-12-24 15:35:59 +01:00
Fabian Joswig
d908508120 [docs] Simplify README 2024-12-18 13:00:06 +01:00
Justus Kuhlmann
b1448a2703
Fix plateaus in correlator (#247) 2024-12-05 22:08:48 +01:00
Fabian Joswig
30bfb55981
[Feat] Provide derivatives for pow (#246)
* [Feat] Provide manual derivatives for __pow__

* [Feat] Also applied changes to rpow

* [Test] Another pow test added.
2024-11-26 17:52:27 +01:00
Fabian Joswig
0ce765a99d [Version] Bumped version to 2.14.0-dev 2024-11-03 17:07:29 +01:00
Fabian Joswig
c057ecffda [Release] Updated changelog and bumped version 2024-11-03 17:03:06 +01:00
Fabian Joswig
47fd72b814
[Build] Release workflow added. (#244) 2024-11-03 16:57:20 +01:00
Fabian Joswig
b43a2cbd34
[ci] Add python 3.13 to pytest workflow. (#242)
* [ci] Add python 3.13 to pytest workflow.

* [ci] Remove py and pyarrow from pytest workflow
2024-10-14 23:27:24 +02:00
s-kuberski
4b1bb0872a
fix: corrected bug that prevented combined fits with multiple x-obs in some cases (#241)
* fix: corrected bug that prevented combined fits with multiple x-obs in some cases

* made test more complex

* [Fix] Slightly increase tolerance for matrix function test.

* Adapt test_merge_idx to compare lists

---------

Co-authored-by: Simon Kuberski <simon.kuberski@cern.ch>
Co-authored-by: Fabian Joswig <fjosw@users.noreply.github.com>
2024-09-13 19:15:59 +02:00
Pia Leonie Jones Petrak
1d6f7f65c0
Feature/corr matrix and inverse cov matrix as input in least squares function for correlated fits (#223)
* feat: corr_matrix kwargs as input for least squares fit

* feat/tests: inverse covariance matrix and correlation matrix kwargs as input for least squares function

* feat/tests/example: reduced new kwargs to 'inv_chol_cov_matrix' and outsourced the inversion & cholesky decomposition of the covariance matrix (function 'invert_corr_cov_cholesky(corr, covdiag)')

* tests: added tests for inv_chol_cov_matrix kwarg for the case of combined fits

* fix: renamed covdiag to inverrdiag needed for the cholesky decomposition and corrected its documentation

* examples: added an example of a correlated combined fit to the least_squares documentation

* feat/tests/fix(of typos): added function 'sort_corr()' (and a test of it) to sort correlation matrix according to a list of alphabetically sorted keys

* docs: added more elaborate documentation/example of sort_corr(), fixed typos in documentation of invert_corr_cov_cholesky()
2024-09-13 08:35:10 +02:00
Fabian Joswig
3830e3f777 [Build] Bump version to 2.13.0-dev 2024-08-22 22:08:40 +02:00
Fabian Joswig
041d53e5ae
[Release] Prepare v2.12.0 (#240)
* [docs] Changelog updated.

* [build] Bump version.
2024-08-22 22:04:54 +02:00
Fabian Joswig
55cd782909
[Build] Remove python3.8 and add support for numpy 2 (#239)
* [build] Remove python 3.8 and bump dependency version.

* [Build] Remove python 3.8 from ci and update README python badge.

* [ci] Temporarily remove -Werror from pytest workflow.

* [ci] Remove python 3.8 from examples workflow.

* [Build] Bump further dependency versions.
2024-08-22 21:59:07 +02:00
Justus Kuhlmann
7ca9d4ee41
corrected sfcf_read_multi behaviour (#238) 2024-08-15 19:00:52 +02:00
Justus Kuhlmann
d17513f043
bugfix: read bb and bib/bi corr in one with keyed_out (#237) 2024-06-19 12:55:30 +02:00
Justus Kuhlmann
0e8d68a1f0
erase print rep data (#235) 2024-05-13 22:27:17 +02:00
Fabian Joswig
fce6bcd1f8 [build] Bump version to v2.12.0-dev 2024-04-25 20:55:35 +02:00
Fabian Joswig
e23373d5ee [release] Update changelog and bump version 2024-04-25 20:50:36 +02:00
s-kuberski
db612597d2
[fix] Handle missing replia (#232)
* [fix] First version of a fix to cope with missing replica.

* [fix] added test for missing replica

* [fix] refactored fix for missing replica, modified tests

* [fix] refinement of tests
2024-04-25 20:45:53 +02:00
Fabian Joswig
43bd99b6c7
[fix] Numpy 2 breaking changes in tests (#234) 2024-04-17 14:53:34 +02:00
Fabian Joswig
9f46bf8966 [build] Version bumped to v2.12.0-dev 2024-04-01 16:22:08 +02:00
Fabian Joswig
1fce785597 [Build] Version bumped to 2.11, CHANGELOG updated, numpy<2 requirement
added.
2024-04-01 16:13:48 +02:00
Justus Kuhlmann
254a19f321
Catch error if no replica are found in the geiven directory (#230) 2024-03-25 15:50:19 +01:00
Fabian Joswig
0df5882d1f
[ci] Include python 3.12 in ci after new dateutils release. (#229) 2024-03-01 07:14:01 +01:00
Justus Kuhlmann
b930fab9c2
Fix keyword files with list of lists (#226)
* first impl. handle reps with list of lists

* implement explicit type checks
2024-02-18 13:39:35 +01:00
Fabian Joswig
43383acead
[ci] Update actions to use Node.js 20 (#228) 2024-02-06 17:54:33 +01:00
Fabian Joswig
1713ea146a
[ci] Install pyarrow in pytest workflow to silence pandas warnings. (#227) 2024-01-21 12:41:37 +01:00
Justus Kuhlmann
df1873b5ac
Throw error when trying to only find idls that are not present (#224) 2024-01-11 17:48:51 +01:00
Fabian Joswig
b5bc687625 [ci] Removed codeql workflow. 2024-01-07 17:24:11 +01:00
Fabian Joswig
5122e260ea
Special function module (#221)
* [fix] Fixed intendation for flake8

* [feat] special module with Bessel functions added.

* [feat] init adapted.

* [tests] First test for special module added.

* [tests] Check kn special function derivative explicitly vs numerical
derivative of scipy function.

* [feat] Added remaining autograd scipy special functions to the special
module.

* [feat] Imports corrected, docstring added.
2024-01-07 17:22:05 +01:00
Fabian Joswig
1360942a7b [build] version bumped to 2.11.0-dev 2023-11-24 17:15:12 +01:00
Fabian Joswig
d0cfc67a43 [release] Version bumped to 2.10.0, CHANGELOG updated. 2023-11-24 17:05:11 +01:00
Fabian Joswig
728c2e55ee
[fix] fixed how the filestem is extracted in hadrons/read_hdf5. (#218) 2023-11-23 13:34:07 +01:00
Fabian Joswig
fb17a46eb9 [docs] latex detection in example notebooks improved. 2023-11-22 17:53:58 +01:00
JanNeuendorf
e1a4d0c218
Additional GEVP method with errors (#195)
* Added the function error_gevp() to compute the gevp with statistical errors.

* Changed method name from error_gevp to error_GEVP and removed automatic gamma method

* added auto_gamma to error_GEVP

* Specified exceptions in Corr.error_GEVP

* Fixed a wrong path. It should be np.linalg.LinAlgError

* Added a test for error_GEVP

* The tests of error_gevp loads a test matrix

* Incorporated eigenvectors with uncertainties in GEVP routine

* Cleaned up GEVP routines

* Cleaned up breaking change from merge

* Released tolerance in test of GEVP

* Repaired broken GEVP test

---------

Co-authored-by: Simon Kuberski <simon.kuberski@uni-muenster.de>
2023-11-17 18:57:18 +01:00
Fabian Joswig
a8d16631d8 [doc] Added Programming Language :: Python :: 3.12 classifier to setup.py 2023-11-14 20:28:52 +01:00
s-kuberski
d689959b1f
fix: Check if configs appears multiple times when creating an obs (#216) 2023-11-10 19:13:11 +01:00
Fabian Joswig
eb83ff2091 [ci] removed failing pytest 3.12 test for now. 2023-11-10 14:21:35 +01:00
Fabian Joswig
e032412ebd
[ci] Added python 3.12 to pytest and examples workflows. (#212) 2023-10-27 08:39:33 +02:00
s-kuberski
dc63142f8e
Fixed bugs for combined fits with multiple independent variables (#211) 2023-10-24 19:30:52 +02:00
Justus Kuhlmann
0ef8649031
Feat/read sfcf multi (#210)
* make template

* read_sfcf_multi running with compact format

* fix append mode, norrmal tests work

* improve readability

* add simple test for multi_read

* simple multi_test works

* add first method to check sfcf param hashes

* add docstring

* simple test for o format working

* use benedict to make loops easier

* introduce python-benedict as dep

* no nice_out, less error prone, found bug in tests

* Revert "introduce python-benedict as dep"

This reverts commit 9696d68b7a.

* Revert "use benedict to make loops easier"

This reverts commit fa3987479b.

* no nice output after reverts

* [build] Added jkuhl-uni as CODEOWNER for sfcf.

* refactor: flatten internal dicts

* very small test extension

* ...flake8

* docu

* Delete second sep init

---------

Co-authored-by: Fabian Joswig <fabian.joswig@uni-muenster.de>
2023-10-20 19:22:55 +02:00