Commits

Chris Mutel committed 948c921

Filling out LCA report

  • Participants
  • Parent commits aecb2a0

Comments (0)

Files changed (2)

         lca.lci()
         lca.lcia()
         rt, rb = lca.reverse_dict()
-        context["treemap_data"] = json.dumps(ContributionAnalysis().d3_treemap(
+        ca = ContributionAnalysis()
+        context["treemap_data"] = json.dumps(ca.d3_treemap(
             lca.characterized_inventory.data, rb, rt))
+        context["ia_score"] = "%.2g" % lca.score
+        context["ia_unit"] = methods[method]["unit"]
+        context["ia_method"] = ": ".join(method)
+        context["fu"] = [(ca.get_name(k), "%.2g" % v, ca.db_names[k[0]][k][
+            "unit"]) for k, v in process.iteritems()]
         return render_template("lca.html", **context)
     else:
         return "No parameters"

bw2ui/web/templates/base.html

 	{% block extrahead %}{% endblock %}
 </head>
 <body>
-	{% block body %}{% endblock %}
+	<div class="container">{% block body %}{% endblock %}</div>
 </body>
 </html>