list_strain_maps#

Project.list_strain_maps(project: str, cca_names: list[str] | None = None) list[SherlockProjectService_pb2.ListStrainMapsResponse.CcaStrainMap]#

List the strain maps assigned to each CCA or given CCAs.

Available Since: 2023R2

Parameters:
  • project (str) – Name of the Sherlock project.

  • cca_names (list[str], optional) – CCA names to provide strain maps for. The default is None, in which case all CCAs in the project are returned.

Returns:

All strain maps or strain maps for the specified CCAs.

Return type:

list[SherlockProjectService_pb2.ListStrainMapsResponse.CcaStrainMap]

Examples

>>> from ansys.sherlock.core.launcher import launch_sherlock
>>> sherlock = launch_sherlock()
>>> strain_maps = sherlock.project.list_strain_maps(
    "AssemblyTutorial",
    ["Main Board","Power Module"]
)