openego / powerd-data

GNU Affero General Public License v3.0
1 stars 0 forks source link

Make optional high use of RAM #84

Open CarlosEpia opened 1 year ago

CarlosEpia commented 1 year ago

The task electricity_demand.get-annual-household-el-demand-cells is taking more than 2 days to be executed, but this process can be done in just 3 min using different parameters. It would be useful to include a CLI parameter to include the option of high use of memory RAM. The change can be done partially in this block of code in the file hh_buildings.py

    iterate_over = (
        "nuts3"
        if dataset == "Everything"
        else "nuts3"
        if dataset == "Schleswig-Holstein"
        else ve(f"'{dataset}' is not a valid dataset boundary.")
    )
CarlosEpia commented 1 year ago

Also, the function get_annual_household_el_demand_cells() in electricity_demand_timeseries.hh_buildings.py has to be adjusted in the same way.