nico %!s(int64=7) %!d(string=hai) anos
pai
achega
2165b38d1d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      kalliope/core/NeuronLauncher.py

+ 2 - 0
kalliope/core/NeuronLauncher.py

@@ -71,6 +71,8 @@ class NeuronLauncher:
         # the final dict is added into a key "kalliope_memory" to not override existing keys loaded form the order
         memory_dict = dict()
         memory_dict["kalliope_memory"] = Cortex.get_memory()
+        if loaded_parameters is None:
+            loaded_parameters = dict()  # instantiate an empty dict in order to be able to add memory in it
         loaded_parameters.update(memory_dict)
         if isinstance(neuron_parameters, str) or isinstance(neuron_parameters, six.text_type):
             # replace bracket parameter only if the str contains brackets