xarray-binfile 0.1.0b1__tar.gz → 0.1.0b2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/.vscode/settings.json +1 -7
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/PKG-INFO +1 -1
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/_config.yml +4 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/_version.py +2 -2
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/write/accessor.py +1 -1
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/tests/unit/write/test_accessor.py +6 -3
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/.github/dependabot.yml +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/.github/release.yml +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/.github/workflows/check-links.yaml +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/.github/workflows/ci.yaml +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/.github/workflows/docs.yaml +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/.gitignore +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/.pre-commit-config.yaml +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/.vscode/extensions.json +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/LICENSE +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/README.md +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/_toc.yml +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/getting-started/about.md +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/getting-started/installation.md +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/intro.md +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/logo.png +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/references/api-reference.rst +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/references/further-reading.md +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/references/how-to-contribute.md +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/references/what-is-new.md +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/references.bib +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/tutorials/benchmarking.ipynb +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/tutorials/examples.ipynb +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/tutorials/parallel-and-larger-than-memory.ipynb +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/tutorials/read.ipynb +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/tutorials/write.ipynb +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/docs/usage/spec-getter-protocols.md +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/pyproject.toml +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/__init__.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/py.typed +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/read/__init__.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/read/array.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/read/entrypoint.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/read/file_metadata.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/tutorial/__init__.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/tutorial/dataset_generator.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/tutorial/file_metadata.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/typing.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/write/__init__.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/write/file_metadata.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/tests/__init__.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/tests/integration/__init__.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/tests/integration/test_indexing.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/tests/integration/test_load_dataset.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/tests/integration/test_roundtrip.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/tests/unit/__init__.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/tests/unit/read/__init__.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/tests/unit/read/test_array.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/tests/unit/read/test_entrypoint.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/tests/unit/tutorial/__init__.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/tests/unit/tutorial/test_file_metadata.py +0 -0
- {xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/tests/unit/write/__init__.py +0 -0
|
@@ -24,11 +24,5 @@
|
|
|
24
24
|
"cSpell.enabled": true,
|
|
25
25
|
"cSpell.language": "en",
|
|
26
26
|
"python.envFile": "${workspaceFolder}/.venv/xarray-binfile",
|
|
27
|
-
"python
|
|
28
|
-
{
|
|
29
|
-
"path": ".",
|
|
30
|
-
"envManager": "ms-python.python:venv",
|
|
31
|
-
"packageManager": "ms-python.python:pip"
|
|
32
|
-
}
|
|
33
|
-
]
|
|
27
|
+
"python.testing.pytestPath": "${workspaceFolder}/.venv/xarray-binfile/bin/pytest"
|
|
34
28
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: xarray-binfile
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0b2
|
|
4
4
|
Summary: Read and write raw binary files using the familiar interface from the Xarray library
|
|
5
5
|
Project-URL: Source, https://github.com/fschuch/xarray-binfile
|
|
6
6
|
Project-URL: Tracker, https://github.com/fschuch/xarray-binfile/issues
|
|
@@ -49,6 +49,10 @@ sphinx:
|
|
|
49
49
|
#https://github.com/executablebooks/jupyter-book/issues/1950#issuecomment-1454801479
|
|
50
50
|
suppress_warnings: ["mystnb.unknown_mime_type"]
|
|
51
51
|
|
|
52
|
+
# allow_errors: false only reports failed cells as warnings; this makes
|
|
53
|
+
# a notebook execution error abort the build with a non-zero exit code
|
|
54
|
+
nb_execution_raise_on_error: true
|
|
55
|
+
|
|
52
56
|
intersphinx_mapping:
|
|
53
57
|
python:
|
|
54
58
|
- "https://docs.python.org/3"
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.1.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 1, 0, '
|
|
21
|
+
__version__ = version = '0.1.0b2'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 1, 0, 'b2')
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -113,5 +113,5 @@ class BinaryEngineDataArray:
|
|
|
113
113
|
else details.sub_array.dtype
|
|
114
114
|
)
|
|
115
115
|
temporary_file = Path(temporary_directory) / details.filename
|
|
116
|
-
details.sub_array.
|
|
116
|
+
details.sub_array.values.astype(new_type).tofile(temporary_file)
|
|
117
117
|
os.replace(temporary_file, _directory / details.filename)
|
|
@@ -6,13 +6,16 @@ import xarray_binfile # noqa: F401 (registers the accessors)
|
|
|
6
6
|
from xarray_binfile.write import WriteSpecs
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
@pytest.fixture
|
|
10
|
-
def data_array() -> xr.DataArray:
|
|
11
|
-
|
|
9
|
+
@pytest.fixture(params=["numpy", "dask"])
|
|
10
|
+
def data_array(request) -> xr.DataArray:
|
|
11
|
+
array = xr.DataArray(
|
|
12
12
|
np.arange(6, dtype=np.float64).reshape(2, 3),
|
|
13
13
|
coords={"x": np.arange(2), "y": np.arange(3)},
|
|
14
14
|
name="ux",
|
|
15
15
|
)
|
|
16
|
+
if request.param == "dask":
|
|
17
|
+
array = array.chunk({"x": 1})
|
|
18
|
+
return array
|
|
16
19
|
|
|
17
20
|
|
|
18
21
|
def whole_array_writer(data_array: xr.DataArray):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/tutorial/dataset_generator.py
RENAMED
|
File without changes
|
{xarray_binfile-0.1.0b1 → xarray_binfile-0.1.0b2}/src/xarray_binfile/tutorial/file_metadata.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|