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

fix nested toolbar in specviz2d/mosviz 2d profile viewer #1778

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

kecnry
Copy link
Member

@kecnry kecnry commented Oct 25, 2022

Description

This pull request fixes the nested toolbar in the 2d spectrum viewers in specviz2d and mosviz (see #1679 - which was supposed to replace the original toolbar with the nested toolbar, but forgot to change the inheritance order of this viewer).

Before:
Screen Shot 2022-10-25 at 2 20 00 PM

After:
Screen Shot 2022-10-25 at 2 18 14 PM

Change log entry

  • Is a change log needed? If yes, is it added to CHANGES.rst? If you want to avoid merge conflicts,
    list the proposed change log here for review and add to CHANGES.rst before merge. If no, maintainer
    should add a no-changelog-entry-needed label.

Checklist for package maintainer(s)

This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.

  • Are two approvals required? Branch protection rule does not check for the second approval. If a second approval is not necessary, please apply the trivial label.
  • Do the proposed changes actually accomplish desired goals? Also manually run the affected example notebooks, if necessary.
  • Do the proposed changes follow the STScI Style Guides?
  • Are tests added/updated as required? If so, do they follow the STScI Style Guides?
  • Are docs added/updated as required? If so, do they follow the STScI Style Guides?
  • Did the CI pass? If not, are the failures related?
  • Is a milestone set? Set this to bugfix milestone if this is a bug fix and needs to be released ASAP; otherwise, set this to the next major release milestone.
  • After merge, any internal documentations need updating (e.g., JIRA, Innerspace)?

@kecnry kecnry added this to the 3.0.3 milestone Oct 25, 2022
@kecnry kecnry force-pushed the fix-spec2d-toolbar branch from 1fb9160 to 554375a Compare October 25, 2022 18:19
@kecnry kecnry added bug Something isn't working UI/UX😍 trivial Only needs one approval instead of two specviz2d labels Oct 25, 2022
@kecnry kecnry marked this pull request as ready for review October 25, 2022 18:21
@codecov
Copy link

codecov bot commented Oct 25, 2022

Codecov Report

Base: 87.81% // Head: 87.81% // No change to project coverage 👍

Coverage data is based on head (554375a) compared to base (4207a9f).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1778   +/-   ##
=======================================
  Coverage   87.81%   87.81%           
=======================================
  Files          95       95           
  Lines       10165    10165           
=======================================
  Hits         8926     8926           
  Misses       1239     1239           
Impacted Files Coverage Δ
jdaviz/configs/mosviz/plugins/parsers.py 90.99% <100.00%> (ø)
jdaviz/configs/mosviz/plugins/viewers.py 79.41% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment on lines -800 to 801
raise KeyError(f"The SRCTYPE keyword in the header of file {fname}"
raise KeyError(f"The SRCTYPE keyword in the header of file {fname} "
"is not populated (expected values: EXTENDED or POINT)") from e
Copy link
Member Author

Choose a reason for hiding this comment

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

not really applicable to the fix here, but ran into it while testing mosviz and I don't think it warrants its own PR...

Copy link
Contributor

@pllim pllim left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -99,7 +99,7 @@ def set_plot_axes(self):


@viewer_registry("mosviz-profile-2d-viewer", label="Spectrum 2D (Mosviz)")
class MosvizProfile2DView(BqplotImageView, JdavizViewerMixin):
class MosvizProfile2DView(JdavizViewerMixin, BqplotImageView):
Copy link
Contributor

Choose a reason for hiding this comment

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

🤯

@pllim pllim added the 💤 backport-v3.0.x on-merge: backport to v3.0.x label Oct 25, 2022
@pllim pllim merged commit 38b9dd8 into spacetelescope:main Oct 25, 2022
meeseeksmachine pushed a commit to meeseeksmachine/jdaviz that referenced this pull request Oct 25, 2022
@kecnry kecnry deleted the fix-spec2d-toolbar branch October 25, 2022 19:42
pllim added a commit that referenced this pull request Oct 25, 2022
…8-on-v3.0.x

Backport PR #1778 on branch v3.0.x (fix nested toolbar in specviz2d/mosviz 2d profile viewer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mosviz specviz2d trivial Only needs one approval instead of two UI/UX😍 💤 backport-v3.0.x on-merge: backport to v3.0.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants