[cig-commits] [commit] master: Fix example seismic so that the depth list works (06e9d6d)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Fri Dec 12 20:27:30 PST 2014
Repository : https://github.com/geodynamics/burnman
On branch : master
Link : https://github.com/geodynamics/burnman/compare/8907ab9fe8891a34ae7961db7e1698e524205055...01d4aa027e2cb33852b7efdd80e67d64e5ec8f9c
>---------------------------------------------------------------
commit 06e9d6d48b4a4e6d958e62571745442a04c0db49
Author: ian-r-rose <ian.r.rose at gmail.com>
Date: Fri Dec 12 20:23:52 2014 -0800
Fix example seismic so that the depth list works
>---------------------------------------------------------------
06e9d6d48b4a4e6d958e62571745442a04c0db49
examples/example_seismic.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/example_seismic.py b/examples/example_seismic.py
index 4f5d1de..3a1de7e 100644
--- a/examples/example_seismic.py
+++ b/examples/example_seismic.py
@@ -47,7 +47,7 @@ if __name__ == "__main__":
# specify where we want to evaluate, here we map from pressure to depth
#format p = np.arange (starting pressure, ending pressure, pressure step) (in Pa)
p = np.arange(1.0e9,360.0e9,5e9)
- depths = map(s.depth, p)
+ depths = np.array([s.depth(pr) for pr in p])
#we could also just specify some depth levels directly like this:
#depths = np.arange(35e3,5600e3,100e3)
#we could also use the data points where the seismic model is specified:
More information about the CIG-COMMITS
mailing list