tophu.BinaryFile.__init__

BinaryFile.__init__(filepath, shape, dtype)

Construct a new BinaryFile object.

If the file does not exist, it will be created. If the file does exist but is smaller than the array, it will be extended to the size (in bytes) of the array.

Parameters
filepathstr or path-like

The file path.

shapetuple of int

Tuple of array dimensions.

dtypedata-type

Data-type of the array’s elements. Must be convertible to a numpy.dtype object.