Skip to content

Commit

Permalink
update simple_example which required a few mods to the visual module
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnymaserati committed Nov 12, 2023
1 parent e814cc8 commit d0a1afc
Show file tree
Hide file tree
Showing 4 changed files with 1,020 additions and 8 deletions.
11 changes: 8 additions & 3 deletions examples/simple_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
author: Jonny Corcutt
email: jonnycorcutt@gmail.com
date: 29-09-2021
updated: 12-11-2023
'''
import welleng as we
from tabulate import tabulate
Expand Down Expand Up @@ -85,16 +86,20 @@
)

print("Calculating ISCWSA clearance...")
clearance_ISCWSA = we.clearance.ISCWSA(c)
clearance_ISCWSA = we.clearance.IscwsaClearance(
survey_reference, survey_offset
)

print("Calculating mesh clearance...")
clearance_mesh = we.clearance.MeshClearance(c, sigma=2.445)
clearance_mesh = we.clearance.MeshClearance(
survey_reference, survey_offset, sigma=2.445
)

# tabulate the Separation Factor results and print them
results = [
[md, sf0, sf1]
for md, sf0, sf1
in zip(c.reference.md, clearance_ISCWSA.SF, clearance_mesh.SF)
in zip(c.reference.md, clearance_ISCWSA.sf, clearance_mesh.sf)
]

print("RESULTS\n-------")
Expand Down
Loading

0 comments on commit d0a1afc

Please sign in to comment.