Error Handling
Error Handling
try:
images = generate_model_views(sim_file, output_dir)
except OrcFxAPI.OrcaFlexError as e:
print(f"OrcaFlex error: {e}")
print("Check simulation file is valid")
except FileNotFoundError:
print("Simulation file not found")