-
Notifications
You must be signed in to change notification settings - Fork 13
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
Remove checks preventing casa gain tables from being written. #448
base: master
Are you sure you want to change the base?
Conversation
@o-smirnov @bennahugo I believe that I have fixed this. Would either of you be willing to give this branch a spin to confirm? I have managed to export to casa table format and plot with plotms locally, but would like to be sure. |
I pulled this branch into my container. It builds and runs, but I didn't see a CASA table written out. I suspect I didn't set my parset file correctly, although the logging said something that implied a table was going to be written. |
The casa gain option is
|
I thought that was the default value. Setting it explicitly as you describe, does not seem to change the output. My parset:
The output products:
|
Could you please post the log for a run which failed to produce the casa
outputs? Might help me figure out what is going wrong.
…On Thu, 1 Apr 2021, 22:22 Casey Law, ***@***.***> wrote:
I thought that was the default value. Setting it explicitly as you
describe, does not seem to change the output.
My parset:
[data]
ms = test.ms
time-chunk = 1
freq-chunk = 1
[model]
list = MODEL_DATA
[weight]
_Help = Weighting options
column = None # Weight column to use.
[sol]
jones = B
min-bl=100
[out]
column = CORRECTED_DATA
casa-gaintables = 1
[b]
time-int = 1
freq-int = 1
[model]
list = MODEL_DATA
[weight]
_Help = Weighting options
column = None # Weight column to use.
[sol]
jones = B
min-bl=100
[out]
column = CORRECTED_DATA
casa-gaintables = 1
[b]
time-int = 1
freq-int = 1
[gainterm]
ref-ant=34
The output products:
ls /fastpool/claw/cubical.cc-out
cc.bbc-diag-ant.png cc-B-field_0-ddid_None.parmdb cc.chi2.tf.png cc.parset
cc.bbc-diag.png cc-B-field_0-ddid_None.parmdb.skel cc.log cc.stats.pickle
cc-BBC-field_0-ddid_None.parmdb cc-B-field_0-ddid_None.parmdb.tmp cc.noise.antchan.png
cc-BBC-field_0-ddid_None.parmdb.skel cc.chi2.antchan.png cc.noise.tf.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#448 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSHDWNT32ADUAGGGPDLP7TTGTIYHANCNFSM42BO36TQ>
.
|
You can find it at https://www.dropbox.com/s/iyyrz6guyloy0uc/cc.log?dl=0. |
@caseyjlaw Apologies for the delay. This is confusing to me - it looks as though the export is reached but there are no outputs. This definitely works for me locally. One thing I did notice is that it looks as though there is something wrong with the data (chi-squared of 1e13 is suspicious). Do you have any ideas @bennahugo? |
Does the Another usual suspect is the time/frequency intervals for the solution not being appropriate, but this looks like a bandpass solve on a MS with a single timeslot, so the 1,1 setting probably isn't the culprit. |
The MODEL_DATA column is filled, if that's what you mean. Quick check with casacore:
So just to be clear, I should see output tables in MS format? But if the solver fails for some reason, it may not write it out? |
But model data is the input model. It does not mean the calibration was successful. The behaviour (was) that the tables are written out when the paramdb tables are dumped (an adaptor is constructed around the generated paramdb) and dumped as part of the same call to write out, regardless of chi^2 / quality etc. As long as the calibration runs through the tables would be dumped. Things might have broken since - there are multiple places where the adaptor calls must be made for it to write out in the end. I will need to actually also need to do some testing and check that we haven't introduced bugs in the py3 porting like integer division errors. Even if the tables are dumped they should be taken with a grain of salt for now. I strongly suggest that you use plots derived from paramdb format for production usage for now until I can revisit this - see my script on how these dictionaries are loaded in. |
Or even easier, run |
@bennahugo if you happen to have a moment whilst implementing your other fixes, would you mind verifying that this works? Don't waste time on it, but I figure having this funcitonliaty will be useful. |
yea I'm busy looking at simulations to test this. I know @IanHeywood raised an issue about the phases I believe, but I cannot find it now... |
lol I get immediate issues on this one... this is going to take a bit of debugging and rework
|
Ok I can reproduce at least something related to the original enquiry by @caseyjlaw This needs some serious rework, also to retest things - I don't think anybody really used this feature in anger before we migrated to py3. I'm on AoD duty and I have a few big-ticket things for the next 3-4 weeks @JSKenyon - can't say I will be able to make much headway on this till after that. |
@o-smirnov @bennahugo This is a draft with the checks preventing CASA gain tables from being written removed. See #440.