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

Uploading the tools_STM_scan causes a circular import #157

Open
Raff-physics opened this issue Jul 11, 2024 · 0 comments
Open

Uploading the tools_STM_scan causes a circular import #157

Raff-physics opened this issue Jul 11, 2024 · 0 comments

Comments

@Raff-physics
Copy link
Contributor

There is a circular import when uploading the aiida_kkr.tools.tools_STM_scan, or even when importing aiida_kkr.tools.combine_imps

A workaround this issue is to import combine_imps_wc from aiida_kkr.workflows before calling the other modules.

A snippet is provided to reproduce the error:

from aiida_kkr.tools.tools_STM_scan import STM_pathfinder
# for host remote you will need the remote folder of a host calculation
vec, mat = STM_pathfinder(host_remote)

from aiida_kkr.tools.combine_imps import get_scoef_single_imp
from aiida_kkr.workflows import combine_imps_wc
@Raff-physics Raff-physics changed the title Uploading the tools_STM_scan causes a circulat import Uploading the tools_STM_scan causes a circular import Jul 11, 2024
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

1 participant