Skip to content

Commit

Permalink
Fix problem Python 3.8-3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterpeere committed Feb 9, 2024
1 parent 4207acc commit 6afd7f7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class HourlyGeothermalLoad(_LoadData):
END = pd.to_datetime("2019-12-31 23:59:00")
HOURS_SERIES = pd.Series(pd.date_range(START, END, freq="1h"))

def __init__(self, heating_load: ArrayLike | None = None,
cooling_load: ArrayLike | None = None,
def __init__(self, heating_load: ArrayLike = None,
cooling_load: ArrayLike = None,
simulation_period: int = 20,
dhw: float = 0.):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class HourlyGeothermalLoadMultiYear(HourlyGeothermalLoad):
This means that the inputs are both in kWh/month and kW/month.
"""

def __init__(self, heating_load: ArrayLike | None = None, cooling_load: ArrayLike | None = None):
def __init__(self, heating_load: ArrayLike = None, cooling_load: ArrayLike = None):
"""
Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ class MonthlyGeothermalLoadAbsolute(_LoadData):

def __init__(
self,
baseload_heating: ArrayLike | None = None,
baseload_cooling: ArrayLike | None = None,
peak_heating: ArrayLike | None = None,
peak_cooling: ArrayLike | None = None,
baseload_heating: ArrayLike = None,
baseload_cooling: ArrayLike = None,
peak_heating: ArrayLike = None,
peak_cooling: ArrayLike = None,
simulation_period: int = 20,
dhw: float = 0.0,
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ class MonthlyGeothermalLoadMultiYear(MonthlyGeothermalLoadAbsolute):

def __init__(
self,
baseload_heating: ArrayLike | None = None,
baseload_cooling: ArrayLike | None = None,
peak_heating: ArrayLike | None = None,
peak_cooling: ArrayLike | None = None,
baseload_heating: ArrayLike = None,
baseload_cooling: ArrayLike = None,
peak_heating: ArrayLike = None,
peak_cooling: ArrayLike = None,
):
"""
Expand Down

0 comments on commit 6afd7f7

Please sign in to comment.