Breakthrough-Energy / PreREISE

Generate input data for scenario framework
https://breakthrough-energy.github.io/docs/
MIT License
20 stars 28 forks source link

Generate files for regional scaling factors for urban and rural areas #344

Closed rouille closed 1 year ago

rouille commented 1 year ago

Pull Request doc

Purpose

Remove outdated regional scaling factors files and generate new ones using code implemented in #333, #335, #337 and #342. Also the fuel efficiency file has been updated

What the code is doing

Use if __name__ == '__main__' code block in the generate_scaling_factors to be able to generate the regional scaling factors files for urban and rural areas for all 32 years (64 files) in the top level environment. Also update the generate_BEV_vehicle_profiles module to use state abbreviation in both urban and rural and update tests following changes in fuel efficiency file.

Testing

Existing unit tests

Where to look

Very little code. Just using existing code in `if name == 'main' code block to write files on disk

Usage Example/Visuals

N/A

Time estimate

10min