Orcaflex File Conversion YAML Structure Validation

Sub-skill of orcaflex-file-conversion: YAML Structure Validation (+1).

vamseeachanta 770c3e3 752 B Updated

File contents

YAML Structure Validation (+1)

YAML Structure Validation

The converter validates:

  • File is readable YAML
  • Contains OrcaFlex-specific sections (General, Environment, etc.)
  • File size is reasonable (> 100 bytes)
  • No corruption during conversion

Round-Trip Validation

def validate_round_trip(original_dat: Path):
    """Validate .dat → .yml → .dat conversion."""
    import OrcFxAPI

    # Convert to YAML
    yml_file = original_dat.with_suffix('.yml')
    model1 = OrcFxAPI.Model(str(original_dat))
    model1.SaveData(str(yml_file))


*See sub-skills for full details.*

vamseeachanta/workspace-hub/tree/main/.agents/skills/_archive/engineering/marine-offshore/orcaflex-file-conversion/yaml-structure-validation commit 770c3e3155

Frequently asked questions

npx skillmds@latest add vamseeachanta/orcaflex-file-conversion-yaml-structure-validation