Skip to content

Commit

Permalink
fixed broken animation
Browse files Browse the repository at this point in the history
  • Loading branch information
mfinzi committed Apr 15, 2021
1 parent 8bf0ae5 commit dfa9c03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experiments/trainer/hamiltonian_dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def sample_initial_conditions(self,bs):
raise NotImplementedError
def animate(self, zt=None):
if zt is None:
zt = np.asarray(self.integrate(self.sample_initial_conditions(10),self.T_long))
zt = np.asarray(self.integrate(self.sample_initial_conditions(10)[0],self.T_long))
# bs, T, 2nd
if len(zt.shape) == 3:
j = np.random.randint(zt.shape[0])
Expand Down Expand Up @@ -453,4 +453,4 @@ def __call__(self,cfg,i=None):
if self.strict: raise
outcome = e
del trainer
return cfg, outcome
return cfg, outcome

0 comments on commit dfa9c03

Please sign in to comment.