Skip to content

Commit 3837e24

Browse files
authored
Merge pull request #212 from HSLdevcom/log-recluster-stack-trace
fix logging
2 parents baeaacf + e667da2 commit 3837e24

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

python/common/recluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,10 +476,10 @@ def ui_related_var_modifications(df: pd.DataFrame, seasons_and_months: dict, DEP
476476
pd.DataFrame: clusters with ui related variables
477477
"""
478478
df["tst_median"] = pd.to_datetime(df["tst_median"], format="%Y-%m-%d %H:%M:%S", errors="coerce")
479-
print(df["tst_median"])
479+
logger.debug(df["tst_median"])
480480
df["year"] = df["tst_median"].dt.year
481481
df["season"] = df["tst_median"].dt.month.map(lambda x: get_season(x, seasons_and_months))
482-
print(df["season"])
482+
logger.debug(df["season"])
483483
for k, v in DCLASS_NAMES.items():
484484
df["dclass"] = df["dclass"].replace(k, v)
485485

python/common/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def get_target_oday(offset=1):
5353
return start_date
5454

5555
def get_season(month, seasons_and_months):
56-
print(month)
57-
print(seasons_and_months)
56+
logger.debug(month)
57+
logger.debug(seasons_and_months)
5858
if month is None:
5959
return None
6060

0 commit comments

Comments
 (0)