Skip to content

Commit

Permalink
Merge pull request #26 from lcmd-epfl/fix-issue-22
Browse files Browse the repository at this point in the history
Fix charge and splin CLI for SPAHM(b) (issue #22)
  • Loading branch information
briling authored Apr 12, 2024
2 parents 348058b + 8aeda39 commit 61d3c3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qstack/spahm/rho/bond.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def main():

if args.filename.endswith('xyz'):
xyzlist = [args.filename]
charge = [int(args.charge) or 0]
spin = [int(args.spin) or 0]
charge = [int(args.charge) if args.charge else 0]
spin = [int(args.spin) if args.spin else None]
else:
xyzlistfile = args.filename
xyzlist = utils.get_xyzlist(xyzlistfile)
Expand Down

0 comments on commit 61d3c3b

Please sign in to comment.