-
Notifications
You must be signed in to change notification settings - Fork 74
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 event handling for choosing config from launcher #2417
Conversation
3fc7e56
to
87264e0
Compare
@click="launch_config(config)" | ||
@click="launch_config({config: config})" |
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.
I have no idea how this ever worked... I'm guessing it was changed at one point but anyone testing with an editable install was not getting the latest version 🤷. Reviewers - you may need a fresh env to force the templates to be updated in your installation.
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
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.
Diff looks reasonable. Works when I tried this patch on Windows.
This works when I run |
@rosteen , that's weird. Worked for me when I tested with Imviz (load file and then click with Imviz the only thing enabled). I used Windows 10 + Chrome, but I did not have Notebook 7. More info: It was standalone and I installed using |
It's nothing to do with Notebook 7, I see the same thing with 6.x. Looks like it's actually Specviz-specific, I see Specviz failing to load with multiple input file (so it's not just a bad file), but I do actually see Imviz working on my machine as well with an i2d file selected. |
Maybe there's a bug in the way |
I think this is it, looks like |
You are right. I can reproduce this for Specviz only. |
Loading the same file directly in notebook using |
If I do this directly outside of voila, I get an error: >>> from jdaviz.core.launcher import open
>>> filename = "jw01236011001_03101_00001_mirifulong_x1d.fits"
>>> open(filename)
IORegistryError: Format is ambiguous - options are: JWST x1d, JWST x1d MIRI MRS This same file loads when I call |
I don't understand why the launcher insists on using jdaviz/jdaviz/core/data_formats.py Line 270 in 1577249
and not passing in the original input |
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.
Specviz now loads data successfully like the rest of the configs, approved. Thanks!
try: | ||
viz_helper.load_data(data, **kwargs) | ||
except IORegistryError: | ||
if filepath is None: | ||
raise | ||
viz_helper.load_data(filepath, **kwargs) |
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.
Not the prettiest thing I've ever seen but I don't hate it. And it works, which is the important thing!
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.
agreed... hopefully we can revert this down the road, but that may require some significant refactoring 🐱
Description
This pull request fixes the event handling on the click event in the launcher.
Note: v3.6 does not have this full version of the launcher, so this should not need to be backported.
Fixes #2414
Change log entry
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, maintainershould 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.
trivial
label.