From 89528f8c9b38ab839e512769bd80e5b755860281 Mon Sep 17 00:00:00 2001 From: Ray Osborn Date: Tue, 4 Jun 2024 10:21:02 -0500 Subject: [PATCH] Adds the parent group to the weighted data function. --- src/nexusformat/nexus/tree.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nexusformat/nexus/tree.py b/src/nexusformat/nexus/tree.py index c3d55b3..07dc993 100644 --- a/src/nexusformat/nexus/tree.py +++ b/src/nexusformat/nexus/tree.py @@ -6395,6 +6395,7 @@ def weighted_data(self): raise NeXusError("No signal defined for this NXdata group") elif weights is None: raise NeXusError("No weights defined for this NXdata group") + result._group = self._group return result def prepare_smoothing(self):