mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
test
This commit is contained in:
parent
b1501d94da
commit
3731f7ef70
@ -21,7 +21,7 @@ class Spicemanip():
|
|||||||
|
|
||||||
def __call__(self, inputs, task, output_type='default'):
|
def __call__(self, inputs, task, output_type='default'):
|
||||||
|
|
||||||
if hasattr(self, task):
|
if hasattr(self, str(task)):
|
||||||
raise Exception(
|
raise Exception(
|
||||||
str(self.task) + " is not a valid spicemanip function.")
|
str(self.task) + " is not a valid spicemanip function.")
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ class Spicemanip():
|
|||||||
|
|
||||||
def core_class_cleanup(self):
|
def core_class_cleanup(self):
|
||||||
for classitem in ["inputs", "task", "output_type"]:
|
for classitem in ["inputs", "task", "output_type"]:
|
||||||
if hasattr(self, classitem):
|
if hasattr(self, str(classitem)):
|
||||||
del classitem
|
del classitem
|
||||||
|
|
||||||
def core_input_handler(self):
|
def core_input_handler(self):
|
||||||
@ -118,7 +118,7 @@ class Spicemanip():
|
|||||||
str(self.task).replace("<", ""))
|
str(self.task).replace("<", ""))
|
||||||
|
|
||||||
elif hasattr(self,
|
elif hasattr(self,
|
||||||
self.task) and not str(self.task).startswith("core_"):
|
str(self.task)) and not str(self.task).startswith("core_"):
|
||||||
self.outputs = eval('self.' + str(self.task) + '(inputs)')
|
self.outputs = eval('self.' + str(self.task) + '(inputs)')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user