Commit graph

1431 commits

Author SHA1 Message Date
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
Fabian Joswig
5b80f44485
ci: pytest workflow updated to fail on warnings. 2023-06-02 15:48:35 +01:00
Fabian Joswig
e0e2686142
fix: bug in _find_correlator fixed. (#193) 2023-06-02 15:46:27 +01:00
Fabian Joswig
09cf6bae5a
Merge branch 'master' into develop 2023-06-02 15:11:48 +01:00
Fabian Joswig
ba94cbb718
build: version bumped to 2.8.2, CHANGELOG updated. 2023-06-02 15:06:39 +01:00
Fabian Joswig
c6d04cf88b
Fix another edge case in _compute_drho (#194)
* tests: failing test for compute_drho edge case added.

* tests: example file for failing compute_drho added.

* tests: assertion that dvalue stays the same added to compute drho test.

* fix: another edge case in computation of drho fixed.
2023-06-02 15:05:35 +01:00
Fabian Joswig
525c61ed20
Fix another edge case in _compute_drho (#194)
* tests: failing test for compute_drho edge case added.

* tests: example file for failing compute_drho added.

* tests: assertion that dvalue stays the same added to compute drho test.

* fix: another edge case in computation of drho fixed.
2023-06-02 15:04:15 +01:00
Justus Kuhlmann
9489b87a7e
fix nan to None test (#192) 2023-06-01 14:07:16 +01:00
Fabian Joswig
bc6e7e93cb
Merge branch 'master' into develop 2023-06-01 13:42:49 +01:00
Fabian Joswig
07c8a1b71d
build: version bumped to 2.8.1, numpy versions >=1.25 excluded. 2023-06-01 13:35:15 +01:00