amusecode / amuse

Astrophysical Multipurpose Software Environment. This is the main repository for AMUSE
http://www.amusecode.org
Apache License 2.0
155 stars 98 forks source link

Adding a non-existing photo star in MESA doesn't return an error #1036

Open rieder opened 7 months ago

rieder commented 7 months ago

Describe the bug Adding a photo star in MESA when the file containing the photo does not exist does not return an error, instead it returns a 1 MSun star.

To Reproduce Steps to reproduce the behavior:

stellar_evolution = Mesa(version='15140')
star_in_code = stellar_evolution.photo_stars.add_particle(
    Particle(filename="i_dont_exist")
)

Expected behavior MESA returns an error