| 27 | } |
| 28 | |
| 29 | void DescriptorGlobal::create( |
| 30 | py::array_t<double> out, |
| 31 | py::array_t<double> positions, |
| 32 | py::array_t<int> atomic_numbers, |
| 33 | py::array_t<double> cell, |
| 34 | py::array_t<bool> pbc |
| 35 | ) |
| 36 | { |
| 37 | // Extend system if periodicity is requested. |
| 38 | auto pbc_u = pbc.unchecked<1>(); |
| 39 | bool is_periodic = this->periodic && (pbc_u(0) || pbc_u(1) || pbc_u(2)); |
| 40 | if (is_periodic) { |
| 41 | ExtendedSystem system_extended = extend_system(positions, atomic_numbers, cell, pbc, this->cutoff); |
| 42 | positions = system_extended.positions; |
| 43 | atomic_numbers = system_extended.atomic_numbers; |
| 44 | } |
| 45 | this->create(out, positions, atomic_numbers); |
| 46 | } |
| 47 | |
| 48 | void DescriptorGlobal::create( |
| 49 | py::array_t<double> out, |
no test coverage detected