Chris Mutel avatar Chris Mutel committed b949747

Add extra fields for production processes

Comments (0)

Files changed (1)

bw2data/database.py

                 count += 1
             if not production_found and data[key]["type"] == "process":
                 # Add amount produced for each process (default 1)
-                arr[count] = (0, mapping[key], mapping[key],
+                arr[count] = (
+                    0, mapping[key], mapping[key],
                     geomapping[data[key].get("location", "GLO") or "GLO"],
                     MAX_INT_32, MAX_INT_32, TYPE_DICTIONARY["production"],
-                    1, np.NaN, np.NaN, np.NaN, False)
+                    1, np.NaN, np.NaN, np.NaN, np.NaN, np.NaN, False
+                )
                 count += 1
 
         # The array is too big, because it can include a default production
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.