import_thermal_signal#

Lifecycle.import_thermal_signal(request)#

Import a thermal signal to a life cycle phase.

Available Since: 2026R1

Parameters:
request: ImportThermalSignalRequest

Request object containing the information needed to import a thermal signal.

Returns:
:
SherlockCommonService_pb2.ReturnCode

Status 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()
>>> response = sherlock.lifecycle.import_thermal_signal(
>>> ImportThermalSignalRequest(
>>>         file_name="/path/to/thermal_signal_file.csv",
>>>         project="TestProject",
>>>         thermal_signal_file_properties=ThermalSignalFileProperties(
>>>             header_row_count=0,
>>>             numeric_format="English",
>>>             column_delimiter=",",
>>>             time_column="Time",
>>>             time_units="sec",
>>>             temperature_column="Temperature",
>>>             temperature_units="C"
>>>         ),
>>>         phase_name=phaseName,
>>>         time_removal= False,
>>>         load_range_percentage=0.25,
>>>         number_of_bins=0,
>>>         filtering_limit=0.0,
>>>         generated_cycles_label="Second Generated Cycles from Python",
>>>     )
>>> )