cmb-format 0.1.0__py3-none-any.whl

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.
cmb_format/__init__.py ADDED
@@ -0,0 +1,58 @@
1
+ """Python I/O for Cell Model Binary (CMB) meshes and models.
2
+
3
+ The API accepts dictionaries of NumPy arrays. Files can contain mesh
4
+ geometry and named per-cell models, or models for a separately stored mesh.
5
+ See ``docs/binary-format.md`` for the normative format specification.
6
+ """
7
+
8
+ from cmb_format._codec import (
9
+ DTYPE_TO_NUMPY,
10
+ INT8_MAX,
11
+ MAGIC,
12
+ READABLE_FORMAT_VERSIONS,
13
+ WRITTEN_FORMAT_VERSION,
14
+ base_mesh_descriptor,
15
+ padding_as_json,
16
+ padding_belongs_to_base_mesh,
17
+ raw_mesh_shape,
18
+ read_array,
19
+ read_arrays,
20
+ read_header,
21
+ resolve_reference_n_cells,
22
+ resolve_shared_padding,
23
+ serialize_array,
24
+ serialize_mesh,
25
+ summarize_models,
26
+ )
27
+ from cmb_format._detect import is_cmb_file
28
+ from cmb_format._file import build_file_bytes, read_file, write_file
29
+ from cmb_format._padding import (
30
+ normalize_default_padding,
31
+ validate_default_padding_shape,
32
+ )
33
+
34
+ __all__ = [
35
+ "DTYPE_TO_NUMPY",
36
+ "INT8_MAX",
37
+ "MAGIC",
38
+ "READABLE_FORMAT_VERSIONS",
39
+ "WRITTEN_FORMAT_VERSION",
40
+ "base_mesh_descriptor",
41
+ "build_file_bytes",
42
+ "is_cmb_file",
43
+ "normalize_default_padding",
44
+ "padding_as_json",
45
+ "padding_belongs_to_base_mesh",
46
+ "raw_mesh_shape",
47
+ "read_array",
48
+ "read_arrays",
49
+ "read_file",
50
+ "read_header",
51
+ "resolve_reference_n_cells",
52
+ "resolve_shared_padding",
53
+ "serialize_array",
54
+ "serialize_mesh",
55
+ "summarize_models",
56
+ "validate_default_padding_shape",
57
+ "write_file",
58
+ ]