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 0x7fb8c80c53f0>, derivative_div_r=<function cubic_function_p_div_r at 0x7fb8c80c5480>, second_derivative=<function cubic_function_a at 0x7fb8c80c5510>, consume_sq_distance=False)>, mesh_extraction: bool = True, compute_scalar_gradient: bool = False, 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_optionsevaluation_optionstemp_interpolation_valuesdebugcache_modecache_model_nameblock_solutions_typesigmoid_slopec_ocompute_cornerscompute_scalar_gradientdebug_water_tightevaluation_chunk_sizegi_resi_resis_last_octree_levelkernel_functionmesh_extractionn_uni_eqnumber_dimensionsnumber_octree_levelsnumber_octree_levels_surfacerangeuni_degree- class CacheMode(value)[source]¶
Cache mode for the interpolation
- NO_CACHE: int = 1¶
No cache at all even during the interpolation computation. This is quite expensive for no good reason.
- __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 = False, 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.