How to use the ovito.data.ase_to_pyiron function in ovito

To help you get started, we’ve selected a few ovito examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pyiron / pyiron / pyiron / atomistics / structure / atoms.py View on Github external
def ovito_to_pyiron(ovito_obj):
    """
    
    Args:
        ovito_obj: 

    Returns:

    """
    try:
        from ovito.data import ase_to_pyiron
        return ase_to_pyiron(ovito_obj.to_ase_atoms())
    except ImportError:
        raise ValueError('ovito package not yet installed')
github pyiron / pyiron / pyiron / atomistics / structure / atoms.py View on Github external
def ovito_to_pyiron(ovito_obj):
    """
    
    Args:
        ovito_obj: 

    Returns:

    """
    try:
        from ovito.data import ase_to_pyiron
        return ase_to_pyiron(ovito_obj.to_ase_atoms())
    except ImportError:
        raise ValueError('ovito package not yet installed')