80 Commits

Author SHA1 Message Date
Magnus Ulimoen
9dc3894aa2 fix unlimited dimension not recognized 2020-02-21 14:55:09 +01:00
Magnus Ulimoen
514012a23f unwraps in file 2020-01-13 23:41:37 +01:00
Magnus Ulimoen
f4a1372dc7 unwraps in group 2020-01-13 23:41:37 +01:00
Magnus Ulimoen
fbe39692d9 unwraps in variable 2020-01-13 23:41:37 +01:00
Magnus Ulimoen
b461886fbc fix lifetime bounds and simplify Variable 2020-01-06 19:02:25 +01:00
Magnus Ulimoen
d0ea914d67 check if unlimited dimensions are included 2020-01-06 18:19:32 +01:00
Magnus Ulimoen
e4526a3bc0 add missing documentation 2020-01-05 22:06:40 +01:00
Magnus Ulimoen
1ef42fb30e detect def var from two different file dims 2020-01-05 20:55:04 +01:00
Magnus Ulimoen
0dde73fc62 remove unwraps 2020-01-05 19:32:16 +01:00
Magnus Ulimoen
905c4cda92 cleanup file.rs 2020-01-05 19:15:46 +01:00
Magnus Ulimoen
7b59509bd0 mem tests 2020-01-03 19:36:25 +01:00
Magnus Ulimoen
3df6f624c2 all tests working 2020-01-03 19:18:32 +01:00
Magnus Ulimoen
9a3b490681 checkpoint 2020-01-03 16:15:45 +01:00
Magnus Ulimoen
f74791fbc5 group name from netcdf 2020-01-02 17:22:51 +01:00
Magnus Ulimoen
aa65bdfb16 variable name from netcdf 2020-01-02 16:30:06 +01:00
Magnus Ulimoen
309a135caf get name from File through netcdf 2020-01-02 16:12:04 +01:00
Magnus Ulimoen
6d8e9a0a04 split tests 2020-01-01 20:47:04 +01:00
Magnus Ulimoen
4cdb0578f7 lazy read attributes 2020-01-01 20:31:01 +01:00
Magnus Ulimoen
1015079840 put_values_strided 2019-12-31 16:38:37 +01:00
Magnus Ulimoen
e038054e65 add values_strided_to 2019-12-30 15:47:41 +01:00
Magnus Ulimoen
14741ddce5 enforce read only access to read only file 2019-11-13 18:32:50 +01:00
Magnus Ulimoen
1dc7536ee7 can now iterate over parents while parsing 2019-11-06 18:17:16 +01:00
Magnus Ulimoen
b22ef8b9f1 dimension::new takes String 2019-11-06 18:17:16 +01:00
Magnus Ulimoen
8d7bedb029 check if already exists 2019-11-06 18:17:16 +01:00
Magnus Ulimoen
9733d9be85 replace attributes when overwritten 2019-11-06 18:17:16 +01:00
Magnus Ulimoen
449a4c9a96 set_nofill 2019-10-29 20:22:02 +01:00
Magnus Ulimoen
162c71ab8b clippy and cargo fmt 2019-10-29 18:31:31 +01:00
Laurent Wandrebeck
10be6d725e Fixup comment and add endian test. 2019-10-26 15:39:05 +02:00
Magnus Ulimoen
b604cb0d71 add alternate way to specify dimensions
Variables can use dimensions from all parents, which might be a
problem if two dimensions share the same name. This commit
introduces a way around this problem by obtaining an identifier
which can be used when adding a new variable.
2019-10-18 22:32:51 +02:00
Magnus Ulimoen
640d624483 fix root dimensions not being visible in children
The root dimensions were not visible in the children due to a
forgotten parameter when parsing the file.

Added test to avoid this problem in the future
2019-10-18 22:16:17 +02:00
Magnus Ulimoen
38dcad55da document and apply compression in test
Adds a missing constant in the netcdf-sys crate which requires a version
bump
2019-10-18 20:09:57 +02:00
Magnus Ulimoen
85bcab1212 increase test coverage
running `tarpaulin` on the codebase reveals a couple of items
that should be tested, and which now has a test.
2019-10-18 19:57:59 +02:00
Magnus Ulimoen
8f44ba8912 change accessor functions
Makes iterating mutably over variables a bit easier, and
hides internal library details. By hiding the internal details,
one could in the future implement lazy-loading of the variables,
or use some other datastructures instead, for example SmallVec.
2019-10-18 19:27:39 +02:00
Magnus Ulimoen
726ddd890b fix interaction ndarray and slice_len
The length of a buffer to initialise was taken from the total
length of the variables. This is now instead taken to be the size
of slice_len when this is given
2019-10-18 19:16:36 +02:00
Magnus Ulimoen
6a8810a8cd string variable 2019-10-18 18:54:48 +02:00
Magnus Ulimoen
81d16afd08 chunking of variables
compression and chunking was previously in the same function. As they
serve different purposes, they are now moved to independent functions
2019-10-18 18:20:22 +02:00
Magnus Ulimoen
1c86ef2e7b test for no-dim variable 2019-10-04 22:59:57 +02:00
Magnus Ulimoen
157448816e get size of variable 2019-10-04 21:35:05 +02:00
Magnus Ulimoen
d9048ec25b run clippy 2019-10-04 20:32:56 +02:00
Magnus Ulimoen
3fba192ea9 check indices and sizes in more places 2019-10-04 19:42:34 +02:00
Magnus Ulimoen
568b2ce4f8 restrict generics to entrypoint 2019-10-04 09:35:25 +02:00
Magnus Ulimoen
4334570ce1 add documentation 2019-10-03 15:57:43 +02:00
Magnus Ulimoen
09abb910e2 unlimited dimensions 2019-10-03 15:57:15 +02:00
Magnus Ulimoen
d35fe217c9 add more error types 2019-10-02 13:20:23 +02:00
Magnus Ulimoen
d52d164009 always read attribute value 2019-09-26 15:47:49 +02:00
Magnus Ulimoen
5e294b7b66 support groups 2019-09-26 11:57:28 +02:00
Magnus Ulimoen
9a0f2a231e test for consistency after fail 2019-09-25 10:28:53 +02:00
Magnus Ulimoen
5366514a13 change from {get_,}values 2019-09-25 10:10:19 +02:00
Magnus Ulimoen
4260e30a79 implement deref for file 2019-09-25 10:05:48 +02:00
Magnus Ulimoen
831eaf66f6 memory mapped reading 2019-09-24 14:56:10 +02:00