build_renewable_profiles: Fix incomplete renaming

This commit is contained in:
Jonas Hoersch 2018-12-11 17:29:54 +01:00
parent eeba4a81d4
commit 4dc8e8fc35

View File

@ -108,8 +108,8 @@ if __name__ == '__main__':
' ', pgb.widgets.Timer(), ' ', pgb.widgets.Timer(),
' ', pgb.widgets.ETA() ' ', pgb.widgets.ETA()
] ]
progressbar = pgb.ProgressBar(prefix='Compute GIS potentials: ', widgets=widgets, max_value=len(features)) progressbar = pgb.ProgressBar(prefix='Compute GIS potentials: ', widgets=widgets, max_value=len(regions))
matrix = vstack(list(progressbar(pool.imap(calculate_potential, features.index)))) matrix = vstack(list(progressbar(pool.imap(calculate_potential, regions.index))))
potentials = config['capacity_per_sqkm'] * vlanduse._cutout_cell_areas(cutout) potentials = config['capacity_per_sqkm'] * vlanduse._cutout_cell_areas(cutout)
potmatrix = matrix * spdiag(potentials.ravel()) potmatrix = matrix * spdiag(potentials.ravel())