|
@@ -63,6 +63,7 @@ class NeuronModule(object):
|
|
"""
|
|
"""
|
|
# get the child who called the class
|
|
# get the child who called the class
|
|
child_name = self.__class__.__name__
|
|
child_name = self.__class__.__name__
|
|
|
|
+ self.neuron_name = child_name
|
|
logger.debug("NeuronModule called from class %s with parameters: %s" % (child_name, str(kwargs)))
|
|
logger.debug("NeuronModule called from class %s with parameters: %s" % (child_name, str(kwargs)))
|
|
|
|
|
|
sl = SettingLoader.Instance()
|
|
sl = SettingLoader.Instance()
|
|
@@ -217,4 +218,9 @@ class NeuronModule(object):
|
|
oa = OrderListener(callback=callback)
|
|
oa = OrderListener(callback=callback)
|
|
oa.start()
|
|
oa.start()
|
|
|
|
|
|
-
|
|
|
|
|
|
+ def get_neuron_name(self):
|
|
|
|
+ """
|
|
|
|
+ Return the name of the neuron who call the mother class
|
|
|
|
+ :return:
|
|
|
|
+ """
|
|
|
|
+ return self.neuron_name
|