Skip to content

Commit

Permalink
Prevent duplication of morphshift
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparks29032 committed Nov 12, 2024
1 parent a3de510 commit 641b5e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/diffpy/pdfmorph/pdfmorphapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,14 @@ def single_morph(parser, opts, pargs, stdout_flag=True):
config["stretch"] = stretch_in
refpars.append("stretch")
# Shift
if opts.hshift is not None or opts.vshift is not None:
chain.append(morphs.MorphShift())
if opts.hshift is not None:
hshift_in = opts.hshift
chain.append(morphs.MorphShift())
config["hshift"] = hshift_in
refpars.append("hshift")
if opts.vshift is not None:
vshift_in = opts.vshift
chain.append(morphs.MorphShift())
config["vshift"] = vshift_in
refpars.append("vshift")
# Smear
Expand Down

0 comments on commit 641b5e7

Please sign in to comment.