Skip to content

Commit 0acbd94

Browse files
committed
Update logic
1 parent 745d41f commit 0acbd94

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/diffpy/morph/morphapp.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,10 @@ def single_morph(parser, opts, pargs, stdout_flag=True, python_wrap=False):
410410
parser.error(
411411
"Too many arguments. Make sure you only supply FILE1 and FILE2."
412412
)
413-
elif len(pargs) != 6 and not python_wrap:
414-
parser.error("Python wrapper error.")
413+
elif (len(pargs) != 2 or len(pargs) != 6) and python_wrap:
414+
parser.error(
415+
"Python wrapper error."
416+
)
415417

416418
# Get the PDFs
417419
# If we get from python, we may wrap, which has input size 4

0 commit comments

Comments
 (0)