Commit graph

78 commits

Author SHA1 Message Date
Justus Kuhlmann
96cdec46e2 annotate read_ms5_xsf 2025-03-29 14:04:52 +00:00
Fabian Joswig
1c6053ef61 [Fix] Simplify type hints 2025-01-03 22:43:19 +01:00
Fabian Joswig
9fe375a747 [Feat] Added type hints to input modules 2024-12-25 11:14:34 +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
Justus Kuhlmann
df1873b5ac
Throw error when trying to only find idls that are not present (#224) 2024-01-11 17:48:51 +01:00
Justus Kuhlmann
1a811b04f3
Feat/files idl xsf (#185)
* added kwrg idl to ms5_xsf_read

* change output, warn user if expected idl not found
2023-05-26 13:01:52 +01:00
s-kuberski
3198088f9c
Feat/flow (#176)
* fix: String conversion of Obs can now handle a dvalue that is NaN or inf

* Feat: Added extraction of w0/a from openQCD files

* Removed unnecessary round in w0 routine

* Improved error handling in fit_t0

* Allowed to change the reference flow time in t0 and w0 determinations.

* Added doc string to fit_t0
2023-05-16 18:29:13 +01:00
Fabian Joswig
1184a0fe76
t0 extractions for new Hadrons module (#171)
* feat: first version of read flow observables for new hadrons module.

* feat: refactored t0 fit in seperate function and added extract_t0_hd5 to
hadrons submodule.
2023-04-25 08:25:33 +01:00
Justus Kuhlmann
9d67738b32
extended extract_t0 by postfix argument, default stays .ms (#168)
* extended extract_t0 by postfix argument, default stays .ms

* linting
2023-03-24 11:10:26 +01:00
Justus Kuhlmann
41fec09816
Impr/fix refactor sfcf read (#164)
* refactor read_sfcf

* adding tests for find_corr and read_compact_file

* add necessary broken data for tests

* fixed appended mode reading

* factored out sort_names and find_files

* now also using sort_files in sfcf.py

* edited tests to fit with new structure

* added find_files function

* shifted helpfunctions to bottom of file

* removed some debug lines

* linting

* Fixed requested changes, added silent mode

* added Exception if correlator is not found by read_append_rep

* use tmp_path fixture

* linting silent keyword

* try to fix testing for a_bb

* tests: Exception testing in test_find_corr made more explicit.

---------

Co-authored-by: Fabian Joswig <fabian.joswig@ed.ac.uk>
2023-03-15 17:46:12 +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
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
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
Justus Kuhlmann
26447d658c
better docstrings (#144)
* first example of returns statement in docstring

* added a some return statements for pandas API

* last return statements in pandas input

* added returns to bdio docstrings

* few returns statements added to docstring

* finished docstrings for hadrons submodule

* also finished docstrings for json submodule

* finished misc submodule

* added returns in docstrings in openqQCD

* made some cosmetic chanes to dostrings

* added return nad return statement in docstring

* linting

* Improved docstrings of mpm, fits, roots, misc to have return statements

returns added for misc.py

returns added for mpm.py

reutrns added for fits.py

* linting...

* Some polishing of docstrings
2023-01-16 14:57:22 +00:00
Fabian Joswig
a53fb18821
feat: removed attribute is_merged. 2023-01-06 13:34:26 +01:00
Simon Kuberski
02fb18f62f fix: corrected small bug in qtop_projection with several replica 2023-01-02 19:06:32 +01:00
jkuhl-uni
aa8fa2c0c5 last changes, last linting 2022-12-21 18:20:13 +01:00
jkuhl-uni
3fdbc371b2 linting... 2022-12-21 17:47:01 +01:00
jkuhl-uni
f9fe5c7ec9 small changes to rep names 2022-12-21 15:34:14 +01:00
jkuhl-uni
f91c4adff4 added a wonderful ChatGPT docstring 2022-12-21 15:12:45 +01:00
jkuhl-uni
6d7fd3bcfb xsf-method can now handle multiple replika 2022-12-21 14:57:08 +01:00
jkuhl-uni
785c590397 small bug fix 2022-12-20 18:08:22 +01:00
jkuhl-uni
11ffd4571d a bit of housekeeping 2022-12-20 18:01:46 +01:00
jkuhl-uni
4fb27462bd almsot done, still need to fix Corr(CObs) for some reason 2022-12-20 16:04:15 +01:00
jkuhl-uni
3b797a0559 better indexing 2022-12-20 15:47:36 +01:00
jkuhl-uni
ef2323e9bd missed some brakets 2022-12-20 15:43:17 +01:00
jkuhl-uni
134fe7d3f7 first steps to output in the right format 2022-12-20 15:08:34 +01:00
jkuhl-uni
ae62548661 Add a better docstring to read_ms5_xsf method 2022-12-20 13:44:07 +01:00
jkuhl-uni
f74793b765 Add docstring to read_ms5_xsf method 2022-12-20 13:36:08 +01:00
jkuhl-uni
ed0b7cad3f now able to read not just one config 2022-12-20 09:56:10 +01:00
jkuhl-uni
3399b72bfb new idea for reading ms5_xsf data 2022-12-19 18:29:51 +01:00
jkuhl-uni
6ef081acef first version of skript to read xsf data 2022-12-16 13:02:59 +01:00
Fabian Joswig
7b740c03d4
fix: bug in reading of flow observables fixed which appeared when
specifying names.

The files detected files were *not* alphabetically ordered so a wrong
naming could happen in case one specifies names explicitly.
2022-11-18 16:30:28 +00:00
Fabian Joswig
6f4dd6c46c
feat: postfix kwarg added to functions which read flow observables in
openQCD submodule.
2022-11-18 16:10:15 +00:00
Fabian Joswig
64e564c5fc
fix: error handling in read_rwms improved. 2022-11-18 15:59:43 +00:00
Fabian Joswig
f1636310a1 style: New flake8 E275 errors fixed. 2022-08-01 16:53:12 +01:00
Fabian Joswig
d0180d7967 feat: explicit check for Zeuthen_flow in read_gf_coupling added. 2022-07-12 11:11:36 +01:00
Fabian Joswig
3336ac739e feat: Explicit check for T=L in read_gf_coupling added. 2022-07-12 10:45:00 +01:00
Fabian Joswig
638ec92ab7 feat: Exception for gf coupling c!=0.3 added and documenation and tests
extended.
2022-07-11 17:14:32 +01:00
Fabian Joswig
5cd20f5818 feat: function for the extraction of the gradient flow coupling as
detailed in 1607.06423 added.
2022-07-11 11:55:25 +01:00
Fabian Joswig
1f113a3b29 refactor: comparison of constants removed. 2022-06-15 13:48:34 +01:00
Fabian Joswig
ab8e3ce549 fix: splitting at '.' removed from auto detection of replica names in
openQCD.read_rwms
2022-02-23 10:26:32 +00:00
Fabian Joswig
5ee975dc44 fix: auto detection of replica names in opeqnQCD.rwms now also works
with dots in the file names.
2022-02-23 10:25:13 +00:00
Simon Kuberski
19d7e7639e qtop_projection can now handle non-int charges 2022-02-22 10:29:51 +01:00
Fabian Joswig
8788891d5f refactor: import order corrected 2022-02-10 11:23:25 +00:00
Fabian Joswig
31a98f81c4 tests: openQCD tests split up in two functions, coverage improved 2022-02-10 11:03:59 +00:00
Simon Kuberski
cf137e2843 Added tests for t0 and qtop 2022-02-09 18:41:54 +01:00
Simon Kuberski
570c6abf2a Yet another small change to openQCD. Added explicit tests for reweighting. 2022-02-09 14:08:05 +01:00
Simon Kuberski
6d9ce5bb52 Catching the special case, where r_stop is equal to the last item of the configlist in openQCD routines 2022-02-09 12:03:53 +01:00