Closed mbredif closed 7 years ago
I am not sure I understand. Do you mind elaborating a bit?
Instead of hard coding 'transfo_type': 1,
, you could do 'transfo_type': transfo_type['affine'],
where transfo_type
is a dictionnary populated using /transfos/types/ endpoint of the li3ds api.
Ok.
@mbredif look at http://api.li3ds.io/transfos/types/. Transfo types have no names. This means that I have no key for the transfo_type
dict mapping "transfo type names" (e.g. "affine") to "transfo type id". Do you agree that a "name" is required there as well?
I think "func_name" should be renamed as "name". You can use func_name in the meantime.
Oh ok, I thought the func signature did not include the actual func name. But I understand that it does… Thanks.
Transfo types are currently hard coded
This could be centralised into a python object so that the transfo_type id is more explicit (by looking up transfo_type id by name), and so that this object could be populated dynamically using http://api.li3ds.io/transfos/types/.