Orcawave Qtf Analysis Error Handling

Sub-skill of orcawave-qtf-analysis: Error Handling.

vamseeachanta Updated

File contents

Error Handling

Error Handling

# Handle QTF computation errors
try:
    results = qtf.compute()
except InsufficientFrequencyResolutionError as e:
    print(f"Need finer frequency resolution: {e}")
    # Increase frequency count
    qtf.configure(frequencies=np.linspace(0.02, 0.5, 50))
    results = qtf.compute()

except HeadingPairError as e:
    print(f"Invalid heading pair configuration: {e}")

except ConvergenceError as e:
    print(f"QTF computation did not converge: {e}")
    # Try different method
    results = qtf.compute(method="control_surface")

vamseeachanta/workspace-hub/tree/main/.agents/skills/_archive/engineering/marine-offshore/orcawave-qtf-analysis/error-handling commit dc8f0618c1

Frequently asked questions

npx skillmds@latest add vamseeachanta/orcawave-qtf-analysis-error-handling