soprano.optional#
optional.py
Contains imports for libraries considered optional, and decorators to include checks for them.
Functions
Return |
|
Return |
|
Return |
|
|
|
|
|
|
Decorator that injects the spglib module into a function. |
- soprano.optional.has_symmetry_backend()[source]#
Return
Trueif at least one symmetry backend is available.- Return type:
bool
- soprano.optional.requireSpglib(import_name='spglib')[source]#
Decorator that injects the spglib module into a function.
Deprecated since version Use:
soprano.properties.symmetry.backend.get_symmetry_dataset()withbackend="spglib"(or"auto") instead. This decorator will be removed in a future release.