#
# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-import numpy
-import logging
+import numpy, logging, codecs, pickle
+def loads( data ):
+ return pickle.loads(codecs.decode(data.encode(), "base64"))
logging.info("ComputationFunctionNode: Begin")
# ==============================================================================
# Input data and parameters: all is in the required input variable
method = ""
for param in computation["specificParameters"]:
if param["name"] == "method":
- method = param["value"]
+ method = loads(param["value"])
logging.info("ComputationFunctionNode: Found method is \'%s\'"%method)
#
# Recovering the current control state X
#
# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-import numpy
import time
-import logging
+import numpy, logging, codecs, pickle
+def loads( data ):
+ return pickle.loads(codecs.decode(data.encode(), "base64"))
logging.info("ComputationFunctionNode: Begin")
# ==============================================================================
# Input data and parameters: all is in the required input variable
method = ""
for param in computation["specificParameters"]:
if param["name"] == "method":
- method = param["value"]
+ method = loads(param["value"])
logging.info("ComputationFunctionNode: Found method is \'%s\'"%method)
#
# Recovering the current control state X
# ==============================================================================
#
import Physical_simulation_functions
-import numpy, logging
+import numpy, logging, codecs, pickle
+def loads( data ):
+ return pickle.loads(codecs.decode(data.encode(), "base64"))
#
# -----------------------------------------------------------------------
# SALOME input data and parameters: all information are the required input
method = ""
for param in computation["specificParameters"]:
if param["name"] == "method":
- method = param["value"]
+ method = loads(param["value"])
logging.info("ComputationFunctionNode: Found method is \'%s\'"%method)
#
# Loading the H operator functions from external definitions