Commit graph

1388 commits

Author SHA1 Message Date
Justus Kuhlmann
9696d68b7a introduce python-benedict as dep 2023-10-09 16:10:51 +00:00
Justus Kuhlmann
fa3987479b use benedict to make loops easier 2023-10-09 16:06:13 +00:00
Justus Kuhlmann
eb58920e34 simple test for o format working 2023-10-06 10:40:45 +00:00
Justus Kuhlmann
79db746e66 add docstring 2023-10-02 08:31:37 +00:00
Justus Kuhlmann
1e16acbb71 add first method to check sfcf param hashes 2023-10-02 08:24:19 +00:00
Justus Kuhlmann
5a8878bc70 simple multi_test works 2023-09-27 16:55:30 +00:00
Justus Kuhlmann
44b3759c64 add simple test for multi_read 2023-09-27 16:54:19 +00:00
Justus Kuhlmann
6ea00f966d improve readability 2023-09-27 15:27:22 +00:00
Justus Kuhlmann
4f80012642 fix append mode, norrmal tests work 2023-09-27 15:26:02 +00:00
Justus Kuhlmann
e9b59ec9ed read_sfcf_multi running with compact format 2023-09-27 14:17:49 +00:00
Justus Kuhlmann
8d57d660cd make template 2023-09-08 15:12:06 +00: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