diff --git a/README.md b/README.md index f1de7241a..a97270b1f 100644 --- a/README.md +++ b/README.md @@ -264,7 +264,7 @@ The capacity planning framework replaces an earlier spreadsheet method with Importing the framework: ``` python -from powersimdata.scaling.clean_capacity_scaling.auto_capacity_scaling \ +from powersimdata.design.clean_capacity_scaling \ import CollaborativeStrategyManager, IndependentStrategyManager, \ TargetManager, ResourceManager, Resource ``` diff --git a/powersimdata/__init__.py b/powersimdata/__init__.py index cf0c1de5a..076a665d5 100644 --- a/powersimdata/__init__.py +++ b/powersimdata/__init__.py @@ -1 +1 @@ -__all__ = ['input', 'output', 'scenario','scaling'] +__all__ = ['design','input', 'output', 'scenario'] diff --git a/powersimdata/design/__init__.py b/powersimdata/design/__init__.py new file mode 100644 index 000000000..312e332e3 --- /dev/null +++ b/powersimdata/design/__init__.py @@ -0,0 +1 @@ +__all__ = ['demo','tests'] diff --git a/powersimdata/scaling/clean_capacity_scaling/auto_capacity_scaling.py b/powersimdata/design/clean_capacity_scaling.py similarity index 77% rename from powersimdata/scaling/clean_capacity_scaling/auto_capacity_scaling.py rename to powersimdata/design/clean_capacity_scaling.py index dac6c7f9d..9e476293e 100644 --- a/powersimdata/scaling/clean_capacity_scaling/auto_capacity_scaling.py +++ b/powersimdata/design/clean_capacity_scaling.py @@ -1,4 +1,4 @@ -from powersimdata.scenario.scenario_info import ScenarioInfo +from powersimdata.design.scenario_info import ScenarioInfo import pandas as pd import jsonpickle import json @@ -17,16 +17,16 @@ def __init__(self): @staticmethod def set_next_sim_hours(next_sim_hours): - """ - Sets the number of hours in the simulation for next capacity - calculations + """Sets the number of hours in the simulation for next capacity + calculations. + :param int next_sim_hours: number of hours in the simulation """ AbstractStrategyManager.next_sim_hours = next_sim_hours def targets_from_data_frame(self, data_frame): - """ - Bulk creates target objects from dataframe + """Creates target objects from data frame. + :param (*pandas.DataFrame*) data_frame: external target information """ for row in data_frame.itertuples(): @@ -51,10 +51,10 @@ def targets_from_data_frame(self, data_frame): def populate_targets_with_resources(self, scenario_info, start_time, end_time): - """ - Add resource objects to all targets with a strategy from a - specified scenario - :param powersimdata.scenario.scenario_info.ScenarioInfo scenario_info: + """Adds resource objects to all targets with a strategy from a + specified scenario. + + :param powersimdata.design.scenario_info.ScenarioInfo scenario_info: ScenarioInfo object to calculate scenario resource properties :param str start_time: starting datetime for interval of interest :param str end_time: ending datetime for interval of interest @@ -74,9 +74,9 @@ def populate_targets_with_resources(self, scenario_info, start_time, end_time) def add_target(self, target_manager_obj): - """ - Add target to strategy object - :param target_manager_obj: target object to be added + """Adds target to strategy object. + + :param TargetManager target_manager_obj: target object to be added. """ assert (isinstance(target_manager_obj, TargetManager)), \ "Input must be of TargetManager type" @@ -84,14 +84,14 @@ def add_target(self, target_manager_obj): @staticmethod def load_target_from_json(target_name): - """ - Loads JSON file of given target - :param str target_name: name of target to be loaded - :return: instance of TargetManager class + """Loads JSON file of given target. + + :param str target_name: name of target to be loaded. + :return: (*TargetManager*) -- instance of TargetManager class """ json_file = open(os.path.join( os.path.dirname(os.path.abspath(__file__)), - "save_files", + "demo", "data", "save_files", target_name+".json"), "r") target_obj = jsonpickle.decode(json_file.read()) json_file.close() @@ -99,14 +99,14 @@ def load_target_from_json(target_name): @staticmethod def load_target_from_pickle(target_name): - """ - Loads pickle file of given target + """Loads pickle file of given target. + :param str target_name: name of target to be loaded - :return: instance of TargetManager class + :return: (*TargetManager*) -- instance of TargetManager class """ json_file = open(os.path.join( os.path.dirname(os.path.abspath(__file__)), - "save_files", target_name+".pkl"), + "demo", "data", "save_files", target_name+".pkl"), "rb") target_obj = pickle.load(json_file) json_file.close() @@ -114,18 +114,18 @@ def load_target_from_pickle(target_name): class IndependentStrategyManager(AbstractStrategyManager): - """ - Calculates the next capacities using individual target shortfalls + """Calculates the next capacities using individual target shortfalls. + """ def __init__(self): AbstractStrategyManager.__init__(self) def set_addl_curtailment(self, additional_curtailment_table): - """ - Sets additional curtailment for a region and particular resource type - :param additional_curtailment_table: nested dictionary structure of - the form: {‘Alabama’:{‘solar’: .2}, ‘Maryland’: {‘wind’: .1}} - The numbers are curtailment factors between 0 and 1. + """Sets additional curtailment for a region and particular resource type + + :param dict additional_curtailment_table: nested dictionary structure of + the form: {‘Alabama’:{‘solar’: .2}, ‘Maryland’: {‘wind’: .1}}. The + numbers are curtailment factors between 0 and 1. """ for region_name, target_obj in additional_curtailment_table.items(): for resource_name, curtailment_factor in target_obj.items(): @@ -143,9 +143,9 @@ def set_addl_curtailment(self, additional_curtailment_table): f"{resource_name} not found***") from e def data_frame_of_next_capacities(self): - """ - Gathers next target capacity information into a dataframe - :return: data frame of next target capacities + """Gathers next target capacity information into a data frame. + + :return: (*pandas.DataFrame*) -- data frame of next target capacities. """ target_capacities = [] for tar in self.targets: @@ -194,19 +194,18 @@ def data_frame_of_next_capacities(self): class CollaborativeStrategyManager(AbstractStrategyManager): - """ - Calculates the next capacities using total target shortfalls + """Calculates the next capacities using total target shortfalls. + """ def __init__(self): self.addl_curtailment = {"solar": 0, "wind": 0} AbstractStrategyManager.__init__(self) def set_collab_addl_curtailment(self, addl_curtailment): - """ - Set additional curtailment for Collaborative Strategy - Must be a dictionary with "solar" and "wind" keys defined: - {"solar": .2, "wind": .3} - with values between 0 and 1. + """Sets additional curtailment for Collaborative Strategy + + :param dict addl_curtailment: dictionary with '*solar*' and '*wind*' + keys defined: {"solar": .2, "wind": .3} with values between 0 and 1. """ assert set(addl_curtailment.keys()) == set(["solar", "wind"]) assert 0 <= addl_curtailment["solar"] <= 1, "solar additional " \ @@ -218,9 +217,9 @@ def set_collab_addl_curtailment(self, addl_curtailment): self.addl_curtailment = addl_curtailment def calculate_total_shortfall(self): - """ - Calculate total clean energy shortfall - :return: total clean energy shortfall + """Calculates total clean energy shortfall. + + :return: (*float*) -- total clean energy shortfall """ total_ce_shortfall = 0 for name, target in self.targets.items(): @@ -229,9 +228,9 @@ def calculate_total_shortfall(self): return total_ce_shortfall def calculate_total_prev_ce_generation(self): - """ - Calculate total allowed clean energy generation - :return: total allowed clean energy generation + """Calculates total allowed clean energy generation + + :return: (*float*) -- total allowed clean energy generation """ total_prev_ce_generation = 0 for tar in self.targets: @@ -240,11 +239,11 @@ def calculate_total_prev_ce_generation(self): return total_prev_ce_generation def calculate_total_added_capacity(self, solar_fraction=None): - """ - Calculate the capacity to add from total clean energy shortfall - :param solar_fraction: solar fraction to be used in calculation, - default is to maintain from previous result - :return: solar and wind added capacities + """Calculates the capacity to add from total clean energy shortfall. + + :param float solar_fraction: solar fraction to be used in calculation, + default is to maintain from previous result + :return: (*tuple*) -- solar and wind added capacities """ solar_prev_capacity = self.calculate_total_capacity('solar') wind_prev_capacity = self.calculate_total_capacity('wind') @@ -274,11 +273,11 @@ def calculate_total_added_capacity(self, solar_fraction=None): return solar_added_capacity, wind_added_capacity def calculate_total_added_capacity_gen_constant(self, solar_fraction=None): - """ - Calculate the capacity to add from total clean energy shortfall - :param solar_fraction: solar fraction to be used in calculation, - default is to maintain from previous result - :return: solar and wind added capacities + """Calculates the capacity to add from total clean energy shortfall. + + :param (*float*) solar_fraction: solar fraction to be used in + calculation, default is to maintain from previous result + :return: (*tuple*) -- solar and wind added capacities """ solar_prev_capacity = self.calculate_total_capacity('solar') wind_prev_capacity = self.calculate_total_capacity('wind') @@ -307,10 +306,10 @@ def calculate_total_added_capacity_gen_constant(self, solar_fraction=None): return solar_added_capacity, wind_added_capacity def calculate_total_capacity(self, category): - """ - Calculate total capacity for a resource - :param category: resource category - :return: total capacity for a resource + """Calculates total capacity for a resource. + + :param str category: resource category. + :return: (*float*) -- total capacity for a resource. """ total_prev_capacity = 0 for tar in self.targets: @@ -319,10 +318,10 @@ def calculate_total_capacity(self, category): return total_prev_capacity def calculate_total_generation(self, category): - """ - Calculate total generation for a resource - :param category: resource category - :return: total generation for a resource + """Calculates total generation for a resource. + + :param str category: resource category. + :return: (*float*) -- total generation for a resource. """ total_prev_generation = 0 for tar in self.targets: @@ -331,10 +330,10 @@ def calculate_total_generation(self, category): return total_prev_generation def calculate_total_capacity_factor(self, category): - """ - Calculate total capacity factor for a target_manager_obj resource - :param category: resource category - :return: total capacity factor + """Calculates total capacity factor for a resource. + + :param str category: resource category. + :return: (*float*) -- total capacity factor. """ # revisit where hourly factor comes from total_cap_factor = self.calculate_total_generation(category) / \ @@ -342,11 +341,10 @@ def calculate_total_capacity_factor(self, category): return total_cap_factor def calculate_total_expected_capacity_factor(self, category): - """ - Calculate the total expected capacity for a target_manager_obj resource - :param category: resource category - :param addl_curtailment: option to add additional curtailment - :return: total expected capacity factor + """Calculates the total expected capacity for a resource. + + :param str category: resource category. + :return: (*float*) -- total expected capacity factor """ assert (category in ["solar", "wind"]), " expected capacity factor " \ "only defined for solar and " \ @@ -357,9 +355,9 @@ def calculate_total_expected_capacity_factor(self, category): return total_exp_cap_factor def calculate_capacity_scaling(self): - """ - Calculate the aggregate capacity scaling factor for solar and wind - :return: solar and wind capacity scaling factors + """Calculates the aggregate capacity scaling factor for solar and wind. + + :return: (*tuple*) -- solar and wind capacity scaling factors """ solar_prev_capacity = self.calculate_total_capacity('solar') wind_prev_capacity = self.calculate_total_capacity('wind') @@ -370,9 +368,9 @@ def calculate_capacity_scaling(self): return solar_scaling, wind_scaling def data_frame_of_next_capacities(self): - """ - Gathers next target capacity information into a dataframe - :return: data frame of next target capacities + """Gathers next target capacity information into a data frame. + + :return: (*pandas.DataFrame*) -- data frame of next target capacities """ solar_scaling, wind_scaling = self.calculate_capacity_scaling() @@ -414,13 +412,14 @@ class TargetManager: def __init__(self, region_name, ce_target_fraction, ce_category, total_demand, external_ce_historical_amount=0, solar_percentage=None): - """ - Class manages the regional target_manager_obj data and calculations - :param region_name: region region_name - :param ce_target_fraction: target_manager_obj fraction for clean energy - :param ce_category: type of energy target_manager_obj, i.e. renewable, - clean energy, etc. - :param total_demand: total demand for region + """Manages the regional data and calculations. + + :param str region_name: region region_name + :param float ce_target_fraction: target_manager_obj fraction for clean + energy + :param str ce_category: type of energy target_manager_obj, i.e. + renewable, clean energy, etc. + :param float total_demand: total demand for region """ assert (type(region_name) == str), "region_name must be a string" assert (type(ce_category) == str), "ce_category must be a string" @@ -451,12 +450,12 @@ def __init__(self, region_name, ce_target_fraction, ce_category, def populate_resource_info(self, scenario_info, start_time, end_time): - """ - Add resource objects to target using a specified scenario - :param powersimdata.scenario.scenario_info.ScenarioInfo scenario_info: - ScenarioInfo object to calculate scenario resource properties - :param str start_time: starting datetime for interval of interest - :param str end_time: ending datetime for interval of interest + """Adds resource objects to target using a specified scenario. + + :param powersimdata.design.scenario_info.ScenarioInfo scenario_info: + ScenarioInfo object to calculate scenario resource properties. + :param str start_time: starting datetime for interval of interest. + :param str end_time: ending datetime for interval of interest. """ allowed_resources = set(self.allowed_resources) available_resources = set( @@ -472,9 +471,9 @@ def populate_resource_info(self, scenario_info, self.add_resource_manager(resources) def calculate_added_capacity(self): - """ - Calculate added capacity, maintains solar wind ratio by default - :return: tuple of solar and wind added capacity values + """Calculates added capacity, maintains solar wind ratio by default. + + :return: (*tuple*) -- solar and wind added capacity values """ solar = self.resources['solar'] wind = self.resources['wind'] @@ -501,9 +500,9 @@ def calculate_added_capacity(self): return solar_added_capacity, wind_added_capacity def calculate_added_capacity_gen_constant(self): - """ - Calculate added capacity, maintains solar wind ratio by default - :return: tuple of solar and wind added capacity values + """Calculates added capacity, maintains solar wind ratio by default. + + :return: (*tuple*) -- solar and wind added capacity values. """ solar = self.resources['solar'] wind = self.resources['wind'] @@ -530,9 +529,9 @@ def calculate_added_capacity_gen_constant(self): return solar_added_capacity, wind_added_capacity def calculate_prev_ce_generation(self): - """ - Calculates total generation from allowed resources - :return: total generation from allowed resources + """Calculates total generation from allowed resources. + + :return: (*float*) -- total generation from allowed resources """ # prev_ce_generation = the sum of all prev_generation in the list # of allowed resources @@ -543,32 +542,31 @@ def calculate_prev_ce_generation(self): return prev_ce_generation def add_resource(self, resource): - """ - Adds resource to TargetManager - :param resource: resource to be added + """Adds resource to TargetManager. + + :param Resource resource: resource to be added """ assert (isinstance(resource, Resource)),\ "Input must be of Resource type" self.resources[resource.name] = resource def add_resource_manager(self, resource_manager): - """ - Sets the resources property equal to a resource manager object which - contains scenario resource information - :param (powersimdata.scaling.clean_capacity_scaling - .auto_capacity_scaling.ResourceManager) resource_manager: resource - manager object with scenario resource information + """Sets the resources property equal to a resource manager object which + contains scenario resource information. + + :param ResourceManager resource_manager: resource manager object with + scenario resource information """ assert (isinstance(resource_manager, ResourceManager)),\ "Input parameter must be an instance of type ResourceManager" self.resources = resource_manager def calculate_ce_shortfall(self): - """ - Calculates the clean energy shortfall for target_manager_obj area, + """Calculates the clean energy shortfall for target_manager_obj area, subtracts the external value if greater than total allowed clean energy - generation - :return: clean energy shortfall + generation. + + :return: (*float*) -- clean energy shortfall """ prev_ce_generation = self.calculate_prev_ce_generation() @@ -585,11 +583,10 @@ def calculate_ce_shortfall(self): return ce_shortfall def calculate_ce_overgeneration(self): - """ - Calculates the clean energy overgeneration for target_manager_obj - area, subtracts from external value if greater than total allowed - clean energy generation - :return: clean energy overgeneration + """Calculates the clean energy over generation, subtracts from external + value if greater than total allowed clean energy generation + + :return: (*float*) -- clean energy over generation """ prev_ce_generation = self.calculate_prev_ce_generation() @@ -606,21 +603,22 @@ def calculate_ce_overgeneration(self): return ce_overgeneration def set_allowed_resources(self, allowed_resources): + """Sets a list of allowed resources. + + :param list allowed_resources: allowed resources + + .. todo:: input validation """ - Sets a list of allow resources - :param allowed_resources: list of allow resources - """ - # todo: input validation self.allowed_resources = allowed_resources def save_target_as_json(self): - """ - Saves target object as indented JSON file named by region name + """Saves target object as indented JSON file named by region name. + """ print(os.getcwd()) json_file = open(os.path.join( os.path.dirname(os.path.abspath(__file__)), - "save_files", + "demo", "data", "save_files", self.region_name+".json"), "w") obj_json = json.dumps(json.loads(jsonpickle.encode(self)), indent=4, sort_keys=True) @@ -628,21 +626,21 @@ def save_target_as_json(self): json_file.close() def save_target_as_pickle(self): - """ - Saves target object as pickle file named by region name + """Saves target object as pickle file named by region name. + """ print(os.getcwd()) json_file = open(os.path.join( os.path.dirname(os.path.abspath(__file__)), - "save_files", + "demo", "data", "save_files", self.region_name+".pkl"), "wb") pickle.dump(self, json_file) json_file.close() def __str__(self): - """ - Outputs indented JSON string af object properties - :return: JSON formatted string + """Outputs indented JSON string af object properties. + + :return: (*str*) -- JSON formatted string """ return json.dumps( json.loads(jsonpickle.encode(self, unpicklable=False)), @@ -651,20 +649,20 @@ def __str__(self): class ResourceManager: - """ - Class manages the creation of resource objects from scenario information + """Manages the creation of resource objects from scenario information. + """ def __init__(self): - """ - Creates an empty dictionary to hold resource objects + """Creates an empty dictionary to hold resource objects. + """ self.resources = {} def __getitem__(self, key): - """ - Allows indexing into the resources dictionary directly from the + """Allows indexing into the resources dictionary directly from the object variable, i.e. res = ResourceManager; res["solar"] is the - same as res.resources["solar"] + same as res.resources["solar"]. + :param str key: resource type as string :raises KeyError For attempts to use key not in the dictionary :return: instance of Resource class @@ -676,15 +674,15 @@ def __getitem__(self, key): def pull_region_resource_info(self, region_name, scenario_info, region_resources, start_time, end_time): - """ - Pulls resource information from scenario info object over the - specified time range + """Pulls resource information from scenario info object over the + specified time range. + :param str region_name: name of region to extract from scenario - :param powersimdata.scenario.scenario_info.ScenarioInfo scenario_info: - ScenarioInfo object to calculate scenario resource properties - :param set region_resources: resources to extract from scenario - :param str start_time: starting time for simulation - :param str end_time: ending time for simulation + :param powersimdata.design.scenario_info.ScenarioInfo scenario_info: + ScenarioInfo instance to calculate scenario resource properties + :param set region_resources: resources to extract from scenario. + :param str start_time: starting time for simulation. + :param str end_time: ending time for simulation. """ assert (isinstance(scenario_info, ScenarioInfo)),\ "input parameter must be an instance of type ScenarioInfo" @@ -760,14 +758,16 @@ def __init__(self, name, prev_scenario_num): self.prev_curtailment = None self.addl_curtailment = 0 - # todo: calculate directly from scenario results def set_capacity(self, no_congestion_cap_factor, prev_capacity, prev_cap_factor): - """ - Sets capacity information for resource - :param no_congestion_cap_factor: capacity factor with no congestion - :param prev_capacity: capacity from scenario run - :param prev_cap_factor: capacity factor from scenario run + """Sets capacity information for resource. + + :param float no_congestion_cap_factor: capacity factor with no + congestion. + :param float prev_capacity: capacity from scenario run. + :param float prev_cap_factor: capacity factor from scenario run. + + .. todo:: calculate directly from scenario results """ assert (0 <= no_congestion_cap_factor <= 1), \ "no_congestion_cap_factor must be between 0 and 1" @@ -779,60 +779,60 @@ def set_capacity(self, no_congestion_cap_factor, prev_capacity, self.prev_capacity = prev_capacity self.prev_cap_factor = prev_cap_factor - # todo: calculate directly from scenario results def set_generation(self, prev_generation, tolerance=1e-3): + """Sets generation from scenario run. + + :param float prev_generation: generation from scenario run. + :param float tolerance: tolerance for ignored negative values. + + .. todo:: calculate directly from scenario results """ - Set generation from scenario run - :param prev_generation: generation from scenario run - :param {float, int} tolerance: tolerance for ignored negative values - """ - if ((-1 * tolerance) <= prev_generation < 0): + if (-1 * tolerance) <= prev_generation < 0: prev_generation = 0 assert (prev_generation >= 0), \ f"prev_generation must be greater than zero. Got {prev_generation}" self.prev_generation = prev_generation def set_curtailment(self, prev_curtailment): - """ - Set curtailment from scenario run - :param prev_curtailment: calculated curtailment from scenario run + """Sets curtailment from scenario run. + + :param float prev_curtailment: calculated curtailment from scenario run. """ assert (prev_curtailment >= 0), \ "prev_curtailment must be greater than zero" self.prev_curtailment = prev_curtailment def set_addl_curtailment(self, addl_curtailment): - """ - Set additional curtailment to included in capacity calculations - :param addl_curtailment: additional curtailment + """Sets additional curtailment to include in capacity calculations. + + :param float addl_curtailment: additional curtailment """ assert (0 <= addl_curtailment <= 1), \ "additional_curtailment must be between 0 and 1" self.addl_curtailment = addl_curtailment def calculate_expected_cap_factor(self): - """ - Calculates the capacity factor including additional curtailment - :return: capacity factor for resource + """Calculates the capacity factor including additional curtailment. + + :return: (*float*) --capacity factor for resource """ exp_cap_factor = self.prev_cap_factor * (1-self.addl_curtailment) return exp_cap_factor def calculate_next_capacity(self, added_capacity): - """ - Calculates next capacity to be used for scenario - :param added_capacity: calculated added capacity - :return: next capacity to be used for scenario + """Calculates next capacity to be used for scenario. + + :param float added_capacity: calculated added capacity + :return: (*float*) -- next capacity to be used for scenario """ next_capacity = self.prev_capacity + added_capacity return next_capacity def __str__(self): + """Outputs indented JSON string af object properties + + :return: (*str*) --JSON formatted string """ - Outputs indented JSON string af object properties - :return: JSON formatted string - """ - return json.dumps(json.loads(jsonpickle.encode(self, - unpicklable=False - )), - indent=4, sort_keys=True) + return json.dumps( + json.loads(jsonpickle.encode(self, unpicklable=False)), + indent=4, sort_keys=True) diff --git a/powersimdata/scaling/clean_capacity_scaling/demo/Eastern Scenario Take 2.csv b/powersimdata/design/demo/data/eastern_2030_clean_energy_targets.csv similarity index 100% rename from powersimdata/scaling/clean_capacity_scaling/demo/Eastern Scenario Take 2.csv rename to powersimdata/design/demo/data/eastern_2030_clean_energy_targets.csv diff --git a/powersimdata/scaling/clean_capacity_scaling/save_files/Pacific.json b/powersimdata/design/demo/data/save_files/Pacific.json similarity index 75% rename from powersimdata/scaling/clean_capacity_scaling/save_files/Pacific.json rename to powersimdata/design/demo/data/save_files/Pacific.json index 76159b997..a3147334b 100644 --- a/powersimdata/scaling/clean_capacity_scaling/save_files/Pacific.json +++ b/powersimdata/design/demo/data/save_files/Pacific.json @@ -8,7 +8,7 @@ "ce_target": 50000.0, "ce_target_fraction": 0.25, "external_ce_historical_amount": 0, - "py/object": "powersimdata.scaling.clean_capacity_scaling.auto_capacity_scaling.TargetManager", + "py/object": "powersimdata.design.clean_capacity_scaling.TargetManager", "region_name": "Pacific", "resources": { "geo": { @@ -20,7 +20,7 @@ "prev_curtailment": 0, "prev_generation": 8000, "prev_scenario_num": 3, - "py/object": "powersimdata.scaling.clean_capacity_scaling.auto_capacity_scaling.Resource" + "py/object": "powersimdata.design.clean_capacity_scaling.Resource" }, "hydro": { "addl_curtailment": 0, @@ -31,7 +31,7 @@ "prev_curtailment": 0, "prev_generation": 7000, "prev_scenario_num": 3, - "py/object": "powersimdata.scaling.clean_capacity_scaling.auto_capacity_scaling.Resource" + "py/object": "powersimdata.design.clean_capacity_scaling.Resource" }, "nuclear": { "addl_curtailment": 0, @@ -42,7 +42,7 @@ "prev_curtailment": 0, "prev_generation": 6500, "prev_scenario_num": 3, - "py/object": "powersimdata.scaling.clean_capacity_scaling.auto_capacity_scaling.Resource" + "py/object": "powersimdata.design.clean_capacity_scaling.Resource" }, "solar": { "addl_curtailment": 0, @@ -53,7 +53,7 @@ "prev_curtailment": 0.138483, "prev_generation": 7000, "prev_scenario_num": 3, - "py/object": "powersimdata.scaling.clean_capacity_scaling.auto_capacity_scaling.Resource" + "py/object": "powersimdata.design.clean_capacity_scaling.Resource" }, "wind": { "addl_curtailment": 0, @@ -64,7 +64,7 @@ "prev_curtailment": 0.130363, "prev_generation": 11000, "prev_scenario_num": 3, - "py/object": "powersimdata.scaling.clean_capacity_scaling.auto_capacity_scaling.Resource" + "py/object": "powersimdata.design.clean_capacity_scaling.Resource" } }, "solar_percentage": null, diff --git a/powersimdata/scaling/clean_capacity_scaling/save_files/Pacific.pkl b/powersimdata/design/demo/data/save_files/Pacific.pkl similarity index 80% rename from powersimdata/scaling/clean_capacity_scaling/save_files/Pacific.pkl rename to powersimdata/design/demo/data/save_files/Pacific.pkl index 4be452460..5b0c1fb2b 100644 Binary files a/powersimdata/scaling/clean_capacity_scaling/save_files/Pacific.pkl and b/powersimdata/design/demo/data/save_files/Pacific.pkl differ diff --git a/powersimdata/scaling/clean_capacity_scaling/demo/EasternCapacityScaling.ipynb b/powersimdata/design/demo/eastern_clean_capacity_scaling_demo.ipynb similarity index 96% rename from powersimdata/scaling/clean_capacity_scaling/demo/EasternCapacityScaling.ipynb rename to powersimdata/design/demo/eastern_clean_capacity_scaling_demo.ipynb index a1b3a822a..17b1202ae 100644 --- a/powersimdata/scaling/clean_capacity_scaling/demo/EasternCapacityScaling.ipynb +++ b/powersimdata/design/demo/eastern_clean_capacity_scaling_demo.ipynb @@ -7,8 +7,9 @@ "outputs": [], "source": [ "from powersimdata.scenario.scenario import Scenario\n", - "from powersimdata.scenario.scenario_info import ScenarioInfo\n", + "from powersimdata.design.scenario_info import ScenarioInfo\n", "import json\n", + "import os\n", "import pandas as pd" ] }, @@ -18,7 +19,7 @@ "metadata": {}, "outputs": [], "source": [ - "from powersimdata.scaling.clean_capacity_scaling.auto_capacity_scaling import CollaborativeStrategyManager,\\\n", + "from powersimdata.design.clean_capacity_scaling import CollaborativeStrategyManager,\\\n", "IndependentStrategyManager, TargetManager, ResourceManager, Resource" ] }, @@ -29,7 +30,7 @@ "outputs": [], "source": [ "scenario_string = '394'\n", - "targets_info_location ='Eastern Scenario Take 2.csv'" + "targets_info_location = os.path.join('data', 'eastern_2030_clean_energy_targets.csv')" ] }, { @@ -1457,25 +1458,22 @@ "name": "stdout", "output_type": "stream", "text": [ - "8784\n", "\n", "Alabama\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -1483,6 +1481,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -1492,19 +1492,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -1512,6 +1510,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -1519,11 +1519,10 @@ "\n", "Connecticut\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -1531,13 +1530,11 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource ng!\n", - "\n", - "Added resource wind!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource dfo!\n", + "Added resource ng!\n", "\n" ] }, @@ -1545,7 +1542,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "C:\\Users\\dmuldrew\\AppData\\Local\\Continuum\\anaconda3\\envs\\powersimdata\\lib\\site-packages\\powersimdata\\scenario\\scenario_info.py:175: UserWarning: No such type of generator in the area specified!\n", + "/Users/brdo/REM/PowerSimData/powersimdata/design/scenario_info.py:175: UserWarning: No such type of generator in the area specified!\n", " warnings.warn('No such type of generator in the area specified!')\n" ] }, @@ -1553,13 +1550,16 @@ "name": "stdout", "output_type": "stream", "text": [ - "No existing resource geothermal!\n", + "Added resource hydro!\n", + "\n", "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", + "Invalid resource type\n", + "Added resource dfo!\n", "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -1567,31 +1567,31 @@ "\n", "Delaware\n", "\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "No existing resource hydro!\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource hydro!\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "No existing resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -1601,19 +1601,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -1621,6 +1619,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -1630,19 +1630,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -1650,6 +1648,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -1659,19 +1659,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -1679,6 +1677,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -1688,19 +1688,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -1708,6 +1706,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -1715,11 +1715,10 @@ "\n", "Indiana\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "No existing resource nuclear!\n", "Invalid resource type\n", @@ -1728,21 +1727,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -1752,19 +1752,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -1772,6 +1770,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -1783,19 +1783,19 @@ "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", + "Added resource solar!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", - "\n", - "Added resource solar!\n", + "Added resource wind!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -1806,19 +1806,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -1826,6 +1824,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -1833,11 +1833,10 @@ "\n", "Massachusetts\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -1845,21 +1844,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -1867,11 +1867,10 @@ "\n", "Maryland\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -1879,21 +1878,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -1901,29 +1901,29 @@ "\n", "Maine\n", "\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "No existing resource coal!\n", "Invalid resource type\n", "No such type of generator in the area specified. Division by zero.\n", @@ -1932,11 +1932,10 @@ "\n", "Michigan\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -1944,21 +1943,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -1968,19 +1968,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -1988,6 +1986,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -1997,19 +1997,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2017,6 +2015,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2028,21 +2028,21 @@ "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", + "Added resource solar!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", - "Added resource solar!\n", + "Added resource wind!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2055,12 +2055,6 @@ "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", - "\n", - "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", "No existing resource hydro!\n", "float division by zero\n", "No such type of generator in the area specified. Division by zero.\n", @@ -2070,44 +2064,50 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Added resource wind!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource coal!\n", "\n", "\n", "North Carolina\n", "\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", + "Added resource nuclear!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n" + "Added resource other!\n", + "\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "\n", - "Added resource hydro!\n", - "\n", - "Invalid resource type\n", - "Invalid resource type\n", - "Added resource nuclear!\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2115,29 +2115,29 @@ "\n", "North Dakota\n", "\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2147,19 +2147,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2167,6 +2165,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2174,11 +2174,10 @@ "\n", "New Hampshire\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2186,21 +2185,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2208,11 +2208,10 @@ "\n", "New Jersey\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2220,21 +2219,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2246,32 +2246,30 @@ "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource solar!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource solar!\n", + "Added resource wind!\n", "\n", "\n", "New York\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2279,6 +2277,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2286,11 +2286,10 @@ "\n", "Ohio\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2298,21 +2297,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2320,29 +2320,29 @@ "\n", "Oklahoma\n", "\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2350,11 +2350,10 @@ "\n", "Pennsylvania\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2362,21 +2361,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2384,37 +2384,36 @@ "\n", "Rhode Island\n", "\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "\n", "South Carolina\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2422,21 +2421,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2444,29 +2444,29 @@ "\n", "South Dakota\n", "\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2476,19 +2476,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2496,6 +2494,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2507,15 +2507,15 @@ "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", + "\n", + "Added resource solar!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", - "\n", - "Added resource solar!\n", + "Added resource wind!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2524,11 +2524,10 @@ "\n", "Virginia\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2536,21 +2535,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2558,61 +2558,55 @@ "\n", "Vermont\n", "\n", - "Added resource wind!\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", + "Added resource solar!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", + "Added resource wind!\n", + "\n", + "\n", + "Wisconsin\n", "\n", "No existing resource geothermal!\n", "Invalid resource type\n", "No such type of generator in the area specified. Division by zero.\n", "Added resource geothermal!\n", "\n", - "Added resource solar!\n", - "\n", - "\n", - "Wisconsin\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2624,19 +2618,25 @@ "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", + "Added resource solar!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", - "\n", - "Added resource hydro!\n", - "\n", - "Added resource solar!\n", + "\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Added resource wind!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2663,25 +2663,22 @@ "name": "stdout", "output_type": "stream", "text": [ - "8784\n", "\n", "Alabama\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2689,6 +2686,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2698,19 +2697,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2718,6 +2715,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2725,11 +2724,10 @@ "\n", "Connecticut\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2737,21 +2735,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2759,31 +2758,31 @@ "\n", "Delaware\n", "\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "No existing resource hydro!\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource hydro!\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "No existing resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2793,19 +2792,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2813,6 +2810,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2822,19 +2821,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2842,6 +2839,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2851,19 +2850,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2871,6 +2868,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2880,19 +2879,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2900,6 +2897,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2907,11 +2906,10 @@ "\n", "Indiana\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "No existing resource nuclear!\n", "Invalid resource type\n", @@ -2920,21 +2918,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2944,19 +2943,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2964,6 +2961,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -2975,19 +2974,19 @@ "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", + "Added resource solar!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", - "\n", - "Added resource solar!\n", + "Added resource wind!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -2998,19 +2997,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3018,6 +3015,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3025,11 +3024,10 @@ "\n", "Massachusetts\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3037,21 +3035,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3059,11 +3058,10 @@ "\n", "Maryland\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3071,21 +3069,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3093,29 +3092,29 @@ "\n", "Maine\n", "\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "No existing resource coal!\n", "Invalid resource type\n", "No such type of generator in the area specified. Division by zero.\n", @@ -3124,11 +3123,10 @@ "\n", "Michigan\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3136,21 +3134,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3160,19 +3159,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3180,6 +3177,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3189,9 +3188,11 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", + "Added resource nuclear!\n", "\n", - "Added resource hydro!\n", + "Invalid resource type\n", + "Invalid resource type\n", + "Added resource other!\n", "\n", "Invalid resource type\n" ] @@ -3200,14 +3201,10 @@ "name": "stdout", "output_type": "stream", "text": [ - "Invalid resource type\n", - "Added resource nuclear!\n", - "\n", - "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3215,6 +3212,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3226,21 +3225,21 @@ "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", + "Added resource solar!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", - "Added resource solar!\n", + "Added resource wind!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3253,12 +3252,6 @@ "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", - "\n", - "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", "No existing resource hydro!\n", "float division by zero\n", "No such type of generator in the area specified. Division by zero.\n", @@ -3268,16 +3261,21 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Added resource wind!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource coal!\n", "\n", "\n", "North Carolina\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3285,21 +3283,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3307,29 +3306,29 @@ "\n", "North Dakota\n", "\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3339,19 +3338,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3359,6 +3356,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3366,11 +3365,10 @@ "\n", "New Hampshire\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3378,21 +3376,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3400,11 +3399,10 @@ "\n", "New Jersey\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3412,21 +3410,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3438,22 +3437,16 @@ "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource solar!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource solar!\n", - "\n", - "\n", - "New York\n", + "Added resource wind!\n", "\n", - "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", "\n", - "Added resource hydro!\n", + "New York\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3461,9 +3454,13 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3471,6 +3468,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3478,11 +3477,10 @@ "\n", "Ohio\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3490,21 +3488,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3512,29 +3511,29 @@ "\n", "Oklahoma\n", "\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3542,11 +3541,10 @@ "\n", "Pennsylvania\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3554,21 +3552,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3576,37 +3575,36 @@ "\n", "Rhode Island\n", "\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "\n", "South Carolina\n", "\n", + "No existing resource geothermal!\n", "Invalid resource type\n", - "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3614,21 +3612,22 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", + "Added resource other!\n", + "\n", + "Invalid resource type\n", + "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3636,29 +3635,29 @@ "\n", "South Dakota\n", "\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3668,19 +3667,17 @@ "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3688,6 +3685,8 @@ "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3699,15 +3698,15 @@ "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", + "\n", + "Added resource solar!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", - "\n", - "Added resource solar!\n", + "Added resource wind!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -3716,39 +3715,39 @@ "\n", "Virginia\n", "\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", + "Added resource nuclear!\n", "\n", - "Added resource hydro!\n", + "Invalid resource type\n", + "Invalid resource type\n", + "Added resource other!\n", "\n", - "Invalid resource type\n" + "Invalid resource type\n", + "Invalid resource type\n", + "Added resource ng!\n", + "\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Invalid resource type\n", - "Added resource nuclear!\n", - "\n", - "Invalid resource type\n", - "Invalid resource type\n", - "Added resource ng!\n", - "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3756,55 +3755,55 @@ "\n", "Vermont\n", "\n", - "Added resource wind!\n", + "No existing resource geothermal!\n", + "Invalid resource type\n", + "No such type of generator in the area specified. Division by zero.\n", + "Added resource geothermal!\n", + "\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", + "Added resource solar!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", + "Added resource wind!\n", + "\n", + "\n", + "Wisconsin\n", "\n", "No existing resource geothermal!\n", "Invalid resource type\n", "No such type of generator in the area specified. Division by zero.\n", "Added resource geothermal!\n", "\n", - "Added resource solar!\n", - "\n", - "\n", - "Wisconsin\n", - "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource other!\n", - "\n", - "Added resource hydro!\n", + "Added resource nuclear!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", - "Added resource nuclear!\n", + "Added resource other!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", - "No existing resource geothermal!\n", - "Invalid resource type\n", - "No such type of generator in the area specified. Division by zero.\n", - "Added resource geothermal!\n", - "\n", "Added resource solar!\n", "\n", + "Added resource wind!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource coal!\n", @@ -3816,19 +3815,19 @@ "Invalid resource type\n", "Added resource ng!\n", "\n", - "Added resource wind!\n", + "Added resource hydro!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource dfo!\n", "\n", + "Added resource solar!\n", + "\n", "Invalid resource type\n", "Invalid resource type\n", "Added resource other!\n", "\n", - "Added resource hydro!\n", - "\n", - "Added resource solar!\n", + "Added resource wind!\n", "\n", "Invalid resource type\n", "Invalid resource type\n", @@ -4757,15 +4756,6 @@ "independent_next_capacities" ] }, - { - "cell_type": "code", - "execution_count": 13, - "metadata": {}, - "outputs": [], - "source": [ - "#independent_next_capacities.to_excel(\"Eastern_Independent.xlsx\")" - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -4775,7 +4765,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 13, "metadata": {}, "outputs": [ { @@ -4831,12 +4821,12 @@ "