Skip to content
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

Cubeviz: gap between two regions of the same spectral subset padded with zeros #1255

Closed
Jdaviz-Triage-Bot opened this issue Apr 19, 2022 · 12 comments
Assignees
Labels

Comments

@Jdaviz-Triage-Bot
Copy link

Reporter: Camilla Pacifici

Cubeviz:

  • change function to sum for the spectrum in the spectral viewer
  • select a spectral subset with two regions using "add"
  • the gap in between the two regions gets filled with zeros

DISCLAIMER: This issue was autocreated by the Jdaviz Issue Creation Bot on behalf of the reporter. If any information is incorrect, please contact Duy Nguyen

@pllim pllim added bug Something isn't working cubeviz labels May 6, 2022
@astrofrog
Copy link
Collaborator

I think this should be fixed by glue-viz/glue#2298 - can someone confirm?

@pllim
Copy link
Contributor

pllim commented May 19, 2022

@camipacifici has confirmed that upstream fix solved this. Thanks!

@stscijgbot-jwql
Copy link

This issue is tracked on JIRA as JDAT-2339.

@stscijgbot-jwql
Copy link

Comment by Duy Nguyen on JIRA:

NOTICE: A corresponding GitHub issue was automatically created: #1255

@stscijgbot-jwql
Copy link

Comment by Ori Fox on JIRA:

Camilla Pacifici Can you try this again with the latest dev install? I had this problem 2 weeks ago, but now it seems gone. 

@stscijgbot-jwql
Copy link

Comment by Pey-Lian Lim on JIRA:

Turns out this does not show up in "maximum" but shows up in "sum". Disabling GL does not fix the problem.

I think the actual logic is at https://github.com/glue-viz/glue/blob/1c718378b5527e64d85cc6a6f9a0330652e5cf4b/glue/utils/array.py#L414

Does it go through here too? I cannot tell for sure without more digging. https://github.com/glue-viz/glue-astronomy/blob/99966962d971ad779c9ac51da7055222c406e49f/glue_astronomy/translators/regions.py#L113

@stscijgbot-jwql
Copy link

Comment by Camilla Pacifici on JIRA:

Thank you Pey-Lian for taking a look.
Yes, the problem is with "sum" and still there as recently as yesterday.

@stscijgbot-jwql
Copy link

Comment by Pey-Lian Lim on JIRA:

Yes, we all saw the bug live this morning at tag-up, thanks to Richard O'Steen and Ori Fox. But the fix is not immediately obvious, so this ticket will need to be properly prioritized and pointed and all that.

@stscijgbot-jwql
Copy link

Comment by Camilla Pacifici on JIRA:

(y)

@stscijgbot-jwql
Copy link

Comment by Pey-Lian Lim on JIRA:

Someone should check if glue-viz/glue#2298 has fixed this problem. It is already merged, so all you have to do is to install dev version of glue-core and go through this use case.

@stscijgbot-jwql
Copy link

Comment by Camilla Pacifici on JIRA:

Checked and seems fixed!

@stscijgbot-jwql
Copy link

Comment by Pey-Lian Lim on JIRA:

Great to hear. Thanks for checking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants