Source code for icolos.utils.enums.compound_enums
[docs]class CompoundTagsEnum:
CONFORMER_ENERGY_TAG = "conformer_energy"
FORMAL_CHARGE_TAG = "formal_charge"
# try to find the internal value and return
def __getattr__(self, name):
if name in self:
return name
raise AttributeError
# prohibit any attempt to set any values
def __setattr__(self, key, value):
raise ValueError("No changes allowed.")
[docs]class CompoundContainerEnum:
# try to find the internal value and return
def __getattr__(self, name):
if name in self:
return name
raise AttributeError
# prohibit any attempt to set any values
def __setattr__(self, key, value):
raise ValueError("No changes allowed.")
[docs]class EnumerationContainerEnum:
# try to find the internal value and return
def __getattr__(self, name):
if name in self:
return name
raise AttributeError
# prohibit any attempt to set any values
def __setattr__(self, key, value):
raise ValueError("No changes allowed.")
[docs]class ConformerContainerEnum:
EXTRA_DATA_COSMOFILE = "cosmo_file"
EXTRA_DATA_COORDFILE = "coord_file"
# try to find the internal value and return
def __getattr__(self, name):
if name in self:
return name
raise AttributeError
# prohibit any attempt to set any values
def __setattr__(self, key, value):
raise ValueError("No changes allowed.")