Commit graph

1390 commits

Author SHA1 Message Date
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
Fabian Joswig
957030cba0 fix: explicit type check replaced by isinstance in fits.least_squares. 2023-09-17 18:11:26 +02:00
Fabian Joswig
2017de0ec7 ci: workflow_dispatch added to pytest and examples workflow. 2023-09-15 09:02:08 +02:00
Fabian Joswig
7f8c2ce33b
feat: added support for addition and multiplication of complex numbers (#209)
to Corr objects.
2023-07-21 14:15:41 +01:00
Fabian Joswig
01ef97ffdf
docs: example 5 validation updated. 2023-07-20 12:20:06 +01:00
Fabian Joswig
7f5373d5e4
build: version bumped to 2.10.0-dev 2023-07-20 11:54:43 +01:00
Fabian Joswig
d768d355ac
build: version bumped to 2.9.0 2023-07-20 11:41:50 +01:00
Fabian Joswig
07ad89ec6e
docs: CHANGELOG updated. 2023-07-20 11:41:10 +01:00
Fabian Joswig
087a3f92eb
feat: short version of vectorized gamma_method simplified. 2023-07-20 11:31:20 +01:00
Fabian Joswig
af28f77ec5
__eq__ method for Corr class (#206)
* feat: implemented __eq__ method for Corr class.

* feat: __eq__ method now respects None entries in correlators.

* feat: Obs can now be compared to None, __ne__ method removed as it is
not required.

* feat: Corr.__eq__ rewritten to give a per element comparison.

* tests: additional test case for correlator comparison added.

* feat: comparison now also works for padding.
2023-07-19 15:06:19 +01:00
Fabian Joswig
1e438356fd
Vectorized gamma_method (#207)
* feat: vectorized gamma_method function added.

* feat: vectorized gamma method generalized to also work on other objects
like Corr or Fit_result.

* feat: alias gamma_method for vectorized gamma_method added.

* docs: example 5 updated to include vectorized gamma_method.

* docs: output of example 5 updated.
2023-07-19 12:13:20 +01:00
Fabian Joswig
6b7846486d
General hadrons hdf5 reader added (#205)
* feat: new general read_hd5 function added.

* feat: real or imaginary part can be specified in read_hd5.

* fix: spacing fixed.

* feat: Added the option to extract complex correlators in read_hd5.
2023-07-18 16:04:59 +01:00
Fabian Joswig
66d5f8be24
Corr array initialization generalized (#203)
* feat: corr array initialization generalized.

* feat: additional checks for three-dimensional arrays added.

* docs: Corr docstring improved.

* docs: typos corrected.

* docs: details about None padding added to Corr docstring.
2023-07-18 12:07:46 +01:00
Fabian Joswig
491c7bcb04
fix: split meson on last underscore in read_meson_hdf5. (#204) 2023-07-18 10:36:19 +01:00
Fabian Joswig
ad188acec4
docs: instruction for installing develop branch updated. 2023-07-17 15:34:25 +01:00
Fabian Joswig
bf1c762148
docs: read_meson docstring improved. 2023-07-17 13:34:39 +01:00
Fabian Joswig
f1150f09c8
Matmul overloaded for correlator class. (#199)
* feat: matmul method added to correlator class.

* feat: corr, corr matmul and correlator matrix trace added.

* tests: tests for matmul and trace added.

* tests: slightly reduced tolerance and good guess bad guess test.

* feat: rmatmul added and __array_priority__ set.

* tests: additional tests for rmatmul added.

* tests: one more tests for rmatmul added.

* docs: docstring added to Corr.trace.

* tests: associative property test added for complex Corr matmul.

* fix: Corr.roll method now also works for correlator matrices by
explicitly specifying the axis.

Co-authored-by: Matteo Di Carlo <matteo.dicarlo93@gmail.com>

* feat: exception type for correlator trace of 1dim correlator changed.

* tests: trace N=1 exception tested.

---------

Co-authored-by: Matteo Di Carlo <matteo.dicarlo93@gmail.com>
2023-07-17 11:48:57 +01:00
Fabian Joswig
7d1858f6c4
Merge branch 'develop' of github.com:fjosw/pyerrors into develop 2023-07-17 10:19:56 +01:00
Fabian Joswig
1343391212
docs: ask a question added to README. 2023-07-17 10:19:20 +01:00
Fabian Joswig
5c2a6de56f
fix: explicit Exception for combined fit constant edge case. (#202) 2023-07-14 14:26:54 +01:00
s-kuberski
6dcd0c3518
feat: Added numerical integration of generic functions (#201)
* feat: Added numerical integration of generic functions

* refactored integration routines

* tests: two trivial tests for integration added.

* docs: quad docstring corrected.

* Small bugfix for integration without obs

---------

Co-authored-by: Fabian Joswig <fabian.joswig@ed.ac.uk>
2023-07-14 14:21:59 +01:00
Fabian Joswig
8736d1cd3c
feat: CObs format added and complex Corr print improved. (#200) 2023-07-14 13:38:21 +01:00
Fabian Joswig
b62a18643e
Bootstrap export/import (#198)
* feat: export_bootstrap method added.

* feat: import_bootstrap function added.

* tests: first test for import/export bootstrap added.

* feat: bootstrap feature cleaned up.

* docs: boostrap docstrings improved.
2023-07-14 13:12:11 +01:00
Fabian Joswig
2cd076dbd7
docs: details in documentation clarified. 2023-07-10 16:33:09 +01:00
Fabian Joswig
305b458d19
docs: link to Changelog added to README. 2023-07-10 16:13:32 +01:00
Fabian Joswig
e73e393695
docs: pip installation instructions changed. 2023-07-10 16:12:00 +01:00
Fabian Joswig
bf25ecf2ee
docs: Contributing guidelines clarified. 2023-07-10 16:11:25 +01:00
Fabian Joswig
c47e1ccac7
build: flake8 added to test build option in setup.py. 2023-07-10 16:06:55 +01:00
Fabian Joswig
5b024c7379
build: nbmake added to test build option in setup.py. 2023-07-10 16:06:00 +01:00
Fabian Joswig
47bb746b63
docs: citing pyerrors section added to README. 2023-07-10 15:53:33 +01:00
Fabian Joswig
db79cb2d95
tests: test for print_config added. 2023-07-10 15:44:06 +01:00
Fabian Joswig
9589820253
tests: coverage for all derivative variants extended. 2023-07-10 15:35:37 +01:00
Justus Kuhlmann
94b0322f0b
new variant of second derivative, bigger stencil (#197)
* new variant of second derivative, bigger stencil

* better docstring dor second_deriv

* forgot to "r" in front of docstring

* flake8 compliance
2023-07-10 15:32:27 +01:00
Fabian Joswig
8381189708
refactor: plot_piechart slightly simplified. 2023-06-23 13:24:35 +01:00
Fabian Joswig
dac7193398
build: autograd dependency bumped to 1.6.2 2023-06-23 10:17:09 +01:00
Fabian Joswig
85f66d39cb
build: bumped autograd dependency to version 1.6 2023-06-22 13:53:17 +01:00
Fabian Joswig
f14042132f
build: bumped dependency versions to the latest releases.
The idea is to reduce the number of potential version combinations for
easier debugging in the future.
2023-06-02 17:19:20 +01:00
Fabian Joswig
1b45e71e79
ci: mac-os python version fixed. 2023-06-02 16:17:28 +01:00
Fabian Joswig
cdadbd0fad
ci: windows removed from pytest workflow, mac-os python version bumped
to 3.10
2023-06-02 16:16:04 +01:00
Fabian Joswig
4886197a03
docs: changes to pytest workflow documented in CONTRIBUTING.md 2023-06-02 15:49:42 +01:00