load_harmonic_profile#
- Lifecycle.load_harmonic_profile(project, phase_name, event_name, file_path)#
Load a harmonic profile from a DAT or CSV file to a life cycle phase.
- Parameters:
project (str) – Name of the Sherlock project
phase_name (str) – Name of the life cycle phase to add the harmonic profile to.
event_name (str) – Name of the harmonic event.
file_path (str) – Path for DAT or CSV file with the harmonic profile.
- Returns:
Status code of the response. 0 for success.
- Return type:
int
Example
>>> from ansys.sherlock.core.launcher import launch_sherlock >>> sherlock = launch_sherlock() >>> sherlock.project.import_odb_archive( "ODB++ Tutorial.tgz", True, True, True, True, project="Test", cca_name="Card", )
>>> loaded = sherlock.lifecycle.load_harmonic_profile( project="Tutorial", phase_name="Phase 1", event_name="Harmonic Event", file_path="Test_Profile.dat" )