Skip to content

Commit 8aeda39

Browse files
committed
Fix charge and splin CLI for SPAHM(b) (issue #22)
1 parent 348058b commit 8aeda39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qstack/spahm/rho/bond.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def main():
8383

8484
if args.filename.endswith('xyz'):
8585
xyzlist = [args.filename]
86-
charge = [int(args.charge) or 0]
87-
spin = [int(args.spin) or 0]
86+
charge = [int(args.charge) if args.charge else 0]
87+
spin = [int(args.spin) if args.spin else None]
8888
else:
8989
xyzlistfile = args.filename
9090
xyzlist = utils.get_xyzlist(xyzlistfile)

0 commit comments

Comments
 (0)