gempy.core.data.InterpolationOptions

class gempy.core.data.InterpolationOptions(range: int | float, c_o: float, uni_degree: int = 1, i_res: float = 4, gi_res: float = 2, number_dimensions: int = 3, number_octree_levels: int = 1, kernel_function: gempy_engine.core.data.kernel_classes.kernel_functions.AvailableKernelFunctions = <AvailableKernelFunctions.cubic: KernelFunction(base_function=<function cubic_function at 0x7fd36ccb52d0>, derivative_div_r=<function cubic_function_p_div_r at 0x7fd36ccb5360>, second_derivative=<function cubic_function_a at 0x7fd36ccb53f0>, consume_sq_distance=False)>, mesh_extraction: bool = True, compute_scalar_gradient: bool = True, compute_condition_number: bool = False)[source]

Methods

__init__(range, c_o[, uni_degree, i_res, ...])

update_options(**kwargs)

Updates the options of the class based on the provided keyword arguments.

Attributes

kernel_options

evaluation_options

temp_interpolation_values

debug

cache_mode

cache_model_name

block_solutions_type

sigmoid_slope

c_o

compute_corners

compute_scalar_gradient

debug_water_tight

evaluation_chunk_size

gi_res

i_res

is_last_octree_level

kernel_function

mesh_extraction

n_uni_eq

number_dimensions

number_octree_levels

number_octree_levels_surface

range

uni_degree

class CacheMode(value)[source]

An enumeration.

__init__(range: int | float, c_o: float, uni_degree: int = 1, i_res: float = 4, gi_res: float = 2, number_dimensions: int = 3, number_octree_levels: int = 1, kernel_function: AvailableKernelFunctions = AvailableKernelFunctions.cubic, mesh_extraction: bool = True, compute_scalar_gradient: bool = True, compute_condition_number: bool = False)[source]
update_options(**kwargs)[source]

Updates the options of the class based on the provided keyword arguments.

Kwargs:

kernel_options (KernelOptions, optional): Options for the kernel. Default is None. number_octree_levels (int, optional): Number of octree levels. Default is 1. current_octree_level (int, optional): Current octree level. Default is 0. compute_scalar_gradient (bool, optional): Whether to compute the scalar gradient. Default is False. dual_contouring (bool, optional): Whether to use dual contouring. Default is True. mesh_extraction_masking_options (MeshExtractionMaskingOptions, optional): Options for dual contouring masking. evalution_options.mesh_extraction_fancy (bool, optional): Fancy version of dual contouring. Default is True. debug (bool, optional): Debug mode status. Default is derived from config. debug_water_tight (bool, optional): Debug mode for water-tight conditions. Default is False. tensor_dtype (str, optional): Data type for tensors. Default is derived from config.

Returns:

None

Raises:

Warning – If a provided keyword is not a recognized attribute.