Skip to content

Commit

Permalink
Make daily_profile method callable with default values
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachibouzouk committed Nov 30, 2023
1 parent e078b47 commit 1826f38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ramp/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ def Appliance(
)

def generate_single_load_profile(
self, prof_i: int, peak_time_range: np.array, day_type: int
self, prof_i: int = 0, peak_time_range: np.array = None, day_type: int = 0
):
"""Generates a load profile for a single user taking all its appliances into consideration
Expand Down Expand Up @@ -811,7 +811,7 @@ def generate_single_load_profile(
"You are generating ramp demand from a User not bounded to a UseCase instance, a default one has been created for you "
)
UseCase(name=f"{self.user_name} default usecase", users=[self])
self.usecase.initialize(num_days=1)
self.usecase.peak_time_range = self.usecase.calc_peak_time_range()
peak_time_range = self.usecase.peak_time_range

single_load = np.zeros(1440)
Expand All @@ -833,7 +833,7 @@ def generate_single_load_profile(
return single_load

def generate_aggregated_load_profile(
self, prof_i, peak_time_range=None, day_type=None
self, prof_i=0, peak_time_range=None, day_type=0
):
"""Generates an aggregated load profile from single load profile of each user
Expand Down

0 comments on commit 1826f38

Please sign in to comment.