diff --git a/examples/Fragmentation/Fragmentation_Movie.py b/examples/Fragmentation/Fragmentation_Movie.py index fc308687a..5d660bcec 100644 --- a/examples/Fragmentation/Fragmentation_Movie.py +++ b/examples/Fragmentation/Fragmentation_Movie.py @@ -167,7 +167,6 @@ def data_stream(self, frame=0): movie_styles = available_movie_styles.copy() for style in movie_styles: - param_file = Path(style) / "param.in" bin_file = Path(style) / "bin.nc" if bin_file.exists(): user_selection = input(f"An older simulation of {movie_titles[style]} exists. Do you want to re-run it? [y/N] ") @@ -185,7 +184,7 @@ def data_stream(self, frame=0): # Pull in the Swiftest output data from the parameter file and store it as a Xarray dataset. if run_new: - sim = swiftest.Simulation(param_file=param_file, rotation=True, init_cond_format = "XV", compute_conservation_values=True) + sim = swiftest.Simulation(simdir=style, rotation=True, init_cond_format = "XV", compute_conservation_values=True) sim.add_solar_system_body("Sun") sim.add_body(Gmass=body_Gmass[style], radius=body_radius[style], rh=pos_vectors[style], vh=vel_vectors[style]) #, rot=rot_vectors[style])