dscribe.utils.species module

Copyright 2019 DScribe developers

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

dscribe.utils.species.get_atomic_numbers(species)[source]

Given a list of chemical species either as a atomic numbers or chemical symbols, return the correponding list of ordered atomic numbers with duplicates removed.

Parameters

species (iterable of ints or strings) –

Returns

list of atomic numbers as an integer array.

Return type

np.ndarray

dscribe.utils.species.symbols_to_numbers(symbols)[source]

Transforms a set of chemical symbols into the corresponding atomic numbers.

Parameters

symbols (iterable) – List of chemical symbols.

Returns

Atomic numbers as an array of integers.

Return type

np.ndarray