pylabrobot.resources.Well.save_state_to_file#

Well.save_state_to_file(fn: str, indent: int | None = None)#

Save the state of this resource and all children to a JSON file.

Parameters:
  • fn (str) – File name. Caution: file will be overwritten.

  • indent (int | None) – Same as json.dump’s indent argument (for json pretty printing).

Examples

Saving to a json file:

>>> deck.save_state_to_file("my_state.json")