Describe the bug
get_object_i_e_simplified and get_object_r_e_simplified were marked as staticmethod, due to a compiler warning. But due to code() and compile(), the compiler was not able to detect that this is NOT a staticmethod.
Expected behavior
return the object what the user is looking for instead of error
Error Code
File "databaseClasses.py", line 922, in get_object_r_e_simplified
candidate_datasets = eval(code)
File "<string>", line 1, in <module>
NameError: name 'self' is not defined
Desktop (please complete the following information):
Describe the bug get_object_i_e_simplified and get_object_r_e_simplified were marked as staticmethod, due to a compiler warning. But due to
code()
andcompile()
, the compiler was not able to detect that this is NOT a staticmethod.To Reproduce
Expected behavior return the object what the user is looking for instead of error
Error Code
Desktop (please complete the following information):