Skip to content

Commit

Permalink
docs: 📝 updating documentation for evaluate model
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachlan Grose committed Feb 19, 2022
1 parent 79a8d70 commit 1dcc716
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions LoopStructural/modelling/core/geological_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1645,11 +1645,11 @@ def evaluate_model(self, xyz, scale=True):
nsteps[2])
>>> xx, yy, zz = np.meshgrid(x, y, z, indexing='ij')
>>> xyz = np.array([xx.flatten(), yy.flatten(), zz.flatten()]).T
>>> model.evaluate_model(xyz)
>>> model.evaluate_model(xyz,scale=False)
Evaluate on points defined by regular grid function
>>> model.evaluate_model(model.regular_grid())
>>> model.evaluate_model(model.regular_grid(shuffle=False),scale=False)
Evaluate on a map
Expand All @@ -1661,7 +1661,10 @@ def evaluate_model(self, xyz, scale=True):
>>> xx, yy = np.meshgrid(x, y, indexing='ij')
>>> zz = np.zeros_like(yy)
>>> xyz = np.array([xx.flatten(), yy.flatten(), zz.flatten()]).T
>>> model.evaluate_model(xyz)
>>> model.evaluate_model(model.regular_grid(shuffle=False),scale=False)
Evaluate on points in reference coordinate system
>>> model.evaluate_model(xyz,scale=True)
"""
xyz = np.array(xyz)
Expand Down

0 comments on commit 1dcc716

Please sign in to comment.