Autostronomy / AstroPhot

A fast, flexible, automated, and differentiable astronomical image 2D forward modelling tool for precise parallel multi-wavelength photometry
https://astrophot.readthedocs.io
GNU General Public License v3.0
88 stars 9 forks source link

PSF model basics tutorial issue #221

Closed sanast closed 1 month ago

sanast commented 1 month ago

Hi

I tried to run this tutorial "(https://astrophot.readthedocs.io/en/latest/tutorials/BasicPSFModels.html) " but got these error messages. Just wondering how to fix this. (I just downloaded the notebook and ran in my machine )

AttributeError: 'PSF_Image' object has no attribute 'normalize.'

module 'astrophot.plots' has no attribute 'psf_image'

ConnorStoneAstro commented 1 month ago

Hmm, that is a strange error to get. I wonder if you are using the latest version of AstrPhot? Could you check the version with something like ap.version ? It should be 0.16.5 but you may have ended up with an older version if you aren't using an updated Python version.

sanast commented 1 month ago

Yes. Thank you. I had the older version. I had a reinstallation with the new version, and it works now.