ArgumentInterpreter¶
-
class
support.arguments.
ArgumentInterpreter
¶ Bases:
object
Interprets the argument provided as the specied type of iterable
If a list is expected, a single value is embedded in a list. A tuple is converted to a list. An nparray is flattened and converted to a list:
a = ArgumentInterpreter() l = a.as_list(thing)
Note
As needed, we will as ‘as_nparray’, ‘as_tuple’
Methods Summary
as_list
(argument)Methods Documentation
-
as_list
(argument)¶
-