list_strain_maps#

Project.list_strain_maps(project, cca_names=None)#

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

Available Since: 2023R2

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

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

Return type:

list[CcaStrainMap]

Returns:

:
list[SherlockProjectService_pb2.ListStrainMapsResponse.CcaStrainMap]

All strain maps or strain maps for the specified CCAs.

Examples

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