Révision 8d08beb4
b/modules/formats.py | ||
---|---|---|
42 | 42 |
from xyz2mol import read_xyz_file, xyz2mol |
43 | 43 |
atoms, charge, xyz_coordinates = read_xyz_file(coord_file) |
44 | 44 |
rd_mol_obj = xyz2mol(atoms, xyz_coordinates, charge=charge) |
45 |
logger.info(conv_info)
|
|
45 |
logger.debug(conv_info)
|
|
46 | 46 |
return rd_mol_obj |
47 | 47 |
elif filetype(coord_file) == 'mol': |
48 | 48 |
from rdkit.Chem import MolFromMolFile |
49 |
logger.info(conv_info)
|
|
49 |
logger.debug(conv_info)
|
|
50 | 50 |
return MolFromMolFile(coord_file, removeHs=False) |
51 | 51 |
|
52 | 52 |
if requirement == 'ase': |
53 | 53 |
import ase.io |
54 |
logger.info(conv_info)
|
|
54 |
logger.debug(conv_info)
|
|
55 | 55 |
return ase.io.read(coord_file) |
Formats disponibles : Unified diff