From 3e986dc648b4eda7a2a1f760bd8bbe3eb2ec955d Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 25 Aug 2023 17:40:06 +0000 Subject: [PATCH] Update documentation --- _modules/kerchunk/utils.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_modules/kerchunk/utils.html b/_modules/kerchunk/utils.html index 3a482c1a..3a8b86b1 100644 --- a/_modules/kerchunk/utils.html +++ b/_modules/kerchunk/utils.html @@ -257,7 +257,8 @@

Source code for kerchunk.utils

             cond1 = threshold and thing.nbytes < threshold and thing.nchunks > 1
             cond2 = prefix1 in names
             if cond1 or cond2:
-                group.create_dataset(
+                original_attrs = dict(thing.attrs)
+                arr = group.create_dataset(
                     name=name,
                     dtype=thing.dtype,
                     shape=thing.shape,
@@ -266,6 +267,7 @@ 

Source code for kerchunk.utils

                     compression=None,
                     overwrite=True,
                 )
+                arr.attrs.update(original_attrs)
 
 
 
[docs]def inline_array(store, threshold=1000, names=None, remote_options=None):