pylabrobot.formulatrix.mantis.driver.master.MantisDriver.save_configuration#

MantisDriver.save_configuration(path: str, indent: int | None = 2) → None#

Write what this device reported to a file, to be declared later (declared_configuration_json), with the unit’s blocks; none taken from a recording. The sensor calibration is not written: it is read at every setup.

Parameters:
  • path (str) – where to write it.

  • indent (int | None) – how far to indent the JSON, or None to write it on one line.

Raises:

MantisNotConnectedError – if nothing has been read off the device yet.

Return type:

None