Skip to content

Commit 9839b6c

Browse files
committed
fix: set stretch_morph to None when it is excluded
1 parent 2d791dd commit 9839b6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/diffpy/morph/morphapp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,8 @@ def single_morph(
667667
# Now remove non-refinable parameters
668668
if opts.exclude is not None:
669669
refpars = list(set(refpars) - set(opts.exclude))
670+
if "stretch" in opts.exclude:
671+
stretch_morph = None
670672

671673
# Refine or execute the morph
672674
refiner = refine.Refiner(

0 commit comments

Comments
 (0)