quintel / refinery

Calculates node demands and edge shares for sparse energy graphs.
2 stars 0 forks source link

Generate list of converters and their demands #47

Closed wouterterlouw closed 10 years ago

wouterterlouw commented 10 years ago

The static.yml file that is result of refinery, contains the calculated demand of the converters. I would like to have a list with just the converter keys and the demands:

key, demand
agriculture_burner_crude_oil, 15.866659
...

It can be made with creative find-and-replace... however, to do that multiple times... ;)

@antw Is there a way to converter the yml file to a csv file, just with those two attributes?

antw commented 10 years ago

@wouterterlouw How soon do you need this?

wouterterlouw commented 10 years ago

It is especially useful in the coming day. I asked @ChaelKruip to write a script for this. So assigning @ChaelKruip

wouterterlouw commented 10 years ago

Thanks @ChaelKruip and @antw.

The script can be executed in the etengine folder using:

bundle exec rake generate_key_demand_file path=tmp/static.yml

where path=... refers to the location of the static.yml file. A text file will be generation in the tmp directory.