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

[BUG] _autotest_make_interstitial_"AttributeError: element"_ #502

Closed
Vibsteamer opened this issue Aug 20, 2021 · 2 comments
Closed

[BUG] _autotest_make_interstitial_"AttributeError: element"_ #502

Vibsteamer opened this issue Aug 20, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@Vibsteamer
Copy link
Collaborator

Summary
Can't create interstitial structure for specific element (Sc)

DPGEN Version and Platform

DeepModeling
------------
Version: 0.8.1.dev273+g815c9ce.d20210816
Date:    Aug-16-2021
Path:    /opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/dpgen

Dependency
------------
     numpy     1.20.2   /opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/numpy
    dpdata      0.2.0   /opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/dpdata
  pymatgen   2019.6.5   /opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/pymatgen
     monty      2.0.4   /opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/monty
       ase     3.17.0   /opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/ase
  paramiko      2.6.0   /opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/paramiko
 custodian  2019.2.10   /opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/custodian

Job submission and computing cluster configuration

Expected Behavior

Actual Behavior

Description
------------
------------------------------confs/bcc-------------------------------
Traceback (most recent call last):
  File "/opt/anaconda3/envs/dpgen/bin/dpgen", line 8, in <module>
    sys.exit(main())
  File "/opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/dpgen/main.py", line 175, in main
    args.func(args)
  File "/opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/dpgen/auto_test/run.py", line 57, in gen_test
    run_task(args.TASK, args.PARAM, args.MACHINE)
  File "/opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/dpgen/auto_test/run.py", line 28, in run_task
    make_property(confs, inter_parameter, property_list)
  File "/opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/dpgen/auto_test/common_prop.py", line 80, in make_property
    task_list = prop.make_confs(path_to_work, path_to_equi, do_refine)
  File "/opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/dpgen/auto_test/Interstitial.py", line 136, in make_confs
    vds = InterstitialGenerator(ss, ii)
  File "/opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/pymatgen/analysis/defects/generators.py", line 160, in __init__
    interstitial_finder = StructureMotifInterstitial(self.structure, self.element)
  File "/opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/pymatgen/analysis/defects/utils.py", line 350, in __init__
    elem = site.specie.element.symbol
  File "/opt/anaconda3/envs/dpgen/lib/python3.7/site-packages/pymatgen/core/periodic_table.py", line 1413, in __getattr__
    raise AttributeError(a)
AttributeError: element

Steps to Reproduce

dpgen autotest make PARAM

PARAM see below

Further Information, Files, and Links
PARAM

{
    "structures":       ["confs/bcc","confs/hcp","confs/fcc"],
    "interaction": {
        "type":          "vasp",
        "incar":         "./INCAR",
        "potcar_prefix": "./",
        "potcars":       {"Sc": "POTCAR_Sc"}
    },
    "properties": [

        {
         "type":         "interstitial",
         "supercell":    [2, 2, 2],
         "insert_ele":   ["Sc"],
         "conf_filters": {"min_dist": 1.5}
        }
    ]
}

Please touch-then-create-empty-files for those file needed by the file-exist check in "dpgen autotest make".

confs.zip

@Vibsteamer Vibsteamer added the bug Something isn't working label Aug 20, 2021
@HuangJiameng
Copy link
Collaborator

#696 I hope this may help you.

@Vibsteamer
Copy link
Collaborator Author

might be a element-type-dependent problem of pymatgen, has communicated with HuangJiameng, closed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants