From 4581c322d0ad14921063fd4699ed68922597301a Mon Sep 17 00:00:00 2001 From: Steven Rieder Date: Mon, 21 Oct 2024 12:18:08 +0200 Subject: [PATCH] Update plot_hydro_density_distributions.py: print the right info --- examples/textbook/plot_hydro_density_distributions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/textbook/plot_hydro_density_distributions.py b/examples/textbook/plot_hydro_density_distributions.py index a91a69cd7c..e76d64b8ff 100644 --- a/examples/textbook/plot_hydro_density_distributions.py +++ b/examples/textbook/plot_hydro_density_distributions.py @@ -13,7 +13,7 @@ def stellar_model(N, M, t=0.0|units.Myr): se_star = stellar_evolution.particles.add_particle(star) print("Evolving", star.mass, "to t=", t.in_(units.Myr)) stellar_evolution.evolve_model(t) - print("Stellar type:", stellar_evolution.particles.stellar_type) + print("Stellar type:", se_star.stellar_type) print("Creating SPH particles from the (1D) stellar evolution model") sph_particles = convert_stellar_model_to_SPH(se_star, N).gas_particles stellar_evolution.stop()