States.from_file(file, *, replace=True, check_header=True)#

Construct states from the given file.

  • file – File pointer to a readable, seekable file-like object encoding the states. Strings are interpreted as a file name.

  • replace – If True, any held states are replaced with those from the file. If False, the states are appended.

  • check_header – Set to False to skip file-header check.


A model.