Skip to content

Some properties are copied by reference in Structure.copy() #1289

@daico007

Description

@daico007

Some of properties in parmed.Structure.copy() is actually copied by reference (atom.atom_type specifically. This becomes an issue when the copied structure (e.g., apply nbfix) was modified also accidentally altered the original structure, which may lead to other unexpected behavior.

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