Skip to content

Galaxia import broken #1194

@LourensVeen

Description

@LourensVeen

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

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Bug

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions