orsopy.utils.resolver_slddb module
Implementation of DensityResolver using SLD DB queries.
-
class orsopy.utils.resolver_slddb.ResolverSLDDB[source]
Bases: DensityResolver
-
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