mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2024-11-14 14:50:22 +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())
|