bw2calc.errors#
Exceptions#
Can't load the numpy arrays if all of them are empty |
|
Base class for bw2calc errors |
|
The database dependency graph contains a cycle, making partitioned Monte Carlo impossible |
|
The functional unit demand points to an activity in a static database. |
|
Least squares is much less efficient than direct computation for square, full-rank |
|
Can't do impact assessment with no biosphere flows |
|
LCIA matrices are diagonal, and use the |
|
Provided weighting or normalization doesn't fit the impact category |
|
The given functional unit cannot be understood |
|
A datapackage is missing the 'database_dependencies' metadata field required for |
|
Multiple values are present, but only one value is expected |
|
No arrays for given matrix |
|
No solution to set of linear equations found within given constraints |
|
The given data do not form a square technosphere matrix |
|
The given demand array activity is not in the technosphere matrix |
|
A database marked as static has a dependency on a database marked as stochastic. |
Module Contents#
- exception bw2calc.errors.AllArraysEmpty[source]#
Bases:
BW2CalcErrorCan’t load the numpy arrays if all of them are empty
Initialize self. See help(type(self)) for accurate signature.
- exception bw2calc.errors.BW2CalcError[source]#
Bases:
ExceptionBase class for bw2calc errors
Initialize self. See help(type(self)) for accurate signature.
- exception bw2calc.errors.CyclicDependencyGraph[source]#
Bases:
BW2CalcErrorThe database dependency graph contains a cycle, making partitioned Monte Carlo impossible
Initialize self. See help(type(self)) for accurate signature.
- exception bw2calc.errors.DemandInStaticDatabase[source]#
Bases:
BW2CalcErrorThe functional unit demand points to an activity in a static database. The demand must be in the stochastic (foreground) system.
Initialize self. See help(type(self)) for accurate signature.
- exception bw2calc.errors.EfficiencyWarning[source]#
Bases:
RuntimeWarningLeast squares is much less efficient than direct computation for square, full-rank matrices
Initialize self. See help(type(self)) for accurate signature.
- exception bw2calc.errors.EmptyBiosphere[source]#
Bases:
BW2CalcErrorCan’t do impact assessment with no biosphere flows
Initialize self. See help(type(self)) for accurate signature.
- exception bw2calc.errors.InconsistentGlobalIndex[source]#
Bases:
BW2CalcErrorLCIA matrices are diagonal, and use the
colfield for regionalization. If multiple LCIA datapackages are present, they must use the same value forGLO, the global location, in order for filtering for site-generic LCIA to work correctly.Initialize self. See help(type(self)) for accurate signature.
- exception bw2calc.errors.InconsistentLCIA[source]#
Bases:
BW2CalcErrorProvided weighting or normalization doesn’t fit the impact category
Initialize self. See help(type(self)) for accurate signature.
- exception bw2calc.errors.MalformedFunctionalUnit[source]#
Bases:
BW2CalcErrorThe given functional unit cannot be understood
Initialize self. See help(type(self)) for accurate signature.
- exception bw2calc.errors.MissingDatabaseDependencies[source]#
Bases:
BW2CalcErrorA datapackage is missing the ‘database_dependencies’ metadata field required for partitioned Monte Carlo. Reprocess the database with bw2data >= 4.7.
Initialize self. See help(type(self)) for accurate signature.
- exception bw2calc.errors.MultipleValues[source]#
Bases:
BW2CalcErrorMultiple values are present, but only one value is expected
Initialize self. See help(type(self)) for accurate signature.
- exception bw2calc.errors.NoArrays[source]#
Bases:
BW2CalcErrorNo arrays for given matrix
Initialize self. See help(type(self)) for accurate signature.
- exception bw2calc.errors.NoSolutionFound[source]#
Bases:
UserWarningNo solution to set of linear equations found within given constraints
Initialize self. See help(type(self)) for accurate signature.
- exception bw2calc.errors.NonsquareTechnosphere[source]#
Bases:
BW2CalcErrorThe given data do not form a square technosphere matrix
Initialize self. See help(type(self)) for accurate signature.
- exception bw2calc.errors.OutsideTechnosphere[source]#
Bases:
BW2CalcErrorThe given demand array activity is not in the technosphere matrix
Initialize self. See help(type(self)) for accurate signature.
- exception bw2calc.errors.StaticDependsOnStochastic[source]#
Bases:
BW2CalcErrorA database marked as static has a dependency on a database marked as stochastic. Static databases must only depend on other static databases.
Initialize self. See help(type(self)) for accurate signature.