File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Orange/widgets/unsupervised Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -366,15 +366,16 @@ def commit(self):
366366 def _get_projection_data (self ):
367367 if self .data is None :
368368 return None
369- if self .projection is None :
370- variables = self ._get_projection_variables ()
371- else :
372- variables = self .projection .domain .attributes
373369 data = self .data .transform (
374370 Domain (self .data .domain .attributes ,
375371 self .data .domain .class_vars ,
376- self .data .domain .metas + variables ))
372+ self .data .domain .metas + self . _get_projection_variables () ))
377373 data .metas [:, - 2 :] = self .get_embedding ()
374+ if self .projection is not None :
375+ data .domain = Domain (
376+ self .data .domain .attributes ,
377+ self .data .domain .class_vars ,
378+ self .data .domain .metas + self .projection .domain .attributes )
378379 return data
379380
380381 def send_preprocessor (self ):
You can’t perform that action at this time.
0 commit comments