Skip to content

Commit 1f8ece3

Browse files
authored
fix when results is None
1 parent 7af2dcf commit 1f8ece3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Funz/inst/Funz/Funz.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -856,10 +856,12 @@ def Funz_Run_results(runshell, out_filter):
856856
"state","duration","calc"
857857
])
858858
results = _JMapToPMap(jresults, out_filter)
859-
for io in _Funz_Last_run['output_expressions']+list(_Funz_Last_run['input_variables']):# Try to cast I/O values to R numeric
860-
try:
861-
results[io] = numpy.float_(results[io])
862-
except: pass
859+
ios = _Funz_Last_run['output_expressions']+list(_Funz_Last_run['input_variables'])
860+
if not ios is None:
861+
for io in ios:# Try to cast I/O values to R numeric
862+
try:
863+
results[io] = numpy.float_(results[io])
864+
except: pass
863865
_Funz_Last_run['results'] = results
864866

865867
return(results)

0 commit comments

Comments
 (0)