Skip to content

Commit

Permalink
Correct fields for Brightway2 activity export
Browse files Browse the repository at this point in the history
  • Loading branch information
cmutel committed Sep 8, 2016
1 parent 3dedec0 commit e6a60c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ocelot/io/brightway2.py
Expand Up @@ -73,6 +73,7 @@ class Brightway2Converter:
Finally, we only include some elements of the activity datasets themselves. The following keys from activity datasets are included:
* name
* code
* location
* economic scenario
* start date
Expand Down Expand Up @@ -101,7 +102,7 @@ def translate_activity(ds, database_name):
'to environment': Brightway2Converter.translate_biosphere_exchange
}
FIELDS = ("code", "economic scenario", "end date", "filepath",
"location", "name", "start date", "technology level",
"location", "name", "start date", "technology level",
'dataset author', 'data entry')
data = {field: ds[field] for field in FIELDS}
data['database'] = database_name
Expand Down
3 changes: 2 additions & 1 deletion ocelot/transformations/cutoff/wastes.py
Expand Up @@ -81,7 +81,8 @@ def rename_recyclable_content_exchanges(data):
def create_new_recycled_content_dataset(ds, exc):
"""Create a new dataset that consume recycled content production."""
common = ('access restricted', 'economic scenario', 'end date',
'filepath', 'id', 'start date', 'technology level')
'filepath', 'id', 'start date', 'technology level',
'dataset author', 'data entry')
obj = {
"exchanges": [{
'amount': 1,
Expand Down

0 comments on commit e6a60c6

Please sign in to comment.