Commits

Chris Mutel  committed bac7d00

Fix supply-use vector to have negative values when rebuilding Tech matrices

  • Participants
  • Parent commits 3f9c56d

Comments (0)

Files changed (1)

File bw2calc/lca.py

     def rebuild_technosphere_matrix(self, vector):
         self.technosphere_matrix = MatrixBuilder.build_matrix(
             self.tech_params, self.technosphere_dict, self.technosphere_dict,
-            "row", "col", new_data=vector)
+            "row", "col",
+            new_data=TBMBuilder.fix_supply_use(self.tech_params, vector)
+        )
 
     def rebuild_biosphere_matrix(self, vector):
         self.biosphere_matrix = MatrixBuilder.build_matrix(