Skip to content

State method .into_file has difficulty if current instantiated states is smaller that in the existing file #532

@JoelPasvolsky

Description

@JoelPasvolsky

If you save two states into a file (model.states.to_file()) you can replace those two states with new ones and also add states (model.states.into_file()) but if you try writing fewer states (either with smaller model.states.size() or with an uninitialized state), you get an error. Functionally that's fine but the error is unclear (BadZipFile: Bad magic number for central directory) so it would be nice to catch this with a clearer error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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