Skip to content

LIONmodel.load() error for models without geometry with saved geometry #166

@AnderBiguri

Description

@AnderBiguri

Currently the function checks if the saved data has a geometry and if so, calls the initialization with model_parameters and geometry:

if hasattr(options, "geometry"):

This errors if the model does not take a geometry.

Two options:

1- Always make LIONmodels take a geometry, even if they don't use it
2- Change this code to check if the model wants a geometry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions