-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix model fitting plugin bugs #1176
Conversation
# so it's not required that we match any specific ids for that case. | ||
# However, if the msg is not none, check to make sure that it's the | ||
# viewer we care about. | ||
if msg is not None and msg.viewer_id != self._viewer_id: |
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.
Do we not need this?
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.
No, and in fact it was breaking it because now it's listening for messages that don't have a viewer_id
attached. This was a minuscule performance improvement to not update the data dropdown on irrelevant AddData
messages.
Codecov Report
@@ Coverage Diff @@
## main #1176 +/- ##
=======================================
Coverage 76.37% 76.38%
=======================================
Files 87 87
Lines 6723 6724 +1
=======================================
+ Hits 5135 5136 +1
Misses 1588 1588
Continue to review full report at Codecov.
|
Not sure how I messed up the PR number in the changelog, good catch 😵 |
I don't get anymore the "ValueError: No data found with the label 'Subset 1'" when trying to fit the spectrum from a collapsed spatial subset! |
@camipacifici said on Slack: It still chokes when selecting a sub-subset (as expected right?). Can someone please confirm whether this is out of scope here or not? Thanks! |
It's not clear to me what use case is failing, I assume it's the not-actually-intended use case and is thus out of scope. Selecting a spectral subset to apply to the collapsed spectrum of a spatial subset works. |
…opdown with spatial subsets
Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>
c19df79
to
a9e4306
Compare
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.
seems like a straightforward fix for now. We can handle the subset styling and not allowing mixing spectral and spatial subsets in future work.
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.
Approving by proxy since Cami okayed this.
Fixes #1144, as well as a bug I noticed that doesn't have an issue, where the data dropdown menu wasn't properly getting populated with spatial subsets when they were created.
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.
trivial
label.CHANGES.rst
?