Skip to content

Commit

Permalink
bug fix saving prey list correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
pranjaldhole committed May 14, 2024
1 parent cd17dfd commit 54c1ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion causal_inference/base/lotka_volterra.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def runge_kutta_update(self, current_prey, current_predators):
def _save_population(self):
filename = os.path.join(RESULTS_DIR, 'populations.h5')
hf = h5py.File(filename, 'w')
hf.create_dataset('prey_pop', data=self.predator_list)
hf.create_dataset('prey_pop', data=self.prey_list)
hf.create_dataset('pred_pop', data=self.predator_list)
hf.close()

Expand Down

0 comments on commit 54c1ba2

Please sign in to comment.