-
Notifications
You must be signed in to change notification settings - Fork 16
DM-7159: add phase folded code, ibe single exp fetch and periodogram … #186
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
Conversation
'period_days': fields.period.value, | ||
'table_name': 'folded_table', | ||
'time_col_name':fields.timeCol.value, | ||
'original_table': tbl.tableMeta.tblFilePath |
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.
I see a TypeError here
LcPhaseFoldingPanel.jsx:386 Uncaught TypeError: Cannot read property 'tableMeta' of undefined
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 is because of the workflow we decided to implement somehow. When the LC viewer is displayed, first thing to do is to bring a 'RWA_TABLE' by uploading one. Then it shouldn't complain.
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.
Maybe @loitly has a better way to try/catch this so the saga doesn't bail out?
cad do try/catch (!ifUndefined(tableMeta)? On 9/19/16 3:27 PM, Emmanuel Joliet wrote:
|
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.
As I mentioned in my review, I would like to see the client passing the row to the server for processing. This should work the same for all IBE related dataset. But, since this is just a prototype, you can merge the code as is, then rewrite it at a later time.
const scan_id = res[1]+res[2]; | ||
const scangrp = res[2]; | ||
const frame_num = res[3]; | ||
console.log(`http://irsa.ipac.caltech.edu/ibe/data/wise/merge/merge_p1bm_frm/${scangrp}/${scan_id}/${frame_num}/${scan_id}${frame_num}-w1-int-1b.fits`); | ||
// return makeWebPlotRequest(tbl_id); should use the commented code below to retrieve wise images. | ||
// this is just a placeholder. |
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.
I see you are mapping the selected row into an IBE URL directly. This may work for now. But, there is already code on the server-side that does this, and more. It takes into consideration, direct file access, cutout, packaging for download, etc.
You want to use edu.caltech.ipac.firefly.server.persistence.IbeFileRetrieve processor instead.
The logic is:
- extract column->value from selected row into a parameter map.
- create a ServerRequest from the parameter map.
- create WebPlotRequest from ServerRequest: ServerRequest.makeProcessorRequest()
Yes, I will take over make the ibe part working after E merges. On 9/19/16 4:47 PM, loitly wrote:
|
Added the usage of the newest LC processor to get the phase folded and periodogram.
Please have a look and let me know.