gempy.core.data_modules.stack.Stack

class gempy.core.data_modules.stack.Stack(features_names: Optional[Iterable] = None, fault_features: Optional[Iterable] = None, rel_matrix: Optional[Iterable] = None)[source]
Class that encapsulates all type of geological features. So far is Series and

Faults

Parameters
  • features_names (Iterable) – Names of the features

  • fault_features (Iterable) – List of features that are faults

  • rel_matrix

Examples using Stack

Methods

__init__([features_names, fault_features, …])

Initialize self.

add_series(series_list[, reset_order_series])

Add series to the df

count_faults(list_of_names)

Read the string names of the surfaces to detect automatically the number of df if the name fault is on the name.

delete_series(indices[, reset_order_series])

[s1] Drop specified labels from rows or columns.

modify_order_series(new_value, series_name)

Replace to the new location the old series

rename_series(new_categories)

[s0] Rename categories.

reorder_series(new_categories)

[s0] Reorder categories as specified in new_categories.

reset_order_series()

Reset the column order series to monotonic ascendant values.

set_bottom_relation(series_list, bottom_relation)

Set the bottom relation between the series and the one below.

set_default_faults_relations([offset_faults])

set_fault_relation([rel_matrix])

Method to set the df that offset a given sequence and therefore also another fault.

set_is_fault([series_fault, toggle, …])

Set a flag to the series that are faults.

set_is_finite_fault([series_finite, toggle])

Toggles given series’ finite fault property.

set_series_index(series_order[, …])

Rewrite the index of the series df

sort_series()

update_faults_index_rename()

update_faults_index_reorder()

__init__(features_names: Optional[Iterable] = None, fault_features: Optional[Iterable] = None, rel_matrix: Optional[Iterable] = None)[source]

Initialize self. See help(type(self)) for accurate signature.