Export¶ Basic data export functionality for XRayLabTool. Simplified export capabilities for essential file formats. xraylabtool.export.export_to_csv(results, output_path, fields=None)[source]¶ Export X-ray results to CSV format. Parameters: results (list[XRayResult]) – List of XRayResult objects to export output_path (Path) – Path to output CSV file fields (list[str] | None) – List of field names to export (all if None) Return type: None xraylabtool.export.export_to_json(results, output_path)[source]¶ Export X-ray results to JSON format. Parameters: results (list[XRayResult]) – List of XRayResult objects to export output_path (Path) – Path to output JSON file Return type: None