Buckets:

download
raw
784 Bytes
import numpy
import pytest
from tiled.utils import safe_json_dump
@pytest.mark.parametrize(
"test_params",
argvalues=[
{"array": numpy.array([0], dtype="i8")},
{"array": numpy.array([b"test"], dtype="|S4")},
],
)
def test_ndarray(test_params):
safe_json_dump(test_params["array"])
@pytest.mark.parametrize(
"test_params",
argvalues=[
{"array": numpy.array([0], dtype="i8")},
{"array": numpy.array([b"test"], dtype="|S4")},
],
)
def test_nested_ndarray(test_params):
example_nested_data = {
"data": [
{
"id": "test",
"attributes": {"metadata": {"test": test_params["array"]}},
},
{},
]
}
safe_json_dump(example_nested_data)

Xet Storage Details

Size:
784 Bytes
·
Xet hash:
3af906b6a7b40d90efd11cc725aa63eef76ab4c3e31461985d62f43d4034f9e3

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.