Skip to content

Commit

Permalink
remove zarr tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stephprince committed May 1, 2024
1 parent 28449a3 commit 6e6a84c
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions tests/unit/test_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
from hdmf.common import DynamicTable, VectorData, DynamicTableRegion
from hdmf.backends.hdf5.h5tools import HDF5IO

try:
import zarr
SKIP_ZARR_TESTS = False
except ImportError:
SKIP_ZARR_TESTS = True

class Subcontainer(Container):
pass
Expand Down Expand Up @@ -490,28 +485,6 @@ def test_repr_html_array(self):
)
self.assertIn(expected_html_table, obj._repr_html_())

def test_repr_html_zarr(self):
z_arr = zarr.array(np.array([1, 2, 3, 4]))
obj = self.ContainerWithData(data=z_arr, str="hello")
expected_html_table = (
'class="container-fields">Zarr '
'Array<br><table class="data-info"><tbody><tr><th style="text-align: left">Type</th><td style="text-align: '
'left">zarr.core.Array</td></tr><tr><th style="text-align: left">Data type</th><td style="text-align: '
'left">int64</td></tr><tr><th style="text-align: left">Shape</th><td style="text-align: left">(4,)</td></'
'tr><tr><th style="text-align: left">Chunk shape</th><td style="text-align: left">(4,)</td></tr><tr><th '
'style="text-align: left">Order</th><td style="text-align: left">C</td></tr><tr><th style="text-align: '
'left">Read-only</th><td style="text-align: left">False</td></tr><tr><th style="text-align: '
'left">Compressor</th><td style="text-align: left">Blosc(cname=\'lz4\', clevel=5, shuffle=SHUFFLE, '
'blocksize=0)</td></tr><tr><th style="text-align: left">Store type</th><td style="text-align: left">zarr.'
'storage.KVStore</td></tr><tr><th style="text-align: left">No. bytes</th><td style="text-align: left">32</'
'td></tr><tr><th style="text-align: left">No. bytes stored</th><td style="text-align: left">357</td></'
'tr><tr><th style="text-align: left">Storage ratio</th><td style="text-align: left">0.1</td></tr><tr><th '
'style="text-align: left">Chunks initialized</th><td style="text-align: left">1/1</td></tr></tbody></'
'table><br>[1 2 3 4]</div></details><div style="margin-left: 0px;" class="container-fields"><span '
'class="field-key" title=".str">str: </span><span class="field-value">hello</span></div></div>'
)
self.assertIn(expected_html_table, obj._repr_html_())

def test_repr_html_hdf5_dataset(self):

# Open an HDF5 file in write mode
Expand Down

0 comments on commit 6e6a84c

Please sign in to comment.