#8118 Python: rename new_stim_plan* and new_fracture* method names (#8175)

This commit is contained in:
Kristian Bendiksen
2021-10-24 09:13:42 +02:00
committed by GitHub
parent 9777112527
commit 8e0b69b3e7
12 changed files with 66 additions and 63 deletions

View File

@@ -28,7 +28,7 @@ time_step = time_steps[len(time_steps) - 1]
# Create stim plan model template
fmt_collection = project.descendants(rips.StimPlanModelTemplateCollection)[0]
stim_plan_model_template = fmt_collection.new_stim_plan_model_template(
stim_plan_model_template = fmt_collection.append_stim_plan_model_template(
eclipse_case=case,
time_step=time_step,
elastic_properties_file_path=elastic_properties_file_path,
@@ -84,7 +84,7 @@ measured_depths = [3200.0, 3400.0, 3600.0]
for measured_depth in measured_depths:
# Create stim plan model at a give measured depth
stim_plan_model = stim_plan_model_collection.new_stim_plan_model(
stim_plan_model = stim_plan_model_collection.append_stim_plan_model(
well_path=well_path,
measured_depth=measured_depth,
stim_plan_model_template=stim_plan_model_template,
@@ -107,7 +107,7 @@ for measured_depth in measured_depths:
stim_plan_model_plot_collection = project.descendants(
rips.StimPlanModelPlotCollection
)[0]
stim_plan_model_plot = stim_plan_model_plot_collection.new_stim_plan_model_plot(
stim_plan_model_plot = stim_plan_model_plot_collection.append_stim_plan_model_plot(
stim_plan_model=stim_plan_model
)

View File

@@ -19,7 +19,9 @@ case = cases[0]
# Create stim plan template
fmt_collection = project.descendants(rips.FractureDefinitionCollection)[0]
fracture_template = fmt_collection.new_fracture_template(file_path=stim_plan_file_path)
fracture_template = fmt_collection.append_fracture_template(
file_path=stim_plan_file_path
)
well_name = "B-2 H"
@@ -33,7 +35,7 @@ for measured_depth in measured_depths:
print("Placing fracture at {} depth (MD)".format(measured_depth))
# Create stim plan at a give measured depth
fracture = well_path.new_fracture(
fracture = well_path.add_fracture(
measured_depth=measured_depth,
stim_plan_fracture_template=fracture_template,
)