diff --git a/python/snewpy/models/ccsn.py b/python/snewpy/models/ccsn.py index 137db308..35cd1fc0 100644 --- a/python/snewpy/models/ccsn.py +++ b/python/snewpy/models/ccsn.py @@ -259,7 +259,7 @@ def _metadata_from_filename(self, filename:str)->dict: def __init__(self, *, progenitor_mass:u.Quantity): filename = f's{progenitor_mass.value:g}.dat' #tag if this simulation forms a black hole - self.metadata['Black hole'] = self.filename[:-4] not in ['s18','s25'] + self.metadata['Black hole'] = filename[:-4] not in ['s18','s25'] return super().__init__(filename, self.metadata) @deprecated('eos')