From 501f3a71c39f3d596e36beda30063196dc7bc7db Mon Sep 17 00:00:00 2001 From: Marko Toplak Date: Mon, 25 May 2020 10:03:48 +0200 Subject: [PATCH] owpca: fix subsets with the "Data" output Ids were not copied when doing Table.from_numpy --- Orange/widgets/unsupervised/owpca.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Orange/widgets/unsupervised/owpca.py b/Orange/widgets/unsupervised/owpca.py index 4fc4046e736..f03b52167c2 100644 --- a/Orange/widgets/unsupervised/owpca.py +++ b/Orange/widgets/unsupervised/owpca.py @@ -318,7 +318,8 @@ def commit(self): self.data.domain.metas + domain.attributes) data = Table.from_numpy( data_dom, self.data.X, self.data.Y, - numpy.hstack((self.data.metas, transformed.X))) + numpy.hstack((self.data.metas, transformed.X)), + ids=self.data.ids) self._pca_projector.component = self.ncomponents self.Outputs.transformed_data.send(transformed)