Skip to content

Commit 0cf6241

Browse files
committed
Store stochastic paths
1 parent 0af0ab2 commit 0cf6241

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
from argparse import ArgumentParser
2+
3+
import numpy as np
4+
25
from utils.animation import save_trajectory
36
from utils.args import parse_args, str2bool
47
from systems import System
@@ -217,6 +220,7 @@ def main():
217220
key, path_key = jax.random.split(key)
218221
x_t_stoch = setup.sample_paths(state_q, x_0, args.dt, args.T, args.BS, path_key)
219222
x_t_stoch_no_vel = x_t_stoch[:, :, :system.A.shape[0]]
223+
np.save(f'{args.save_dir}/stochastic_paths.npy', x_t_stoch_no_vel)
220224

221225
if system.mdtraj_topology:
222226
save_trajectory(system.mdtraj_topology, x_t_stoch_no_vel[0].reshape(1, -1, 3), f'{args.save_dir}/stoch_0.pdb')

0 commit comments

Comments
 (0)