Closed robelgeda closed 2 years ago
Running the PSFConvolvedModel2D.model attribute twice or mode causes the following error:
PSFConvolvedModel2D.model
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) Input In [244], in <cell line: 1>() ----> 1 ori_fitted_model.model File .../petrofit/petrofit/modeling/models.py:348, in PSFConvolvedModel2D.model(self) 345 setattr(model, param, getattr(self, param).value) 347 fixed = self.fixed --> 348 del fixed['psf_pa'] 350 bounds = self.bounds 351 del bounds['psf_pa'] File ~/miniconda3/envs/petrofit/lib/python3.10/collections/__init__.py:1112, in UserDict.__delitem__(self, key) 1111 def __delitem__(self, key): -> 1112 del self.data[key] KeyError: 'psf_pa'
Fixed with #145
Running the
PSFConvolvedModel2D.model
attribute twice or mode causes the following error: