ordeq_numpy
NumpyBinary
dataclass
¶
Bases: IO[ndarray]
IO to load from and save binary numpy arrays.
Example usage:
1 2 3 4 5 | |
load(**load_options)
¶
Load numpy array with optional parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**load_options
|
Any
|
Arguments passed to np.load() (e.g., mmap_mode, allow_pickle, max_header_size) |
{}
|
Returns:
| Type | Description |
|---|---|
ndarray
|
Numpy array |
save(array, **save_options)
¶
Save numpy array with optional parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
array
|
ndarray
|
The array to save |
required |
**save_options
|
Any
|
Arguments passed to np.save() (e.g., allow_pickle, fix_imports) |
{}
|
NumpyText
dataclass
¶
Bases: IO[ndarray]
IO to load from and save plain text numpy arrays.
Example usage:
1 2 3 4 5 | |
load(**load_options)
¶
Load numpy array with optional parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**load_options
|
Any
|
Arguments passed to np.loadtxt() (e.g., dtype, delimiter, skiprows, max_rows) |
{}
|
Returns:
| Type | Description |
|---|---|
ndarray
|
Numpy array |
save(array, **save_options)
¶
Save numpy array with optional parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
array
|
ndarray
|
The array to save |
required |
**save_options
|
Any
|
Arguments passed to np.savetxt() (e.g., fmt, delimiter, header, footer) |
{}
|