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

Explore by group type #1000

Conversation

BradleySappington
Copy link
Collaborator

No description provided.

@pep8speaks
Copy link

pep8speaks commented Jul 25, 2022

Hello @BradleySappington, Thank you for updating !

Line 215:64: E226 missing whitespace around arithmetic operator
Line 1096:17: W503 line break before binary operator
Line 1097:17: W503 line break before binary operator
Line 1098:17: W503 line break before binary operator
Line 1099:17: W503 line break before binary operator
Line 1519:9: E722 do not use bare 'except'

Comment last updated at 2022-07-26 13:18:08 UTC

@BradleySappington
Copy link
Collaborator Author

@mfixstsci ready for review

Copy link
Collaborator

@mfixstsci mfixstsci left a comment

Choose a reason for hiding this comment

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

Hey @BradleySappington this looks good to me, thanks for the changes. Just have a couple of questions here and then we can merge.

@@ -32,7 +32,6 @@
import tempfile

from astropy.io import fits
from astropy.table import Table
Copy link
Collaborator

Choose a reason for hiding this comment

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

Were we not using Table in this module @BradleySappington?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct, my linter told me it was imported and unused. Doing minor code cleanups along the way. There are more cleanups/errors/bugs in this file that need to be done, but they affect the logic directly so I didn't want to put them in this code request, they should be done separately.

'base_url': get_base_url(),
'form': form}

return render(request, template, context)


def explore_image_ajax(request, inst, file_root, filetype, scaling="log", low_lim=None, high_lim=None, rewrite=False):
def explore_image_ajax(request, inst, file_root, filetype, scaling="log", low_lim=None, high_lim=None, ext_name="SCI", rewrite=False):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we always expect there to be a science extension available?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Spoke with @bhilbert4 who confirmed before adding this code.

Copy link
Collaborator

@bhilbert4 bhilbert4 left a comment

Choose a reason for hiding this comment

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

Functionally this looked good on the test server.

@BradleySappington BradleySappington merged commit 97b43dd into spacetelescope:develop Jul 26, 2022
@BradleySappington BradleySappington deleted the explore_by_group_type branch March 30, 2023 19:33
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.

None yet

4 participants