Révision 587dca22
b/modules/formats.py | ||
---|---|---|
61 | 61 |
the label of the custom element and the second one the symbol of the |
62 | 62 |
reference one (traditional present on the periodic table). |
63 | 63 |
@return: |
64 |
""" |
|
64 |
""" # TODO Enable special atoms for rdkit
|
|
65 | 65 |
import numpy as np |
66 | 66 |
from ase import data |
67 | 67 |
for i, pair in enumerate(symbol_pairs): |
... | ... | |
94 | 94 |
@param spec_atms: List of tuples containing pairs of new/traditional |
95 | 95 |
chemical symbols. |
96 | 96 |
@return: an object the required library can work with. |
97 |
""" |
|
97 |
""" # TODO POSCAR/CONTCAR files
|
|
98 | 98 |
import ase.io |
99 | 99 |
from ase.io.formats import filetype |
100 | 100 |
|
b/modules/screening.py | ||
---|---|---|
170 | 170 |
err = "'idxs' must be either an int or a list" |
171 | 171 |
logger.error(err) |
172 | 172 |
raise ValueError(err) |
173 |
return np.round(norm_vec, 2)/np.linalg.norm(np.round(norm_vec, 2)) |
|
173 |
norm_vec = np.round(norm_vec, 2) / np.linalg.norm(np.round(norm_vec, 2)) |
|
174 |
logger.info(f"The perpendicular vector to the surface at site '{idxs}' is " |
|
175 |
f"{norm_vec}") |
|
176 |
return norm_vec |
|
174 | 177 |
|
175 | 178 |
|
176 | 179 |
def add_adsorbate(slab, adsorbate, site_coord, ctr_coord, height, offset=None, |
Formats disponibles : Unified diff