Beispiel #1
0
def map_series_to_surfaces(geo_model: Project,
                           mapping_object: Union[dict, pn.Categorical] = None,
                           set_series=True,
                           sort_geometric_data: bool = True,
                           remove_unused_series=True):
    """Mapping which surfaces belongs to which geological feature

    Args:
        geo_model (:class:`gempy.core.model.Project`): [s0]
        mapping_object: [s_mapping_object]
        set_series (bool): If True set missing series from the mapping object
        sort_geometric_data (bool): If True sort the geometric_data according to the new
         order of the stack
        remove_unused_series(bool):

    Returns
        :class:`gempy.core.data.Surfaces`
    """
    warnings.warn(
        'Series is going to get renamed to Stack. Please use'
        '`map_stack_to_surfaces` instead.', DeprecationWarning)

    geo_model.map_stack_to_surfaces(mapping_object, set_series,
                                    sort_geometric_data, remove_unused_series)
    return geo_model._surfaces
Beispiel #2
0
def map_stack_to_surfaces(geo_model: Project,
                          mapping_object: Union[dict, pn.Categorical] = None,
                          set_features=True,
                          sort_geometric_data: bool = True,
                          remove_unused_series=True):
    """Mapping which surfaces belongs to which geological feature

    Args:
        geo_model (:class:`gempy.core.model.Project`): [s0]
        mapping_object: [s_mapping_object]
        set_features (bool): If True set missing features from the mapping object
        sort_geometric_data (bool): If True sort the geometric_data according to the new
         order of the stack
        remove_unused_series(bool):

    Returns
        :class:`gempy.core.data.Surfaces`
    """

    geo_model.map_stack_to_surfaces(mapping_object, set_features,
                                    sort_geometric_data, remove_unused_series)
    return geo_model._surfaces