playnano.analysis.export module

Functions for exporting ananlysis results.

playnano.analysis.export.export_analysis_to_json(out_path: str, analysis_record: dict[str, Any]) None[source]

Write the analysis_record (returned by AnalysisPipeline.run) to JSON.

Parameters:
  • out_path (str) – Output file path.

  • analysis_record (dict) – Analysis record to serialize.

Return type:

None

Raises:

OSError – If the file cannot be written.