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

Module shorthand #9

Open
pbloem opened this issue Aug 2, 2013 · 1 comment
Open

Module shorthand #9

pbloem opened this issue Aug 2, 2013 · 1 comment

Comments

@pbloem
Copy link
Member

pbloem commented Aug 2, 2013

For quick modules, with a single output, it would be nice to be able to use a shorthand. Something like the following:

module:
  name: big complex module
  inputs:
    dataset: smooth(csv('C:\data\dataset.csv), 0.3)

Which would be equivalent to

- module:
    name: csv
    inputs:
      file: 'C:\data\data.csv'

- module:
    name: smooth
    inputs:
      data: csv.result
      smoothing factor: 0.3

- module:
    name: big complex module
    inputs:
      dataset: smooth.result

This should be thought out carefully on the design level before implementation.

@pbloem
Copy link
Member Author

pbloem commented Aug 20, 2013

Maybe like this...

module:
  name: big complex module
  inputs:
    dataset: !inline
       smooth: 
          data: !inline
             csv: 
               file:'C:\data\dataset.csv' 
          smoothing factor: 0.3

It's a little more verbose, but it'll be easier to parse, I think.

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

No branches or pull requests

1 participant