Justus Kuhlmann
52b91d83d8
add typehints for other util functions
2025-01-09 09:25:57 +00:00
Justus Kuhlmann
dba277fbda
Merge branch 'develop' into feat/typehints
2025-01-06 10:53:10 +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
336117c1cf
[Fix] More type hint fixing
2025-01-05 17:12:50 +01:00
Fabian Joswig
5376a8ad44
[Fix] Further type fixes in fits and sfcf
2025-01-05 16:54:22 +01:00
Fabian Joswig
9c960ae24c
[Fix] Correct type hints in fits.py
2025-01-05 16:30:42 +01:00
Fabian Joswig
6a990c147b
[Fix] Fix ruff
2025-01-03 23:17:06 +01:00
Fabian Joswig
6d5a9b9d83
[Fix] Simplify type annotations in input modules
2025-01-03 23:15:40 +01:00
Fabian Joswig
b8700ef962
[Fix] Fix type annotations in json.py
2025-01-03 22:57:29 +01:00
Fabian Joswig
1c6053ef61
[Fix] Simplify type hints
2025-01-03 22:43:19 +01:00
Fabian Joswig
d45b43e6de
[Fix] Fixed remaining flake8 errors
2025-01-03 19:07:48 +01:00
Fabian Joswig
4f1606d26a
[CI] Add E252 to flake8 exceptions
2025-01-03 19:06:26 +01:00
Fabian Joswig
3654635cd7
[Fix] Removed unused imports
2025-01-03 19:03:00 +01:00
Fabian Joswig
1916de15ec
[Fix] Start fixing remaining type hints
2025-01-03 19:01:20 +01:00
Fabian Joswig
23d4f4c320
[Fix] Fix type hints in misc.py and remove strict zips for python 3.9
...
compatability
2025-01-03 18:39:34 +01:00
Fabian Joswig
9389ad67c9
[CI] Add typing extension package to pytest run for pytthon 3.9
2025-01-03 18:24:46 +01:00
Fabian Joswig
01982568f0
[Fix] Fixed most type annotations in obs.py
2025-01-03 18:19:17 +01:00
Fabian Joswig
a9e082c333
[Fix] Fix type annotations for first part of obs.py
2025-01-03 17:09:05 +01:00
Fabian Joswig
2d34b355ed
[Fix] Fix ruff errors and a few type annotations
2024-12-25 11:44:24 +01:00
Fabian Joswig
8d86295ac5
[Feat] Fixed a few type hints manually
2024-12-25 11:22:44 +01:00
Fabian Joswig
9fe375a747
[Feat] Added type hints to input modules
2024-12-25 11:14:34 +01:00
Fabian Joswig
3db8eb2989
[Feat] Add type hints to pyerrors modules
2024-12-25 11:09:58 +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