Skip to content

Getting UnboundLocalError in atoms.py #855

@aimura09

Description

@aimura09

Hi team,

Thanks for the amazing work!
I'm getting the following error because cancat_atoms is not defined as a local variable.

[rank0]:   File "/usr/envs/project/lib/python3.11/site-packages/biotite/structure/atoms.py", line 1372, in concatenate
[rank0]:     concat_atoms.coord = np.concatenate([element.coord for element in atoms], axis=-2)
[rank0]:     ^^^^^^^^^^^^
[rank0]: UnboundLocalError: cannot access local variable 'concat_atoms' where it is not associated with a value

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions