Skip to content

Irsa 142-WCS match behavior is odd #349

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

Merged
merged 2 commits into from
Apr 11, 2017
Merged

Irsa 142-WCS match behavior is odd #349

merged 2 commits into from
Apr 11, 2017

Conversation

lznakano
Copy link
Contributor

To test it,

  1. build firefly
  2. build irsaviewer in ife
  3. Please follow the procedures in the video Louisa created (https://youtu.be/B-DfHOtWFGo)

For some reason, the image from irsaviewer is not the same as the one from the irsatest. I attached the old image in the ticket.

Thanks for testing!

  Fixed WcsMatch bug
@lznakano lznakano requested a review from robyww April 11, 2017 00:32
@ejoliet ejoliet requested a review from wmiipac April 11, 2017 00:33
@ejoliet ejoliet changed the base branch from dev to rc April 11, 2017 00:36
@wmiipac
Copy link
Contributor

wmiipac commented Apr 11, 2017

the correct steps should be:
*checkout IRSA-142 branch in firefly
*checkout rc branch in ife
*build irsaviewer in ife, and follow Luisa's youtube

I built Atlas with irsaviewer(with Lijun's fix) point to my localhost
http://irsadev.ipac.caltech.edu:9072/data/SPITZER/C2D/

the wcs match problem is fixed.
There seem to be a problem when loading image from the irsaviewer, the image size is being ignored, the loading image panel had default size for wise set at 0.15 degree, see attached screenshot, but the image loaded is full size. irsatest has the correct wise image size.
screen shot 2017-04-11 at 10 50 29 am

//If the group id exists, add the image into the same group
var vr = visRoot();
if (vr.activePlotId && vr.plotGroupAry[0]){
groupId = vr.plotGroupAry[0].plotGroupId;
Copy link
Contributor

@robyww robyww Apr 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct, you want to do the following:

 if ((plotInfo.addPlot&create) && plotInfo.viewerId) {
       groupId = plotInfo.viewerId;
       const viewer = getViewer(getMultiViewRoot(), plotInfo.viewerId);

       if (viewer && viewer.itemIdAry[0]) {
           const pv = getPlotViewById(visRoot(), viewer.itemIdAry[0]);
           if (pv) {
               groupId = pv.plotGroupId;
           }
       }
} 
else {
    ...

Right now you are getting just the first plotGroupId that is a risk. This way it will get the first PlotView in the active viewer and then get the plotGroup from that.

getActivePlotView is imported from PlotViewUtil.js
getViewer, getMultiViewRoot is imported from MultiViewCntrl.js

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing out the potential risk. I will make the changes as you recommended.

  Changed the codes as Trey requested.
@lznakano lznakano merged commit 3380ef3 into rc Apr 11, 2017
@lznakano lznakano deleted the IRSA-142 branch April 11, 2017 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants