From 4dc8e8fc35380811991f6611cb762d99c99e2ed5 Mon Sep 17 00:00:00 2001 From: Jonas Hoersch Date: Tue, 11 Dec 2018 17:29:54 +0100 Subject: [PATCH] build_renewable_profiles: Fix incomplete renaming --- scripts/build_renewable_profiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build_renewable_profiles.py b/scripts/build_renewable_profiles.py index 3ffc0f1c..8860dd6f 100644 --- a/scripts/build_renewable_profiles.py +++ b/scripts/build_renewable_profiles.py @@ -108,8 +108,8 @@ if __name__ == '__main__': ' ', pgb.widgets.Timer(), ' ', pgb.widgets.ETA() ] - progressbar = pgb.ProgressBar(prefix='Compute GIS potentials: ', widgets=widgets, max_value=len(features)) - matrix = vstack(list(progressbar(pool.imap(calculate_potential, features.index)))) + progressbar = pgb.ProgressBar(prefix='Compute GIS potentials: ', widgets=widgets, max_value=len(regions)) + matrix = vstack(list(progressbar(pool.imap(calculate_potential, regions.index)))) potentials = config['capacity_per_sqkm'] * vlanduse._cutout_cell_areas(cutout) potmatrix = matrix * spdiag(potentials.ravel())