Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 507 Bytes

Ones.to_file.md

File metadata and controls

26 lines (16 loc) · 507 Bytes

Ones.to_file (function)

def to_file(self, filename, **kwargs)

Dump a representation of the nparray object to a json-formatted file. The nparray object should then be able to be fully restored via nparray.from_file.

Arguments

  • filename (string): path to the file to be created (will overwrite if already exists)
  • **kwargs: additional keyword arguments are passed to json.dumps.

Returns

  • (string): the filename