Skip to content

Commit

Permalink
chore: rename prepare_scaled_profile to prepare_transformed_profile
Browse files Browse the repository at this point in the history
  • Loading branch information
danielolsen committed Dec 8, 2020
1 parent 645e9f9 commit f933e2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions powersimdata/scenario/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def prepare_profile(self, kind, profile_as=None):
if "new_plant" in self.ct.keys():
new_plant_types = {plant["type"] for plant in self.ct["new_plant"]}
if bool(profile.scale_keys[kind] & (new_plant_types | set(self.ct.keys()))):
self._prepare_scaled_profile(kind, profile)
self._prepare_transformed_profile(kind, profile)
else:
self._create_link_to_base_profile(kind)
else:
Expand Down Expand Up @@ -434,7 +434,7 @@ def _create_link_to_base_profile(self, kind):
if len(stderr.readlines()) != 0:
raise IOError("Failed to create link to %s profile." % kind)

def _prepare_scaled_profile(self, kind, profile):
def _prepare_transformed_profile(self, kind, profile):
"""Loads, scales and writes on local machine a base profile.
:param powersimdata.input.transform_profile.TransformProfile profile: a
Expand Down

0 comments on commit f933e2f

Please sign in to comment.