save_thermal_profile#
- Lifecycle.save_thermal_profile(request)#
Save a thermal life cycle event profile to a .dat or .csv file.
Available Since: 2026R1
- Parameters:
- request
SaveThermalProfileRequest
Request object containing the information needed to save a thermal profile.
- request
- Returns:
- :
SherlockCommonService_pb2.ReturnCode
Status code of the response. 0 for success.
- Return type:
ReturnCode
Examples
>>> from ansys.sherlock.core.types.lifecycle_types import SaveThermalProfileRequest >>> from ansys.sherlock.core.launcher import launch_sherlock >>> sherlock = launch_sherlock() >>> response = sherlock.lifecycle.save_thermal_profile( >>> SaveThermalProfileRequest( >>> project="MyProject", >>> phase_name="ThermalPhase", >>> event_name="ThermalCycle_A", >>> file_path="/tmp/ThermalCycle_A.dat", >>> ) >>> ) >>> assert response.value == 0