-
Notifications
You must be signed in to change notification settings - Fork 210
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
Opaque meta module test - colorbar #762
Conversation
@jywarren Looking into this right now! |
@jywarren how about adding a new util function. Maybe mini-sequencer? This can also be used to create semi-meta modules(modules which use other modules inside them but not fully). And sequencer.createMetaModule can use this util function. Thoughts? |
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.
@jywarren I got it!! Actually the problem is that this is running the new sequencer in browser context and hence it tries to draw the steps for internal sequencer in the browser but runs into an exception, we need to set the inBrowser as false for internalSequencer. Working on a fix now!
Hi Jeff, Can you please allow edits from maintainers so I can push in the fix 😅 |
I am not able to push to jywarren:opaque |
Ah, we made a mistake with |
Yeah, I fixed it!! |
Do you want me to make a pull request on jywarren:opaque ?? |
Also the function is sequencer.loadImage and not addImage 😅 |
sure, and edits by maintainers is already allowed... sorry i am on the run at the moment, but can you add a test to demonstrate it working? That's a good idea anyways! Thanks Varun! |
I'll add the test and make the pr! This is working like a charm btw!! 🎉 |
I tried a fix but didn't get the colorbar module to appear. But very happy to take your fix, thank you! Agreed this is very fun! We can really make a generator function which essentially parameterizes everything shown in this example module; it should be pretty straightforward. |
Yeah I am drawing up a design right now! 😃 |
You can also just open a new PR building on these commits and close this one if you want. Thanks! Won't be able to check in for a few hours though. |
Integrating the generator into createMetaModule |
Oh okay will do! That's okay! 👍 |
Re #315 -- an attempt to refactor the colorbar module to be a fully opaque meta module - that is, a module which:
If this works (and it's not running yet -- I'm stuck for some reason because
draw()
is not executing... help!) then we may be able to create a generator for these, which is to say, a way to automate the creation of opaque meta modules given:@publiclab/is-reviewers take a look here, i got inspired and tried it out, but need a bit of help to debug my work!