pyxtal.representation module
- class pyxtal.representation.representation(x, smiles=None)[source]
Bases:
objectA class to handle the 1D representation of molecular crystal Works for Zprime > 1
- Parameters:
x – a list of [cell, site_1, site_2, …]
smiles – a list of [smile_1, smile_2, …]
- classmethod from_pyxtal(struc, standard=False)[source]
Initialize 1D rep. from the pyxtal object
- Parameters:
struc – pyxtal object
- classmethod from_string(inputs, smiles, composition=None)[source]
Initialize 1D rep. from the string
- Parameters:
inputs – input string
smiles – list of smiles
- to_pyxtal(smiles=None, composition=None, molecules=None)[source]
Export the pyxtal structure
- Parameters:
smiles – list of smiles
composition – list of composition
molecules – optional list of pyxtal_molecule objects aligned with smiles
- class pyxtal.representation.representation_atom(x)[source]
Bases:
objectA class to handle the 1D representation of atomic crystal Works for Zprime > 1
- Parameters:
x – a list of [cell, site_1, site_2, …]
- classmethod from_pyxtal(struc, standard=True)[source]
Initialize 1D rep. from the pyxtal object
- Parameters:
struc – pyxtal object