File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
Release notes
2
2
=============
3
3
4
+
5
+ Next release
6
+ ------------
7
+
8
+ * Fix minor bug in `N5Store `.
9
+ By :user: `gsakkis `, :issue: `550 `.
10
+
11
+
4
12
.. _release_2.4.0 :
5
13
6
14
2.4.0
Original file line number Diff line number Diff line change @@ -175,9 +175,9 @@ def __contains__(self, key):
175
175
# array if attributes contain 'dimensions'
176
176
return 'dimensions' in self ._load_n5_attrs (key )
177
177
178
- elif key .endswith (zarr_attrs_key ): # pragma: no cover
178
+ elif key .endswith (zarr_attrs_key ):
179
179
180
- key = key .replace (zarr_array_meta_key , n5_attrs_key )
180
+ key = key .replace (zarr_attrs_key , n5_attrs_key )
181
181
return self ._contains_attrs (key )
182
182
183
183
elif is_chunk_key (key ):
Original file line number Diff line number Diff line change @@ -1255,9 +1255,12 @@ def test_endian(self):
1255
1255
def test_attributes (self ):
1256
1256
a = self .create_array (shape = 10 , chunks = 10 , dtype = 'i8' )
1257
1257
a .attrs ['foo' ] = 'bar'
1258
+ assert a .attrs .key in a .store
1258
1259
attrs = json_loads (a .store [a .attrs .key ])
1259
1260
assert 'foo' in attrs and attrs ['foo' ] == 'bar'
1261
+
1260
1262
a .attrs ['bar' ] = 'foo'
1263
+ assert a .attrs .key in a .store
1261
1264
attrs = json_loads (a .store [a .attrs .key ])
1262
1265
assert 'foo' in attrs and attrs ['foo' ] == 'bar'
1263
1266
assert 'bar' in attrs and attrs ['bar' ] == 'foo'
You can’t perform that action at this time.
0 commit comments