Source code for bw2calc.errors

[docs] class BW2CalcError(Exception): """Base class for bw2calc errors""" pass
[docs] class OutsideTechnosphere(BW2CalcError): """The given demand array activity is not in the technosphere matrix""" pass
[docs] class EfficiencyWarning(RuntimeWarning): """Least squares is much less efficient than direct computation for square, full-rank matrices""" pass
[docs] class NoSolutionFound(UserWarning): """No solution to set of linear equations found within given constraints""" pass
[docs] class NonsquareTechnosphere(BW2CalcError): """The given data do not form a square technosphere matrix""" pass
[docs] class MalformedFunctionalUnit(BW2CalcError): """The given functional unit cannot be understood""" pass
[docs] class EmptyBiosphere(BW2CalcError): """Can't do impact assessment with no biosphere flows""" pass
[docs] class AllArraysEmpty(BW2CalcError): """Can't load the numpy arrays if all of them are empty""" pass
[docs] class NoArrays(BW2CalcError): """No arrays for given matrix""" pass
[docs] class InconsistentGlobalIndex(BW2CalcError): """LCIA matrices are diagonal, and use the ``col`` field for regionalization. If multiple LCIA datapackages are present, they must use the same value for ``GLO``, the global location, in order for filtering for site-generic LCIA to work correctly.""" pass
[docs] class MultipleValues(BW2CalcError): """Multiple values are present, but only one value is expected""" pass
[docs] class InconsistentLCIA(BW2CalcError): """Provided weighting or normalization doesn't fit the impact category""" pass