update_life_cycle#
- Lifecycle.update_life_cycle(request)#
Update life cycle.
Available Since: 2026R1
- Parameters:
- request: UpdateLifeCycleRequest
Request object containing the information needed to update the life cycle. Reliability unit options are: “Reliability (%)”, “Prob. of Failure (%)”, “MTBF (years)”, “MTBF (hours)”, “FITs (1E6 hrs)”, “FITs (1E9 hrs)”
Service life unit options are: “year”,”day”,”hr”, “min”,”sec”
- Returns:
- :
SherlockCommonService_pb2.ReturnCodeStatus code of the response. 0 for success.
- Return type:
ReturnCode
Examples
>>> from ansys.sherlock.core.types.lifecycle_types import ImportThermalSignalRequest >>> from ansys.sherlock.core.types.lifecycle_types import ThermalSignalFileProperties >>> from ansys.sherlock.core.launcher import launch_sherlock >>> sherlock = launch_sherlock() >>> >>> project = "Tutorial Project" >>> new_name = "new name" >>> new_description = "new description" >>> new_reliability_metric = 60 >>> new_reliability_metric_units = "year" >>> new_service_life = 0 >>> new_service_life_units = "sec" >>> result_archive_file_name = "filename" >>> >>> return_code = lifecycle.update_life_cycle( >>> UpdateLifeCycleRequest( >>> project=project, >>> new_name=new_name, >>> new_description=new_description, >>> new_reliability_metric=new_reliability_metric, >>> new_reliability_metric_units=new_reliability_metric_units, >>> new_service_life=new_service_life, >>> new_service_life_units=new_service_life_units, >>> result_archive_file_name=result_archive_file_name >>> ) >>> )