Commit graph

12 commits

Author SHA1 Message Date
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
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
Justus Kuhlmann
0ef8649031
Feat/read sfcf multi (#210)
* make template

* read_sfcf_multi running with compact format

* fix append mode, norrmal tests work

* improve readability

* add simple test for multi_read

* simple multi_test works

* add first method to check sfcf param hashes

* add docstring

* simple test for o format working

* use benedict to make loops easier

* introduce python-benedict as dep

* no nice_out, less error prone, found bug in tests

* Revert "introduce python-benedict as dep"

This reverts commit 9696d68b7a.

* Revert "use benedict to make loops easier"

This reverts commit fa3987479b.

* no nice output after reverts

* [build] Added jkuhl-uni as CODEOWNER for sfcf.

* refactor: flatten internal dicts

* very small test extension

* ...flake8

* docu

* Delete second sep init

---------

Co-authored-by: Fabian Joswig <fabian.joswig@uni-muenster.de>
2023-10-20 19:22:55 +02:00
Justus Kuhlmann
83204ce794
fixed appended mode reading (#165) 2023-03-16 13:12:03 +00: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
Fabian Joswig
080e09a07f tests: tests cleaned up, name duplicate in obs_test corrected 2022-02-09 11:23:58 +00:00
jkuhl-uni
10e7171d5b changed parameters for input tests 2022-02-08 11:51:51 +01:00
jkuhl-uni
a33d6897f0 small change in read parameters, made tests available for auto-testing 2022-02-07 18:29:49 +01:00
jkuhl-uni
5062f030c4 made read in tests functioning 2022-02-07 15:54:57 +01:00
jkuhl-uni
b36d559ac3 input append mode tests done 2022-02-07 15:10:19 +01:00
jkuhl-uni
0d1921c16b positive tests for o and c finished 2022-02-07 12:28:14 +01:00
jkuhl-uni
a839592ea8 first steps to testing input methods 2022-02-06 18:05:37 +01:00