Hello,
are there some examples on how I could use param for numpy arrays?
I have some code where I'm validating the input manually:
https://github.com/JoyMonteiro/spyRaTE/blob/b943aee2cd2afdb13b6703c8f2ea8ff1b8b8b203/spyrate/rte/rte_interface.py#L712-L734
esp. the assert_shapes code. Is this something I could do more elegantly with Param?
The traittypes project seems to allow something like this, but not sure how Param and traittypes compare, or which I should prefer.
TIA,
Joy
Hello,
are there some examples on how I could use param for numpy arrays?
I have some code where I'm validating the input manually:
https://github.com/JoyMonteiro/spyRaTE/blob/b943aee2cd2afdb13b6703c8f2ea8ff1b8b8b203/spyrate/rte/rte_interface.py#L712-L734
esp. the
assert_shapescode. Is this something I could do more elegantly with Param?The
traittypesproject seems to allow something like this, but not sure how Param and traittypes compare, or which I should prefer.TIA,
Joy