Commits

Chris Mutel committed 598be1e

Check demand vector type

  • Participants
  • Parent commits 018e58f

Comments (0)

Files changed (1)

File bw2calc/lca.py

 class LCA(object):
     def __init__(self, demand, method=None, config=None):
         self.config = config or base_config
+        if isinstance(demand, (basestring, tuple, list)):
+            raise ValueError("Demand must be a dictionary")
         self.demand = demand
         self.method = method
         self.databases = self.get_databases()