Commits

Chris Mutel committed d7af707

0.1.1: Treemap doesn't recurse to biosphere flows

  • Participants
  • Parent commits 40f71d2

Comments (0)

Files changed (2)

bw2analyzer/contribution.py

         total = np.abs(matrix).sum()
         processes = self.top_processes(matrix, limit=limit,
             limit_type=limit_type)
-        data = {"name": "LCA result", "children": []}
+        data = {"name": "LCA result", "children": [], "size": total}
         for dummy, tech_index in processes:
             name = self.get_name(rev_techno[tech_index])
             this_score = np.abs(matrix[:, tech_index].toarray().ravel()).sum()
                     this_score - children_score})
             data["children"].append({
                 "name": name,
-                "children": children
+                "size": this_score,
+                # "children": children
                 })
         return data
 
 
 setup(
   name='bw2analyzer',
-  version="0.1",
+  version="0.1.1",
   packages=["bw2analyzer"],
   author="Chris Mutel",
   author_email="cmutel@gmail.com",