POSYDON-code / POSYDON

POSYDON is a next-generation single and binary-star population synthesis code incorporating full stellar structure and evolution modeling with the use of MESA.
BSD 3-Clause "New" or "Revised" License
29 stars 20 forks source link

TypeError in active_learning/psy_cris/run_params/run_psycris_sequence.py #134

Open mkruckow opened 1 year ago

mkruckow commented 1 year ago

When I do import posydon.active_learning.psy_cris.run_params.run_psycris_sequence I get the following error:

File ~/POSYDON/posydon/active_learning/psy_cris/run_params/run_psycris_sequence.py:45
     43 inifile_path = args.inifile_path
     44 save_data_dir = args.save_data_dir
---> 45 if not os.path.isfile(inifile_path):
     46     raise ValueError("Inifile not found. Please check that the path is correct.\nGiven: {}".format(inifile_path))
     47 if not os.path.isdir(save_data_dir):

File <frozen genericpath>:30, in isfile(path)

TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

It looks like the variables do not get initialized well and therefore create this TypeError.

astroJeff commented 11 months ago

@ka-rocha, can you look into this?

astroJeff commented 3 weeks ago

@ka-rocha please take a look at this and add a check for variable types