the serveur will be in maintenance mode Thursday February 25 from 7:00 to 12:00 ( git and registry will be unreacheable)

Commit 8bc30d42 authored by Médéric Boquien's avatar Médéric Boquien

Convert individually each item of the input list as doing so on an the entire...

Convert individually each item of the input list as doing so on an the entire array generates an error if the expected type is int and the provided values are in floats.
parent 01f42ba7
......@@ -74,7 +74,7 @@ def is_cigale_list(inobject, dtype='float', minvalue=None, maxvalue=None,
outobject = inobject
try: # We convert to an array as it is more convenient for tests
outobject = np.asarray(outobject, dtype)
outobject = np.array([conv_type(item) for item in outobject])
except ValueError:
raise vdt.VdtValueError(inobject)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment