-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Labels
area: community_codeIssue concerns a community code and/or its AMUSE bindingsIssue concerns a community code and/or its AMUSE bindingskind: bug
Description
Describe the bug
from amuse.community.galaxia import BarAndSpirals3D gives an error:
File "/home/spz/anaconda3/envs/amuse/lib/python3.13/site-packages/amuse/community/galaxia/__init__.py", line 1, in <module>
from .interface import Galaxia
ImportError: cannot import name 'Galaxia' from 'amuse.community.galaxia.interface' (/home/spz/anaconda3/envs/amuse/lib/python3.13/site-packages/amuse/community/galaxia/interface.py)
Galaxia should be available as BarAndSpirals3D (old name), Barandspirals3D (new standardised casing), and Galaxia, but the latter isn't forwarded by amuse/community/galaxia/interface.py and then the import in __init__.py fails. So that should be added, and the other names should be added to __init__.py.
I used a script to make these forwards for all the codes, and I guess it tripped over the inconsistent naming and I didn't do a good enough job of testing everything.
Thanks @spzwart for reporting.
Metadata
Metadata
Assignees
Labels
area: community_codeIssue concerns a community code and/or its AMUSE bindingsIssue concerns a community code and/or its AMUSE bindingskind: bug
Type
Projects
Status
Bug