-
Notifications
You must be signed in to change notification settings - Fork 6
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
Ensure matplotlib bounds are computed for baseline arrays and fix regression in iter-baselines (#97 #105) #104
Conversation
But - those plots should not be so different. All I changed was the x-axis. |
--iter-baseline does not work $ shadems --xaxis FREQ --yaxis DATA:amp --corr YY --iter-baseline bpcal-av-noflags.ms/ |
hmm but the second plot you are showing is wavelength (which would be reversed and have a somewhat non-linear step - with the top part of the band being the longer/bigger wavelength) - is CHAN showing up as WAVEL? That must be a bug let met check. |
I think you are confusing your plots @SharmilaGoedhart - I can't reproduce your first point. |
@bennahugo look at the RFI, and the 1420 HI line. A lot of data points missing in the second and third plots, but differently. This data has no flags applied, btw. Yes, my comments have the commands the wrong way around. I'll edit the original post. |
Looking more carefully at this imshow is probably not what you want to use for this sort of plotting though? It does create interpolation artefacts which is what I think we are actually seeing more than "unflagged" rfi. @o-smirnov will need to chip in because this is his code? I suppose you are doing this for speed more than anything else? |
I can confirm I can at least reproduce the --iter-baseline issue |
Yes, we (sci-ops) need to assess potentially problematic data rapidly. My first instinct is to look at the raw visibilities when I don't know what is going on. |
@SharmilaGoedhart ok you can try again with iterbaseline |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
One thing that I feel strongly about: Could we please have descriptive PR names? For someone reading the commit history (or a changelog) it's very difficult to understand what changes were made here. I'd suggest something like:
"Ensure matplotlib bounds are computed for baseline arrays"
To be done in separate PR per request
Ok I think this addresses the comments @sjperkins. I think going forward we can use titles plus issues in parentheses - I find quick cross references to original tickets easier to follow than digging through commit history when squashed? |
Normally one would add |
Ok I can accept this flow -- as long as it is clear what has been addressed in each PR |
I think lets wait for @SharmilaGoedhart to look at her plots this morning before merging this one. If she is happy then I'm happy to proceed with merging. I've had some thoughts about her comments re imshow interpolation tending to smeer things into neighbouring bins, but this is a discussion for a different PR and one I need to have with @IanHeywood and @o-smirnov |
Also, adding
OK, I'll approve in the meantime |
Closes #97
Closes #105
@SharmilaGoedhart please verify that this is working for you
This should now work:
shadems --xaxis FREQ --yaxis DATA:amp msdir/DEEP_2.1491291289.1ghz.1.1ghz.4hrs.1gc.ms
and this as well
shadems --xaxis WAVEL --yaxis DATA:amp msdir/DEEP_2.1491291289.1ghz.1.1ghz.4hrs.1gc.ms