From 05dfd3c688d7541e3ae54dc53ccae5e02417a0c5 Mon Sep 17 00:00:00 2001 From: Remi Ehounou Date: Mon, 24 May 2021 00:48:56 -0400 Subject: [PATCH] numpy nan representation fixed --- MDAF/MDAF.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MDAF/MDAF.py b/MDAF/MDAF.py index f599c72..2514e02 100644 --- a/MDAF/MDAF.py +++ b/MDAF/MDAF.py @@ -172,7 +172,7 @@ def representfunc(funcpath, forced = False): characs = re.findall(regex, funcmodule.main.__doc__) results = {} 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 if not ('Represented' in results):