Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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')
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')