Skip to content

Commit f403ffc

Browse files
committed
BUG: fix FitStructure.copy()
Correct copying of the `.refined` attribute.
1 parent 49be617 commit f403ffc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/diffpy/pdfgui/control/fitstructure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ def copy(self, other=None):
734734
if self.refined is None:
735735
other.refined = None
736736
else:
737-
self.refined.copy(other.refined)
737+
other.refined = self.refined.copy(other.refined)
738738
# copy constraints
739739
other.constraints = copy.deepcopy(self.constraints)
740740
other.selected_pairs = self.selected_pairs

0 commit comments

Comments
 (0)