Commit graph

1436 commits

Author SHA1 Message Date
Fabian Joswig
991199a680
docs: README updated. 2023-03-14 14:27:51 +00:00
Fabian Joswig
90c9ce9c73
refactor: unnecessary line in fit parameter detection removed.
Iterator variable renamed.
2023-03-14 09:50:35 +00:00
Fabian Joswig
5255f87d7d
docs: image resized. 2023-03-13 16:34:01 +00:00
Fabian Joswig
23fd00b4c2
docs: image resized. 2023-03-13 16:25:50 +00:00
Fabian Joswig
8530353d32
docs: xkcd 927 added to documentation of json.gz format. 2023-03-13 16:20:25 +00:00
Fabian Joswig
08197efe0f
docs: moved installation info for develop branch to documentation. 2023-03-13 13:30:43 +00:00
Fabian Joswig
a2a64146b0
docs: installation info also added to start page of the documentation. 2023-03-13 13:27:57 +00:00
Fabian Joswig
34981b6102
docs: conda-forge installation added to README. 2023-03-13 13:25:24 +00:00
Fabian Joswig
a1d6b95e9a
build: bug report default title changed again. 2023-03-11 21:38:29 +00:00
Fabian Joswig
031b048fa3
build: bug report default title changed. 2023-03-11 21:35:34 +00:00
Fabian Joswig
bafa6ce38d
feat: system added to print_config. 2023-03-11 21:31:21 +00:00
Fabian Joswig
caef8af988
build: bug report issue template added. 2023-03-11 21:30:14 +00:00
Fabian Joswig
0044f90315
feat: print_config moved to misc. 2023-03-11 21:22:03 +00:00
Fabian Joswig
8ed5ce9569
feat: print_config function added to help with debugging. 2023-03-11 21:17:09 +00:00
Fabian Joswig
d8fb683262
docs: CONTRIBUTING.md extended. 2023-03-10 14:37:50 +00:00
Fabian Joswig
fe0f80b8c3
docs: README and CONTRIBUTING updated. 2023-03-10 14:25:17 +00:00
Fabian Joswig
3c942b380d
Serialize list of Obs in pandas.to_sql (#162)
* feat: Added serialization of list of Obs in pandas.to_sql.

* tests: test for list of Obs to sql added.

* feat: auto_gamma functionality added for deserialization of lists of
Obs.
2023-03-10 14:17:20 +00:00
Fabian Joswig
a7a098b861
fix: chisquare, dof and p-value also calculated when dof is 0. Test for
dof and chisquare_over_dof added.
2023-03-09 15:32:27 +00:00
Fabian Joswig
06ba2015be
tests: test for different methods in prior fit added. 2023-03-09 15:00:52 +00:00
Fabian Joswig
99a1033703
refactor: refactored construction of prior Obs in least_squares. 2023-03-09 14:25:37 +00:00
Fabian Joswig
e41f869d18
docs: version guard added to combined fit example. 2023-03-09 13:38:51 +00:00
Fabian Joswig
507fa7dbdc
chore: Duplicate check of y-errors removed and Exception made more
explicit in least_squares.
2023-03-08 16:52:21 +00:00
Fabian Joswig
80f4eef912
chore: Exception in least_squares specified. 2023-03-08 16:45:29 +00:00
Fabian Joswig
e6051d7ba0
docs: docstring of least_squares updated. 2023-03-07 16:39:37 +00:00
Fabian Joswig
839d9214ed
Improved prior fit (#161)
* refactor: merged combined fit and prior fit without breaking the
routine. Fitting with priors does not work yet.

* refactor: correlated fits without priors work now.

* refactor: prior error propagation and dof fixed.

* refactor: old prior fit implementation moved to tests.

* refactor: moved _extract_val_and_dval out of least_squares.

* refactor: comment removed.

* tests: additional tests and exceptions added.

* tests: test for constrained prior fit added.

* docs: least_squares docstring extended.

* fix: linting errors fixed.

* feat: additional if cause for fits without priors added to achieve
original speed.

* tests: test_constrained_and_prior_fit fixed.

* fix: fix array cast of least_squares dict mode.

* tests: test for lists in dict fit added.

* fix: additional asarray added in resplot.

Co-authored-by: Simon Kuberski <simon.kuberski@uni-muenster.de>
2023-03-07 16:15:16 +00:00
Fabian Joswig
82cd2f11ea
fix: multi dim fits fixed in least squares. Test added. (#160)
Co-authored-by: Simon Kuberski <simon.kuberski@uni-muenster.de>
2023-03-03 16:35:26 +00:00
Fabian Joswig
cb289a55ec
Merge pull request #158 from fjosw/refactor/fits2
Refactor chisquare function in least squares
2023-03-03 16:34:28 +00:00
Fabian Joswig
9ef7e504a0
chore: Exceptions in Obs.__init__ made more explicit. 2023-03-02 18:54:08 +00:00
Fabian Joswig
2ac38515b6
refactor: logic in least square fits simplified.
Co-authored-by: Simon Kuberski <simon.kuberski@uni-muenster.de>
2023-03-02 18:42:55 +00:00
Fabian Joswig
a140b2ab39
refactor: removed redundant formulations of the chisquare function in
least_squares.
2023-03-01 16:29:59 +00:00
Fabian Joswig
ee2944d5b0
refactor: chisqfunc rewritten as sum over residuals. 2023-03-01 16:12:31 +00:00
Fabian Joswig
dc7033e51f
refactor: _standard_fit method made redundant. (#154)
* refactor: _standard_fit method made redundant.

* fix: xs and yz in Corr.fit promoted to arrays.

* fix: x promoted to array in _combined_fit if input is just a list.

* feat: residual_plot and qqplot now work with combined fits with
dictionary inputs.

* tests: test for combined fit resplot and qqplot added.

* docs: docstring of fits.residual_plot extended.
2023-03-01 10:00:35 +00:00
Fabian Joswig
de35332a80
Merge pull request #157 from fjosw/fix/calc_rho_large_t
_calculate_drho for large time separations
2023-02-28 15:46:54 +00:00
Fabian Joswig
d81d6ea0b8
fix: loop range in standard windowing procedure adjusted by gapsize
- Test added

Co-authored-by: Simon Kuberski <simon.kuberski@uni-muenster.de>
2023-02-27 21:43:29 +00:00
Fabian Joswig
a33c0a205a
feat: added __slots__ to Corr class. (#155) 2023-02-27 10:23:02 +00:00
Fabian Joswig
e85d7dfde6
ci: flake8 workflow made more strict again (and CONTRIBUTING.md updated.) 2023-02-26 19:08:47 +00:00
Fabian Joswig
854b46c5b4
chore: reformat in _compute_drho. 2023-02-26 18:58:54 +00:00
Fabian Joswig
8bc204fc31
tests: nan obs test added. 2023-02-26 18:56:46 +00:00
Fabian Joswig
3b773b7b52
ci: default ignore options added to flake8 workflow and CONTRIBUTING.md
updated.
2023-02-26 18:55:16 +00:00
Fabian Joswig
82adb215be
fix: _compute_drho now also works for i > w_max / 2. 2023-02-26 18:49:54 +00:00
Fabian Joswig
a2ed2653c6
ci: examples workflow now avoids matplotlib v3.7.0 which breaks import
of local style files.
2023-02-19 18:42:38 +00:00
Fabian Joswig
a538be82d7
ci: example workflow fail fast false. 2023-02-19 18:30:33 +00:00
Justus Kuhlmann
0bc08be634
Impr/refactor find files (#153)
* wrote small test for ms5_xsf read method

* small bug in ms5_xsf found

* first version of refactoring with test

* built _find_files into openQCD module

* postfix can now be used as before

* altered test data to be smaller

* read_rwms throws better Exception now

* typo corrected

* better tests for postfixes, also added similar solution for ext variable

* added method to sort names of files and replica better
2023-02-17 11:51:00 +00:00
Fabian Joswig
ee74ec4ed7
feat: removed computation of drho from standard windowing procedure. (#152) 2023-02-13 16:54:28 +00:00
Justus Kuhlmann
cef3c3e793
Impr/refactor find files (#151)
* wrote small test for ms5_xsf read method

* small bug in ms5_xsf found

* first version of refactoring with test

* built _find_files into openQCD module

* postfix can now be used as before

* altered test data to be smaller

* read_rwms throws better Exception now

* typo corrected

* better tests for postfixes, also added similar solution for ext variable
2023-02-08 14:52:29 +00:00
Fabian Joswig
bd66075f91
build: version number bumped to 2.7.0+dev. 2023-02-07 13:14:29 +00:00
Fabian Joswig
b6ebb64469
build: version number bumped to 2.6.0 2023-02-07 13:08:29 +00:00
Fabian Joswig
df46e7e5c8
docs: CHANGELOG updated. 2023-02-07 13:07:48 +00:00
Fabian Joswig
2027f0003a
Merge pull request #149 from jkuhl-uni/feat/read_ms5_xsf
fix for the case that there are multiple dots in file names
2023-02-07 13:00:40 +00:00
jkuhl-uni
ea1c89cad1 fix for the case that there are multiple dotsin file names 2023-02-07 13:52:33 +01:00