From 177ecefce8f0c2e6009e19094905aaed9d746aa6 Mon Sep 17 00:00:00 2001 From: danielolsen Date: Tue, 19 Apr 2022 17:34:59 -0700 Subject: [PATCH 1/2] fix: convert set to list after intersection operation (#619) --- powersimdata/input/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powersimdata/input/helpers.py b/powersimdata/input/helpers.py index 61083c495..c574f92d6 100644 --- a/powersimdata/input/helpers.py +++ b/powersimdata/input/helpers.py @@ -274,7 +274,7 @@ def decompose_plant_data_frame_into_resources(df, resources, grid): resources = _check_resources_are_in_grid_and_format(resources, grid) df_resources = { - r: df[list(get_plant_id_for_resources(r, grid)) & plant_id].sort_index(axis=1) + r: df[list(get_plant_id_for_resources(r, grid) & plant_id)].sort_index(axis=1) for r in resources } return df_resources From b3e0e8bb514711d6ff526141af4e86729494101d Mon Sep 17 00:00:00 2001 From: danielolsen Date: Tue, 19 Apr 2022 17:43:36 -0700 Subject: [PATCH 2/2] chore: bump version number (#620) --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 28ca568ea..48dc0d125 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = powersimdata -version = 0.5.1 +version = 0.5.2 author = Breakthrough Energy author_email = sciences@breakthroughenergy.org description = Power Simulation Data