There is bug in AstroPy where discretize_model does not accept CompoundModels. To temporarily fix this on our end, I have added a modified version of that function to PetroFit (#95). I have opened a PR in AstroPy and we can remove the modified version of the function in PetroFit once AstroPy releases an update.
PR in AstroPy has been merged marking as resolved. This makes us dependent on astropy v5.0.3. Marking as resolved but keeping this ticket open until AstroPy release.
There is bug in AstroPy where
discretize_model
does not acceptCompoundModel
s. To temporarily fix this on our end, I have added a modified version of that function to PetroFit (#95). I have opened a PR in AstroPy and we can remove the modified version of the function in PetroFit once AstroPy releases an update.