This repository has been archived by the owner on Nov 10, 2020. It is now read-only.
Separate production units from product names #1370
Labels
data-mgmt
Use this label for adding and/or updating data on the site. Also can be used for data management too
Milestone
Right now the units are included in the product name, so we see stuff like "Oil (bbl)" all over the place. In the new state pages (and in our intermediate database) we should split the units from each product so that we can pull them out into the Jekyll data and display them on different places, e.g. in table headings or in text descriptions. Here are two ways of doing it:
Always have a
units
field alongside production numbers, e.g.This would mean needing to split those fields up before they're put into the database, but that should be pretty simple.
Maintain a separate dictionary for units of each product:
This has one little problem: some products, such as Geothermal, are actually measured in multiple units, e.g. "Geothermal - Direct Utilization, Millions of BTUs" and "Geothermal - Electrical Generation, Other".
The text was updated successfully, but these errors were encountered: