-
Notifications
You must be signed in to change notification settings - Fork 209
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
Non-expanding, fully opaque meta modules #315
Comments
1 similar comment
@jywarren this is a very interesting idea and yes I don't think we can do this before the end of soc but I will surely work on this afterwards. |
This will be very interesting to implement |
agreed, very interesting! And that's great to hear. Think of all the
excellent architectural choices we made earlier in the year that will allow
us to do this! 👏👏👏
…On Sat, Aug 4, 2018 at 12:51 PM Varun Gupta ***@***.***> wrote:
This will be very interesting to implement
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#315 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJwMoSgszC_JuzEpKHDWrr66cSW35ks5uNdDpgaJpZM4VvDx0>
.
|
I would like to give this issue a try. Can I work on this issue? |
this one is a deep one! But @tech4GT has said he thinks it will be possible
with relatively minimal changes. Perhaps he can guide a bit! But YES this
would be amazing!
…On Mon, Oct 1, 2018 at 10:45 AM Mridul97 ***@***.***> wrote:
I would like to give this issue a try. Can I work on this issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#315 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ7QhcBD7Rnjyn26uKswZxisQiK9dks5ugipsgaJpZM4VvDx0>
.
|
Actually I've been working on this one already. I hope you don't mind @Mridul97 |
No, not at all! |
Thanks! |
Hi @tech4GT would you mind sharing any work you've done so far in a PR, or maybe outlining a couple steps towards this goal? I'd love to see progress made on it and if we could do it in parts, even better! |
For example, would you consider simply building a module which starts a unique separate instance of ImageSequencer inside itself, passes in a string, and then replies with the output? |
@jywarren Sure, I'll open a PR today! |
To make creating these new meta-modules easier, 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:
This could take the form: module.exports = require('generateMetaModule')(function mapOptions(options) {
var defaults = require('./../../util/getDefaults.js')(require('./info.json')); // standard defaults fetch
options.x = options.x || defaults.x;
options.y = options.y || defaults.y;
options.colormap = options.colormap || defaults.colormap;
options.h = options.h || defaults.h;
// map above defaults into internal steps options:
return [
{ 'name': 'gradient', 'options': {} },
{ 'name': 'colormap', 'options': { colormap: options.colormap } },
{ 'name': 'crop', 'options': { 'y': 0, 'h': options.h } },
{ 'name': 'overlay', 'options': { 'x': options.x, 'y': options.y, 'offset': -4 } }
];
}); |
@jywarren Let us first finalize the structure of the meta module itself, after that I'll integrate it into createMetaModule function! We can use a flag like options.opaque. |
So I was able to figure out 2 ways in which circular dependencies can occur
I will add to this list if I am able to think of more. Thoughts? |
The new meta modules is very powerful! You can select one like
NDVI-Colormap
, and it expands to:https://publiclab.github.io/image-sequencer/examples/#steps=ndvi(filter:red),colormap(colormap:default)
But, right now, if you want to use a meta module like
NDVI-Colormap
, you can't just use it in a string like:https://publiclab.github.io/image-sequencer/examples/#steps=ndvi-colormap
Module NDVI-Colormap not found.
A modification of meta-modules would be great, where:
Then you could modify the internals of a meta module -- say, to optimize it -- and nobody would ever know!
@tech4GT this may be too much to accomplish before the end of SoC, but I'm interested to hear your thoughts!
The text was updated successfully, but these errors were encountered: