plafer / Tissue.jl

Framework for building computational graphs that process any real time data source.
https://plafer.github.io/Tissue.jl/stable/
MIT License
2 stars 1 forks source link

Allow the creation of a parameterized graph #4

Open plafer opened 3 years ago

plafer commented 3 years ago

There is currently no way to dynamically change the parameters of calculators in a graph (e.g. pass as command line argument). The user should be able to name parameters in @graph, and use them in the body.

A potential syntax would be:

@graph MyGraph(param1, param2) begin
    @calculator c = SomeCalculator(@param param1, @param param2)
    ...
end

We might also want optional and/or keyword arguments too. And multiple constructors.