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):