@@ -104,7 +104,7 @@ def execute(self, starting_idx=0):
104104 self .joined_right .data [i - starting_idx ].append ([])
105105 right = np .array ([])
106106 if self .condition .join_type == "<" :
107- while c < len (idx_2 ) and idx_2 [c ] < nextIdx [j ]:
107+ while c < len (idx_2 ) - 1 and idx_2 [c ] < nextIdx [j ]:
108108 if right .size == 0 :
109109 right = self .right_modality .data [i ][c ]
110110 if right .ndim == 1 :
@@ -125,7 +125,7 @@ def execute(self, starting_idx=0):
125125 )
126126 c = c + 1
127127 else :
128- while c < len (idx_2 ) and idx_2 [c ] <= idx_1 [j ]:
128+ while c < len (idx_2 ) - 1 and idx_2 [c ] <= idx_1 [j ]:
129129 if idx_2 [c ] == idx_1 [j ]:
130130 right .append (self .right_modality .data [i ][c ])
131131 c = c + 1
@@ -141,18 +141,17 @@ def execute(self, starting_idx=0):
141141
142142 self .joined_right .data [i - starting_idx ][j ] = right
143143
144- def apply_representation (self , representation , aggregation ):
144+ def apply_representation (self , representation , aggregation = None ):
145145 self .aggregation = aggregation
146146 if self .chunked_execution :
147147 return self ._handle_chunked_execution (representation )
148- elif self .left_type .__name__ .__contains__ ("Unimodal" ):
149- self .left_modality .extract_raw_data ()
150- if self .left_type == self .right_type :
151- self .right_modality .extract_raw_data ()
152- elif self .right_type .__name__ .__contains__ ("Unimodal" ):
153- self .right_modality .extract_raw_data ()
148+ # elif self.left_type.__name__.__contains__("Unimodal"):
149+ # self.left_modality.extract_raw_data()
150+ # if self.left_type == self.right_type:
151+ # self.right_modality.extract_raw_data()
152+ # elif self.right_type.__name__.__contains__("Unimodal") and not self.right_modality.has_data( ):
153+ # self.right_modality.extract_raw_data()
154154
155- self .execute ()
156155 left_transformed = self ._apply_representation (
157156 self .left_modality , representation
158157 )
@@ -263,12 +262,12 @@ def _apply_representation_chunked(
263262
264263 def _apply_representation (self , modality , representation ):
265264 transformed = representation .transform (modality )
266- if self .aggregation :
267- aggregated_data_left = self .aggregation .window (transformed )
268- transformed = Modality (
269- transformed .modality_type ,
270- transformed .metadata ,
271- )
272- transformed .data = aggregated_data_left
265+ # if self.aggregation:
266+ # aggregated_data_left = self.aggregation.execute (transformed)
267+ # transformed = Modality(
268+ # transformed.modality_type,
269+ # transformed.metadata,
270+ # )
271+ # transformed.data = aggregated_data_left
273272
274273 return transformed
0 commit comments