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

TB2J-abacus question #65

Open
matphy1 opened this issue Nov 28, 2024 · 1 comment
Open

TB2J-abacus question #65

matphy1 opened this issue Nov 28, 2024 · 1 comment

Comments

@matphy1
Copy link

matphy1 commented Nov 28, 2024

I used abacus 3.8.3 to calculate the non-collinear system, and after using lcao-based group calculation, I encountered such an error when running TB2J. The system has 12 magnetic atoms and the magnetic moments are non-collinear. What is the reason? Can you help me analyze it? thank you

This is the log file:

TB2J version 0.9.0.1
Copyright (C) 2018-2024 TB2J group.
This software is distributed with the 2-Clause BSD License, without any warranty. For more details, see the LICENSE file delivered with this software.

Traceback (most recent call last):
File "/home/mat/apps/anaconda3/bin/abacus2J.py", line 151, in
run_abacus2J()
File "/home/mat/apps/anaconda3/bin/abacus2J.py", line 132, in run_abacus2J
gen_exchange_abacus(
File "/home/mat/apps/anaconda3/lib/python3.11/site-packages/TB2J/abacus/gen_exchange_abacus.py", line 38, in gen_exchange_abacus
parser = AbacusParser(outpath=outpath, spin=None, binary=binary)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mat/apps/anaconda3/lib/python3.11/site-packages/TB2J/abacus/abacus_wrapper.py", line 125, in init
self.read_atoms()
File "/home/mat/apps/anaconda3/lib/python3.11/site-packages/TB2J/abacus/abacus_wrapper.py", line 147, in read_atoms
self.atoms = read_abacus(path1)
^^^^^^^^^^^^^^^^^^
File "/home/mat/apps/anaconda3/lib/python3.11/site-packages/ase/utils/init.py", line 577, in iofunc
obj = func(fd, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mat/apps/anaconda3/lib/python3.11/site-packages/TB2J/abacus/stru_api.py", line 810, in read_abacus
atom_block = np.array(atom_block)
^^^^^^^^^^^^^^^^^^^^
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (21,) + inhomogeneous part.

@mailhexu
Copy link
Owner

mailhexu commented Dec 7, 2024

Hi, Could you try with the latest version of TB2J? non-collinear spin was not supported in version 0.9.0.1.
Best,
HeXu

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