pyiron.base.generic.util module¶
Utility functions used in pyiron.
-
pyiron.base.generic.util.
static_isinstance
(obj, obj_type)[source]¶ A static implementation of isinstance() - instead of comparing an object and a class, the object is compared to a string, like ‘pyiron.base.job.generic.GenericJob’ or a list of strings.
- Parameters
obj – the object to check
obj_type (str/list) – object type as string or a list of object types as string.
- Returns
[True/False]
- Return type
bool