* [chore] Stricter ruff rules
* [chore] Furture lint rules and removal of flake8
* [ci] Bump github action versions
* [chore] Add additional test coverage
* Revert RNG switch to np.random.default_rng()
Restore use of the global np.random state in pseudo_Obs (misc.py) and the
prior id generation (fits.py), keeping seed behavior unchanged. The switch
to a module-local generator is out of scope for this lint-focused PR.
* Silence NPY002 on intentional legacy np.random calls
The RNG migration was reverted to keep np.random.seed() behavior, so add
per-line noqa: NPY002 on the three legacy np.random calls instead of the
Generator API.
* [Fix] Fix exception messages
* [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
* 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>
* 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.
* 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>
corresponding methods of the Corr class. The parameter which
distinguishes between the variant is now a string instead of a bool
which may break current analyses.