lifecycles.LifeCycle.write_json

LifeCycle.write_json(path: str) None

save the LifeCycle to a json file

Parameters:

path – the path to the json file

Returns:

None

Example:

>>> lc = LifeCycle()
>>> lc.add_partition([[1,2], [3,4,5]])
>>> lc.add_partition([[1,2,3], [4,5]])
>>> lc.write_json("lc.json")