21
from h5 cimport init_hdf5, SmartStruct, attr_rw, H5PY_READ, H5PY_WRITE
22
21
from h5t cimport TypeID, typewrap, py_create
24
23
from h5p cimport PropID, pdefault
25
24
from numpy cimport import_array, ndarray, PyArray_DATA
26
25
from utils cimport check_numpy_read, check_numpy_write, emalloc, efree
35
32
# === General attribute operations ============================================
37
34
# --- create, create_by_name ---
41
38
def create(ObjectID loc not None, char* name, TypeID tid not None,
42
39
SpaceID space not None, *, char* obj_name='.', PropID lapl=None):
43
40
"""(ObjectID loc, STRING name, TypeID tid, SpaceID space, **kwds) => AttrID