janushendersonassetallocation / loman

Loman is a Python library designed to allow quantitative researchers to control complex live updating calculation processes
BSD 3-Clause "New" or "Revised" License
95 stars 13 forks source link

Allow args and kwds to take constant values #10

Closed edparcell closed 7 years ago

edparcell commented 7 years ago

It would be nice to be able to populate parameters with fixed values, rather than having to source them from a node. So, for example, the code below would call f with x as the value taken from input_node, but with y always set as "FOO":

def f(x,y):
   ...
comp.add_node('a_node', f, args=['input_node', C("FOO")])