Skip to content

Commit 9491896

Browse files
committed
Merge branch 'remove-script-import'
* remove "Import PDFFit2 Script" menu and all related code * add tests to mostly maintain code coverage Close #38. Close #39.
2 parents 90d1fdb + f403ffc commit 9491896

17 files changed

Lines changed: 176 additions & 2410 deletions

src/diffpy/pdfgui/control/dumppdffit2script.py

Lines changed: 0 additions & 62 deletions
This file was deleted.

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

src/diffpy/pdfgui/control/parameter.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,3 @@ def __findLinkedFitting(self):
188188
return ref
189189

190190
# End of class Parameter
191-
192-
# simple test code
193-
if __name__ == "__main__":
194-
p = Parameter(3)
195-
p.setInitial(0.55)
196-
print "p.initialStr() =", p.initialStr()
197-
print "p.initialValue() =", p.initialValue()
198-
199-
# End of file

0 commit comments

Comments
 (0)