Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Sep 22, 2023
1 parent 10badd0 commit 6c5e116
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions ecml_tools/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ def __repr__(self):
return f"{self.__class__.__name__}({lst})"



class Concat(Combined):
def __len__(self):
return sum(len(i) for i in self.datasets)
Expand Down Expand Up @@ -294,9 +293,9 @@ def check_compatibility(self, d1, d2):
def dates(self):
return np.concatenate([d.dates for d in self.datasets])

def __repr__(self):
lst = ", ".join(repr(d) for d in self.datasets)
return f"Concat({lst})"
@property
def shape(self):
return (len(self),) + self.datasets[0].shape[1:]


class Join(Combined):
Expand All @@ -318,11 +317,7 @@ def shape(self):
cols = sum(d.shape[1] for d in self.datasets)
return (len(self), cols) + self.datasets[0].shape[2:]

def __repr__(self):
lst = ", ".join(repr(d) for d in self.datasets)
return f"Join({lst})"

def overlay(self):
def _overlay(self):
indices = {}
i = 0
for d in self.datasets:
Expand Down

0 comments on commit 6c5e116

Please sign in to comment.