Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 635 Bytes

BaseDistribution.to_file.md

File metadata and controls

31 lines (18 loc) · 635 Bytes

BaseDistribution.to_file (function)

def to_file(self, filename, **kwargs)

Save the json representation of the distribution object to a file.

The resulting file can be restored to the original object via distl.from_file.

See also:

Arguments

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

Returns

  • string: the filename