You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -421,14 +421,16 @@ By default references are placed in separate parquet file when the total number
421
421
We can also write these references out as an [IcechunkStore](https://icechunk.io/). `Icechunk` is a Open-source, cloud-native transactional tensor storage engine that is compatible with zarr version 3. To export our virtual dataset to an `Icechunk` Store, we simply use the {py:meth}`vds.virtualize.to_icechunk <virtualizarr.VirtualiZarrDatasetAccessor.to_icechunk>` accessor method.
422
422
423
423
```python
424
-
# create an icechunk store
425
-
from icechunk import IcechunkStore, StorageConfig, StoreConfig, VirtualRefConfig
If `append_dim` is provided, the virtual dataset will be appended to the existing IcechunkStore along the `append_dim` dimension.
50
54
55
+
If `last_updated_at` is provided, it will be used as a checksum for any virtual chunks written to the store with this operation.
56
+
At read time, if any of the virtual chunks have been updated since this provided datetime, an error will be raised.
57
+
This protects against reading outdated virtual chunks that have been updated since the last read. When not provided, no check is performed.
58
+
This value is stored in Icechunk with seconds precision, so be sure to take that into account when providing this value.
59
+
51
60
Parameters
52
61
----------
53
62
store: IcechunkStore
54
63
append_dim: str, optional
64
+
When provided, specifies the dimension along which to append the virtual dataset.
65
+
last_updated_at: datetime, optional
66
+
When provided, uses provided datetime as a checksum for any virtual chunks written to the store with this operation.
67
+
When not provided (default), no check is performed.
68
+
69
+
Examples
70
+
--------
71
+
To ensure an error is raised if the files containing referenced virtual chunks are modified at any time from now on, pass the current time to ``last_updated_at``.
72
+
73
+
>>> from datetime import datetime
74
+
>>>
75
+
>>> vds.virtualize.to_icechunk(
76
+
... icechunkstore,
77
+
... last_updated_at=datetime.now(),
78
+
... )
55
79
"""
56
80
from virtualizarr.writers.icechunk import dataset_to_icechunk
Copy file name to clipboardExpand all lines: virtualizarr/readers/fits.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ def open_virtual_dataset(
42
42
43
43
# TODO This wouldn't work until either you had an xarray backend for FITS installed, or issue #124 is implemented to load data from ManifestArrays directly
44
44
# TODO Once we have one of those we can use ``maybe_open_loadable_vars_and_indexes`` here
45
-
if loadable_variables != [] or indexes != {} or decode_times:
45
+
if loadable_variables or indexes:
46
46
raise NotImplementedError(
47
47
"Cannot load variables or indexes from FITS files as there is no xarray backend engine for FITS"
0 commit comments