export_example_work_package_directory

petrophys.reporting.export_example_work_package_directory

export_example_work_package_directory(
input_dir,
output_dir,
pattern='*.las',
recursive=False,
)[source]

Interpret every LAS file in a folder and write a delivery work package.

For each file, curve names and units are standardized and the dynamic workflow runs with the depth-zoned settings found in the LAS header (see run_dynamic_workflow_with_zones()). The interpreted well is written by export_example_format_las(), and a JSON file with the same name holds an analysis summary and notes on how each derived log was computed. The output folder mirrors the input folder’s layout. A file that fails is recorded and the others still run.

Parameters:
  • input_dir (str or Path) – Folder of LAS files.

  • output_dir (str or Path) – Folder for the LAS and JSON files; created if needed.

  • pattern (str, optional) – Glob pattern selecting the input files; "*.las" by default.

  • recursive (bool, default False) – Search subfolders of input_dir as well.

Returns:

One result per input file. success is False when the workflow reported errors; workflow warnings and errors are kept on the result.

Return type:

list of ExampleFormatExportResult

See also

export_reference_json_work_package_directory

The same package with reference-format JSON context files.