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

A Semantic Issue #48

Closed
ccpandhare opened this issue Jul 8, 2017 · 2 comments
Closed

A Semantic Issue #48

ccpandhare opened this issue Jul 8, 2017 · 2 comments
Labels

Comments

@ccpandhare
Copy link
Collaborator

How addSteps, removeSteps, etc. work currently :
If no image is specified in the addSteps or removeSteps arguments, then the operation is performed on all images.

Recently we allowed chaining of methods which enables us to do this:

    sequencer.loadImage('image.jpg').addSteps('ndvi-red').run()

As you can see, no image is specified with addSteps. This means that ndvi-red will be added to ALL images present in the sequencer.

What should be done:

  • If chained, apply the steps only to the image which is being chained by storing which steps are being chained and the image associated in the object returned by these methods?

or

  • Force the user to specify the image.
@ccpandhare ccpandhare added this to In Progress in Image Sequencer GSoC Project Jul 8, 2017
@ccpandhare ccpandhare moved this from In Progress to Bugs / Clarifications in Image Sequencer GSoC Project Jul 8, 2017
@jywarren
Copy link
Member

jywarren commented Jul 8, 2017 via email

@ccpandhare
Copy link
Collaborator Author

I think you are right. We should cache the state only if it is required.

Also I have created a pull request which solves the issue I have mentioned above #53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants