-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes SIP fails to make the PVD of the mask #35
Comments
Hi Paolo, The masking was tricky to implement and google is not really helping me with these errors. Can you send me the sofia fits files for the source it fails on, and a *_cat.txt containing only this source? Does plotting the mask fail for all your sources or only some of them? Since it's complaining about non-square pixels...is there a certain position angle for which these fail, or sources that are weird for some other reason? (Like maybe its failing on not a real source, but an artefact SoFiA has picked up?) |
@paoloserra These edits are in the mask_pv branch. Can you test if this at least skips over your sources where plotting the mask fails. I'm not sure which exception to catch, so I've tried with the first one, "AssertionError", but I can't test it. (It's good to not be too broad, in catching exceptions, if possible, right?) |
unfortunately |
I agree, but I'm clearly no programmer :) |
If you change AssertionError to ValueError, does it work?
…On Tue, Apr 12, 2022 at 12:14 PM paoloserra ***@***.***> wrote:
It's good to not be too broad, in catching exceptions, if possible, right?
I agree, but I'm clearly no programmer :)
—
Reply to this email directly, view it on GitHub
<#35 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADRLMRTJBUZBCE4GU36FNHDVEVEILANCNFSM5SZMS3MA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Yeah that worked, I've made the change in that branch. |
Just to clarify, I think this deserves to be merged into master as it allows users with this problem to keep going. Maybe we can open a separate issue about how to solve the problem and find a way to plot the mask contours. |
Branch has been merged. I'm happy to keep this as the open issue since it has your error at the top. I did a little digging into the Assertion Error, but I think that might be a feature that astropy needs to deal with, tbh. |
OK, I will rename the issue though. |
For sample data in Galactic coordinates, the mask PVD also fails. |
I've noticed this issue seems to have resolved itself somehow with the #57 noregrid branch, at least for some sources! |
It looks like pvextractor may allow a work around for this issue now with a new PR: |
I'm getting this error.
The text was updated successfully, but these errors were encountered: