Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Zn atom #23

Open
almeida85 opened this issue Mar 25, 2022 · 1 comment
Open

Error with Zn atom #23

almeida85 opened this issue Mar 25, 2022 · 1 comment

Comments

@almeida85
Copy link

Hello,

I am trying to prepare a DSSB system with pmx doublebox, but I get an error with a Zn atom. I have tried saving the pdb in several ways but still get this error:

Traceback (most recent call last):
  File "/home/almeida/.local/bin/pmx", line 8, in <module>
    sys.exit(entry_point())
  File "/home/almeida/.local/lib/python3.8/site-packages/pmx/scripts/cli.py", line 97, in entry_point
    PmxCli()
  File "/home/almeida/.local/lib/python3.8/site-packages/pmx/scripts/cli.py", line 44, in __init__
    getattr(self, args.command)()
  File "/home/almeida/.local/lib/python3.8/site-packages/pmx/scripts/cli.py", line 68, in doublebox
    make_double_box.entry_point()
  File "/home/almeida/.local/lib/python3.8/site-packages/pmx/scripts/make_double_box.py", line 72, in entry_point
    main(args)
  File "/home/almeida/.local/lib/python3.8/site-packages/pmx/scripts/make_double_box.py", line 65, in main
    mout = double_box(m1=m1, m2=m2, r=args.r, d=args.d,
  File "/home/almeida/.local/lib/python3.8/site-packages/pmx/model.py", line 1165, in double_box
    com1, rad1 = _get_com_radius(m1)
  File "/home/almeida/.local/lib/python3.8/site-packages/pmx/model.py", line 1087, in _get_com_radius
    amass = _get_mass(a)
  File "/home/almeida/.local/lib/python3.8/site-packages/pmx/model.py", line 1036, in _get_mass
    return(library._atommass[aname[0]])
KeyError: 'Z'

Any help will be appreciated.
Best

@vgapsys
Copy link
Member

vgapsys commented Apr 26, 2022

Fixed in the commit 203ce71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants