get_spatial_from_asset#

nominal.experimental.spatial.get_spatial_from_asset(asset, data_scope_name)#

Retrieve a spatial from an asset by data scope name.

Parameters:
  • asset (Asset)

    Asset to resolve the scope on.

  • data_scope_name (str)

    Name of the asset data scope to resolve.

Returns:

The spatial associated with the data scope name.

Raises:

NominalNotFoundError – If no readable spatial has this data scope name.

Return type:

Spatial