autosweep.data_types.FileWRer#

class autosweep.data_types.FileWRer[source]#

A class which classes that perform file read and writes inherit from.

__init__()[source]#

Methods

__init__()

from_dict(data)

A class method to generate a class instance from a dict

read_json(path)

Create a class instance from a JSON file

to_dict(**kwargs)

Used to turn the instance into a dictionary.

to_json(path)

Write the contents of the object instance to JSON in such a way that the classinstance can be re-generated.