Change folder structure: data files are now in a directory.

Also added a demo 400x400 map, that is overriden on pre-processing.
This commit is contained in:
Gael-de-Sailly
2020-04-26 23:29:36 +02:00
parent b429b302e1
commit a9ab0e53d3
13 changed files with 30 additions and 5 deletions

View File

@ -77,6 +77,9 @@ offset_x, offset_y = bounds.twist(bx, by, bounds.get_fixed(model.dirs))
offset_x = np.clip(np.floor(offset_x * 256), -128, 127)
offset_y = np.clip(np.floor(offset_y * 256), -128, 127)
if not os.path.isdir('data'):
os.mkdir('data')
os.chdir('data')
# Save the files
save(model.dem, 'dem', dtype='>i2')
save(model.lakes, 'lakes', dtype='>i2')