mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2024-11-13 06:10:21 +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())
|