diff --git a/arkane/statmech.py b/arkane/statmech.py index b8ac4e72f1..408b202125 100644 --- a/arkane/statmech.py +++ b/arkane/statmech.py @@ -316,7 +316,9 @@ def load(self, pdep=False, plot=False): except KeyError: raise InputError('Model chemistry {0!r} not found in from dictionary of energy values in species file ' '{1!r}.'.format(self.modelChemistry, path)) - if not os.path.isfile(energy.path): + if not hasattr(energy, 'path'): + pass + elif not os.path.isfile(energy.path): modified_energy_path = os.path.join(directory, energy.path) if not os.path.isfile(modified_energy_path): raise InputError('Could not find single point energy file for species {0} '