Skip to content

Failure to Generate graph_data.npz for ABACUS LCAO Calculations #101

Description

@TiacWei

When using the HamGNN ABACUS interface (graph_data_gen_abacus.py) to generate graph_data.npz from ABACUS SCF calculations:
Success: LCAO Si (official ABACUS example) → generates graph_data.npz normally
Failure: LCAO Cu, LCAO ZnO (official ABACUS example) → script crashes with TypeError: data must be a sequence (got NoneType)
Tested ABACUS versions: v3.10.1 and v3.5.3 (same failure behavior)
Pre-requisite files generated successfully: data-H0R-sparse_SPIN0.csr / data-S0R-sparse_SPIN0.csr
Error Details
Full traceback from the script:

Processing 1 SCF outputs with 1 worker(s), worker_threads=1, chunksize=1.
Processing SCF Outputs:   0%|                                                                                                                                                             | 0/1 [00:00<?, ?it/s]Error generating Hamiltonian and overlap matrices: 29
Processing SCF Outputs:   0%|                                                                                                                                                             | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/home/user01/software/HamGNN-main/DFT_interfaces/abacus/graph_data_gen_abacus.py", line 757, in <module>
    main()
  File "/home/user01/software/HamGNN-main/DFT_interfaces/abacus/graph_data_gen_abacus.py", line 723, in main
    _, success, graph, payload = generate_graph(task)
  File "/home/user01/software/HamGNN-main/DFT_interfaces/abacus/graph_data_gen_abacus.py", line 646, in generate_graph
    hamiltonian=torch.FloatTensor(H),
TypeError: new(): data must be a sequence (got NoneType)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions