Skip to content

Allow interface functions to infer single spins/sites #162

@mducle

Description

@mducle

Some users have been typing e.g. positions=[0,0,0], spins=[0,1,0] in the interface functions generate_structure and generate_helical_structure but this errors as the functions expect a 2D array of multiple spins, e.g. [[0,0,0]]. The functions should be able to infer / convert un-nested list for single spins.

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