Orcaflex Post Processing Parallel Processing Details

Sub-skill of orcaflex-post-processing: Parallel Processing Details.

vamseeachanta 7400eef 1.0 KB Updated

File contents

Parallel Processing Details

Parallel Processing Details

The OPP module uses ProcessPoolExecutor for efficient batch processing:

# From opp.py - parallel processing pattern
from concurrent.futures import ProcessPoolExecutor, as_completed

def process_sim_files_parallel(sim_files, cfg, max_workers=4):
    """Process multiple .sim files in parallel."""
    results = {}

    with ProcessPoolExecutor(max_workers=max_workers) as executor:
        future_to_file = {
            executor.submit(process_single_sim, f, cfg): f
            for f in sim_files
        }

        for future in as_completed(future_to_file):
            file_name = future_to_file[future]
            try:
                result = future.result()
                results[file_name] = result
            except Exception as e:
                results[file_name] = {"error": str(e)}

    return results

vamseeachanta/workspace-hub/tree/main/.agents/skills/_archive/engineering/marine-offshore/orcaflex-post-processing/parallel-processing-details commit 7400eef3d4

Frequently asked questions

npx skillmds@latest add vamseeachanta/orcaflex-post-processing-parallel-processing-details