process_las_directory_with_workflow

petrophys.workflow.process_las_directory_with_workflow

process_las_directory_with_workflow(
input_dir,
output_dir,
pattern='*.las',
recursive=False,
config=None,
well_names=None,
)[source]

Interpret every LAS file in a folder with zone-aware settings.

Each file is run through run_dynamic_workflow_with_zones(); the interpreted LAS and a JSON log are written under output_dir with the input folder structure. Files that fail are reported, not raised.

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

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

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

  • recursive (bool, default False) – Also search subfolders.

  • config (DynamicWorkflowConfig, optional) – Base settings for every well. calculation_profile="geolink" selects the GeoLink evaluation configuration, resolved using each well’s UWI, WELL header or file name.

  • well_names (sequence of str, optional) – Only interpret files whose name (without extension) matches one of these well names.

Returns:

One entry per input file. Summarize with write_batch_report() and write_curve_audit_report().

Return type:

list of BatchLasResult

Raises:
  • FileNotFoundError – If input_dir is not an existing folder.

  • ValueError – If output_dir is input_dir: the exports would overwrite the source LAS files.