Skip to content

Commit

Permalink
Merge pull request #122 from stat-kwon/master
Browse files Browse the repository at this point in the history
Change logic of creating data keys in DataSourceManager
  • Loading branch information
stat-kwon authored Dec 16, 2024
2 parents 265a8b2 + 640b513 commit 45d630c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ def get_data_and_labels_info(self) -> Tuple[dict, dict]:
data_info[self.data_name]["unit"] = self.data_unit

if self.timediff:
data_info[self.data_name]["timediff"] = self.timediff
data_info[self.timediff["data_name"]] = {}

labels_info = {}

if self.group_by:
for group_option in copy.deepcopy(self.group_by):
if isinstance(group_option, dict):
Expand Down Expand Up @@ -186,7 +185,6 @@ def _apply_timediff(
self, granularity: str, start: str, end: str, vars: dict
) -> pd.DataFrame:
origin_df = self.df.copy()
self.data_name = self.timediff.get("data_name")

start, end = self._change_query_time(granularity, start, end)

Expand Down

0 comments on commit 45d630c

Please sign in to comment.