mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2024-12-29 12:20:41 +01:00
9 lines
181 B
Python
9 lines
181 B
Python
import numpy as np
|
|
|
|
def save(data, fname, dtype=None):
|
|
if dtype is not None:
|
|
data = data.astype(dtype)
|
|
|
|
with open(fname, 'wb') as f:
|
|
f.write(data.tobytes())
|