stfc-aeg / odin-lpdpower

Prototype of ODIN framework
0 stars 0 forks source link

DataTree allows arbitrary injection of parameters #1

Closed timcnicholls closed 8 years ago

timcnicholls commented 8 years ago

The DataTree method allows arbitrary injection of parameters into existing trees at non-callable leaf nodes, when using setData to update one or more parameters. This allows, e.g. the value of an integer parameter to be overwritten with a dict, rendering subsequent accesses to that parameter useless. Leaf nodes, if non-callable, must have their new value type-checked against their current value, otherwise an exception should be raised.