set_theano_shared_pos_density
是Gempy库gempy.core.interpolator.InterpolatorGravity
类中的一种方法。该方法用于将pos_density_shared
变量设置为给定的密度值。
InterpolatorGravity.set_theano_shared_pos_density(pos_density: float)
pos_density
:float类型,pos_density的新值。该方法不返回任何值。
import gempy as gp
geo_model = gp.create_model("example")
gp.init_data(geo_model, extent=[0, 1000, 0, 1000, 0, 1000], resolution=[50, 50, 50],
path_i="../assets/input_data/tut_chapter1/simple_fault_model_top.pkl")
gp.map_series_to_surfaces(geo_model, {"Fault_Series": 'Main_Fault', "Strat_Series": ('Sandstone_2', 'Siltstone',
'Shale', 'Sandstone_1',
'Basement')})
gp.set_is_fault(geo_model, {'Fault_Series': True})
gp.set_is_finite(geo_model, {"Basement": True})
gp.set_topography(geo_model, -200, 20)
interp = gp.InterpolatorGravity(geo_model)
interp.set_theano_shared_pos_density(2.1)