umbc-research / FWHMscripts

A repo for scripts relating to my research into FWHM anaylsis
1 stars 0 forks source link

"detection error" #10

Closed aporter3725 closed 7 months ago

aporter3725 commented 7 months ago

Hello Olivia this is the error I'm getting when I run the code. I can also attach the fits files I used to run it. When I ran a total of 10 fits files it stopped at 5 and gave me the error below. I can send you the fits files on discord.

WARNING:` NoDetectionsWarning: Sources were found, but none pass the sharpness, roundness, or peakmax criteria Iphotutils.detection.daofinder] Traceback (most recent call last): File "/Users/azzanporter/Downloads/obs_fits_data/FWHMscripts/main.py", line 114, in ‹module> xC, уС = sourcesListI]['xcentroid'+sfLength, sourcesList[0]['ycentroid']+sfLength TypeError: 'NoneType' object is not subscriptable

outyprouty commented 7 months ago

Azzan: please send the files you used and instructions for how to replicate the error.

Roy Prouty (he/him/his) royprouty.info Appointment Calendar https://calendar.app.google/d1AHDK1ihNvyLAXJ9

The most dangerous phrase in the language is, "We've always done it this way."

On Tue, Mar 19, 2024 at 9:18 PM aporter3725 @.***> wrote:

Hello Olivia this is the error I'm getting when I run the code. I can also attach the fits files I used to run it. When I ran a total of 10 fits files it stopped at 5 and gave me the error below. I can send you the fits files on discord.

WARNING:` NoDetectionsWarning: Sources were found, but none pass the sharpness, roundness, or peakmax criteria Iphotutils.detection.daofinder] Traceback (most recent call last): File "/Users/azzanporter/Downloads/obs_fits_data/FWHMscripts/main.py", line 114, in ‹module> xC, уС = sourcesListI]['xcentroid'+sfLength, sourcesList[0]['ycentroid']+sfLength TypeError: 'NoneType' object is not subscriptable

— Reply to this email directly, view it on GitHub https://github.com/umbc-research/FWHMscripts/issues/10, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEM4BDPL5CLXMHHRKXHJDJTYZDPXFAVCNFSM6AAAAABE6TBZYWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4TMNBRGI3TCMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

aporter3725 commented 7 months ago

I run in the terminal, this command: python3 main.py .

https://drive.google.com/drive/folders/1inI47icayk7VaTDPX7RvTX_VGBySDUNa?usp=sharing Here is a google drive of the fits files used to run the script.

outyprouty commented 7 months ago

I added a try/except block to filter out files for which no appropriate fit is found. commit 29a674159e2000e5e4b7921235a97164ccb8cafd