Commit graph

2498 commits

Author SHA1 Message Date
fjosw
b27c2a1f94 Merge branch 'develop' into documentation 2023-03-10 14:17:41 +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
fjosw
a2dc5f38d0 Documentation updated 2023-03-09 15:33:57 +00:00
fjosw
6fbf4d30c4 Merge branch 'develop' into documentation 2023-03-09 15:33:17 +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
fjosw
81d234930f Documentation updated 2023-03-09 14:26:56 +00:00
fjosw
dd14b35905 Merge branch 'develop' into documentation 2023-03-09 14:26:18 +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
fjosw
667d75c21e Documentation updated 2023-03-08 16:54:09 +00:00
fjosw
f6b14f006e Merge branch 'develop' into documentation 2023-03-08 16:53:18 +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
fjosw
8edaf390e6 Documentation updated 2023-03-08 16:46:46 +00:00
fjosw
8f36de348d Merge branch 'develop' into documentation 2023-03-08 16:46:09 +00:00
Fabian Joswig
80f4eef912
chore: Exception in least_squares specified. 2023-03-08 16:45:29 +00:00
fjosw
ee985aca3c Documentation updated 2023-03-07 16:40:53 +00:00
fjosw
d6ca8422f0 Merge branch 'develop' into documentation 2023-03-07 16:40:19 +00:00
Fabian Joswig
e6051d7ba0
docs: docstring of least_squares updated. 2023-03-07 16:39:37 +00:00
fjosw
e41f457ffd Documentation updated 2023-03-07 16:16:16 +00:00
fjosw
c3eee00df7 Merge branch 'develop' into documentation 2023-03-07 16:15: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
fjosw
7442a792ff Documentation updated 2023-03-03 16:36:18 +00:00
fjosw
bcb4f44a50 Merge branch 'develop' into documentation 2023-03-03 16:35:43 +00:00
fjosw
09e20b4183 Documentation updated 2023-03-03 16:35:37 +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
fjosw
15c26d729e Merge branch 'develop' into documentation 2023-03-03 16:34:50 +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
fjosw
c1de17e939 Documentation updated 2023-03-02 18:55:32 +00:00
fjosw
00b05b4a7d Merge branch 'develop' into documentation 2023-03-02 18:54:58 +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
fjosw
b5dd5c9f19 Documentation updated 2023-03-01 10:01:44 +00:00
fjosw
41cec9982b Merge branch 'develop' into documentation 2023-03-01 10:01:00 +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
fjosw
750fc6febe Documentation updated 2023-02-28 15:47:47 +00:00
fjosw
d0485baca7 Merge branch 'develop' into documentation 2023-02-28 15:47:14 +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
fjosw
d9f7615c8d Documentation updated 2023-02-27 10:23:57 +00:00
fjosw
e3cf631113 Merge branch 'develop' into documentation 2023-02-27 10:23:22 +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