Skip to content

Commit dd51ac0

Browse files
committed
Prepare dataset 3d
1 parent 54e91aa commit dd51ac0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/create_dataset_3D.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def create_dataset(ra=2500, split="train", total_epsiodes=1, parallel_envs=1):
1313
# env params
1414
shape = (32, 48, 48)
1515
dt = 0.125 # 0.5 in ff time
16-
length = 200
16+
length = 300
1717
segments = 8
1818
limit = 0.9
1919
steps = int(length // (dt * 4)) # dt is in freefall time units
@@ -35,7 +35,7 @@ def create_dataset(ra=2500, split="train", total_epsiodes=1, parallel_envs=1):
3535
# env params
3636
render_mode=None,
3737
rayleigh_number=ra,
38-
checkpoint=f"data/checkpoints/3D_fine/{split}/ckpt_ra{ra}.h5",
38+
checkpoint=None,
3939
episode_length=length,
4040
state_shape=shape,
4141
heater_duration=dt,
@@ -107,7 +107,7 @@ def create_dataset(ra=2500, split="train", total_epsiodes=1, parallel_envs=1):
107107
with h5py.File(path, "r+") as f:
108108
f[f"states{id}"][step] = obs[idx]
109109
f[f"actions{id}"][step] = action[idx]
110-
f[f"nusselts{id}"][step] = info["nusselt_state"][idx]
110+
f[f"nusselts{id}"][step] = info["nusselt"][idx]
111111
break
112112
except BlockingIOError:
113113
print(

0 commit comments

Comments
 (0)