orsopy.utils.resolver_slddb module
Implementation of DensityResolver using SLD DB queries.
-
class orsopy.utils.resolver_slddb.ResolverSLDDB[source]
Bases: MaterialResolver
-
resolve_item(name)[source]
Optional method for resolving names directly ot Layer or SubStack
compatible class.
Returns such object or None if name cannot be resolved.
-
resolve_formula(formula)[source]
Resolves the density of a given chemical formula from the
database. If not possible raises ValueError.
The returned value is the number density in 1/nm³.
- Return type:
float
-
resolve_elemental(formula)[source]
Estimates the density of a material from its individual elements
by averaging the bulk element densities.
The returned value is the number density in 1/nm³.
- Return type:
float