Astro-Sean / autophot

The AUTOmated Photometry Of Transients (AutoPhOT) is a novel automated pipeline that is designed for rapid, publication-quality photometry of transients.
GNU General Public License v3.0
25 stars 2 forks source link

KeyError:['nyquist_limit'] #7

Open deckersm opened 2 years ago

deckersm commented 2 years ago

Hi Sean,

Thanks for creating this, it's incredibly helpful!

I just ran into a KeyError on ['nyquist_limit'] and checked main.py. You call this:

        if image_fwhm < autophot_input['photometry']['nyquist_limit'] and autophot_input['photometry']['check_nyquist']:
            logging.warning('\nFWHM [%.1f]<%.1f - Sampling errors - using aperture Photometry' % (image_fwhm,autophot_input['nyquist_limit']))

And I think instead of autophot_input['nyquist_limit'] it should be autophot_input['photometry']['nyquist_limit']. At least, I made that change locally and it seems to have fixed the problem.

Cheers, Maxime

Astro-Sean commented 2 years ago

Hi Maxime,

Yes you are correct - this is a remnant of the old input structure.

Thanks for raising the issue, I have fixed this in V1.0.4.

Astro-Sean commented 2 years ago

I will leave this issue open for those who encounter it with V1.0.3 .