mirror of
https://github.com/ejeanboris/MDAF.git
synced 2025-04-29 20:12:37 +00:00
numpy nan representation fixed
This commit is contained in:
@ -172,7 +172,7 @@ def representfunc(funcpath, forced = False):
|
|||||||
characs = re.findall(regex, funcmodule.main.__doc__)
|
characs = re.findall(regex, funcmodule.main.__doc__)
|
||||||
results = {}
|
results = {}
|
||||||
for charac in characs:
|
for charac in characs:
|
||||||
results[charac[0]] = eval(charac[1])
|
results[charac[0]] = eval(charac[1].replace('nan','NaN'))
|
||||||
|
|
||||||
# Automatically generate the representation if the docstrings did not return anything
|
# Automatically generate the representation if the docstrings did not return anything
|
||||||
if not ('Represented' in results):
|
if not ('Represented' in results):
|
||||||
|
Reference in New Issue
Block a user