Commit graph

27 commits

Author SHA1 Message Date
Fabian Joswig
d772e09d50 fix: Special case were no replica separator is specified accounted for 2022-02-10 15:29:00 +00:00
Fabian Joswig
c5c82dae21 fix: erroneous replica separator in json format caught and corrected 2022-02-10 14:57:37 +00:00
Fabian Joswig
8788891d5f refactor: import order corrected 2022-02-10 11:23:25 +00:00
Fabian Joswig
471eabeb8c fix: Bug in export of derivative of correlator containing covobs fixed,
test added.
2022-02-09 14:18:36 +00:00
Simon Kuberski
0dc4d4008a Introduced JSON I/O for dictionaries 2022-02-03 10:33:24 +01:00
JanNeuendorf
696ab4503c linting fixed in exception 2022-01-28 13:24:04 +01:00
JanNeuendorf
55804c8c1d check if the tag is a dict 2022-01-28 13:19:24 +01:00
JanNeuendorf
0098c973af The json routines for corr now have a dictionary as a tag and the entry tag of this dictionary contains the old tag.
This should be compatible with the old way of saving.
2022-01-28 12:21:28 +01:00
Fabian Joswig
dc35690c3e feat!: correlator json output can now handle gaps in the data. Tags of
correlators written with the previous version will have the prefix X|Y|
which contain the padding. Paddings written with previous versions will
be lost and have to be restored by the user.
2022-01-27 14:01:22 +00:00
Fabian Joswig
78ff4bb117 refactor: moved _assert_equal_properties from input.json to misc 2022-01-19 10:55:51 +00:00
Fabian Joswig
d778a3b238 feat!: merged the parameters padding_front and padding_back of Corr into
one parameter padding
2022-01-18 14:50:18 +00:00
Fabian Joswig
56fe126593 docs: docstrings of input/json module updated 2022-01-18 14:31:09 +00:00
Fabian Joswig
f282ecdaf6 feat: json import export for correlator class implemented, tests added 2022-01-18 12:13:20 +00:00
Simon Kuberski
5338982060 Allow Obs in json format to be pure Covobs, i.e., to have empty deltas 2021-12-14 16:27:05 +01:00
Simon Kuberski
76b483d730 Pretty output for cov and grad in json 2021-12-14 15:54:52 +01:00
Simon Kuberski
b7bc508dcf Added covobs to json file format 2021-12-14 15:47:14 +01:00
Fabian Joswig
f6dc78f587 feat!: json format timezone is now outputted in +0000 format. 2021-12-10 10:40:49 +00:00
Fabian Joswig
2ce73fb3f2 fix: import_json_string now correctly reconstructs obs from string, test
added
2021-12-10 10:37:50 +00:00
Fabian Joswig
b49c707127 refactor: created function import_json_string 2021-12-09 15:49:01 +00:00
Fabian Joswig
d837e47777 refactor: formatting improvements 2021-12-02 11:32:28 +00:00
Fabian Joswig
a67e83f77b feat: Minor improvemens to json file format 2021-12-02 11:14:05 +00:00
Simon Kuberski
e5cd5c4a99 Adjusted handling of tags: All are written, if any is None; Removed unused parameter fname from create_json_string; Created a fail-save version for the replacement of quotation marks in workaround for delta lists 2021-12-01 11:53:11 +01:00
Simon Kuberski
71e9d6c29c Removed unnecessary cast 2021-11-30 17:46:33 +01:00
Simon Kuberski
d740f8d3c4 utf-8 for plain json files and a bugfix for reading arrays 2021-11-30 16:26:46 +01:00
Simon Kuberski
5937a519d7 Added dictionary output of json input routine: It is possible to import and export any structure that is JSON serializable as description (or Obs.tag) 2021-11-30 14:50:16 +01:00
Simon Kuberski
d7c2f125fe Created routine to get jsonstring itself, allowed for the I/O of uncompressed files, fixed bug for 1d-Arrays 2021-11-30 14:28:07 +01:00
Simon Kuberski
63dd627e20 First implemenation of a json I/O 2021-11-29 15:27:28 +01:00