Skip to content

Commit

Permalink
Merge pull request #752 from RWTH-EBC/751-futurewarning-h-is-deprecat…
Browse files Browse the repository at this point in the history
…ed-and-will-be-removed-in-a-future-version-please-use-h-instead

fix freq warning
  • Loading branch information
FWuellhorst authored Apr 29, 2024
2 parents 0e56eee + 0b70886 commit e1a906d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions teaser/logic/buildingobjects/calculation/aixlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def modelica_set_temp(self, path=None):
path = os.path.join(path, self.file_set_t_heat)

export = pd.DataFrame(
index=pd.date_range("2019-01-01 00:00:00", periods=8760, freq="H")
index=pd.date_range("2019-01-01 00:00:00", periods=8760, freq="h")
.to_series()
.dt.strftime("%m-%d %H:%M:%S"),
columns=[zone.name for zone in self.parent.thermal_zones],
Expand Down Expand Up @@ -165,7 +165,7 @@ def modelica_set_temp_cool(self, path=None):
path = os.path.join(path, self.file_set_t_cool)

export = pd.DataFrame(
index=pd.date_range("2019-01-01 00:00:00", periods=8760, freq="H")
index=pd.date_range("2019-01-01 00:00:00", periods=8760, freq="h")
.to_series()
.dt.strftime("%m-%d %H:%M:%S"),
columns=[zone.name for zone in self.parent.thermal_zones],
Expand Down Expand Up @@ -226,7 +226,7 @@ def modelica_AHU_boundary(self, path=None):
export = self.parent.central_ahu.schedules
else: # Dummy values for Input Table
export = pd.DataFrame(
index=pd.date_range("2019-01-01 00:00:00", periods=8760, freq="H")
index=pd.date_range("2019-01-01 00:00:00", periods=8760, freq="h")
.to_series()
.dt.strftime("%m-%d %H:%M:%S")
)
Expand Down Expand Up @@ -276,7 +276,7 @@ def modelica_gains_boundary(self, path=None):
path = os.path.join(path, self.file_internal_gains)

export = pd.DataFrame(
index=pd.date_range("2019-01-01 00:00:00", periods=8760, freq="H")
index=pd.date_range("2019-01-01 00:00:00", periods=8760, freq="h")
.to_series()
.dt.strftime("%m-%d %H:%M:%S")
)
Expand Down
2 changes: 1 addition & 1 deletion teaser/logic/buildingobjects/calculation/ibpsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def modelica_gains_boundary(self, zone, path=None):
path = os.path.join(path, self.file_internal_gains)

export = pd.DataFrame(
index=pd.date_range("2019-01-01 00:00:00", periods=8760, freq="H")
index=pd.date_range("2019-01-01 00:00:00", periods=8760, freq="h")
.to_series()
.dt.strftime("%m-%d %H:%M:%S")
)
Expand Down

0 comments on commit e1a906d

Please sign in to comment.