[yt-svn] commit/yt: 2 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Sep 5 11:47:21 PDT 2014


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/c73af5533795/
Changeset:   c73af5533795
Branch:      yt
User:        mzingale
Date:        2014-09-05 20:35:45
Summary:     fix the way this is loaded so we can run this in the documentation.

Also change the maximum wavenumber to be more meaningful
Affected #:  1 file

diff -r f6f3c6119843f16d7a6b3be639de1209f6f464bc -r c73af553379522d78779dc28a00e69bd0613697b doc/source/cookbook/power_spectrum_example.py
--- a/doc/source/cookbook/power_spectrum_example.py
+++ b/doc/source/cookbook/power_spectrum_example.py
@@ -57,7 +57,7 @@
     
     # physical limits to the wavenumbers
     kmin = np.min(1.0/L)
-    kmax = np.max(0.5*dims/L)
+    kmax = np.min(0.5*dims/L)
     
     kbins = np.arange(kmin, kmax, kmin)
     N = len(kbins)
@@ -112,7 +112,6 @@
     return np.abs(ru)**2
 
 
-if __name__ == "__main__":
 
-    ds = yt.load("maestro_xrb_lores_23437")
-    doit(ds)
+ds = yt.load("maestro_xrb_lores_23437")
+doit(ds)


https://bitbucket.org/yt_analysis/yt/commits/26d5d6adac5f/
Changeset:   26d5d6adac5f
Branch:      yt
User:        mzingale
Date:        2014-09-05 20:36:12
Summary:     merge
Affected #:  1 file

diff -r 627128ec2f64d997bebfa5b40da835a977af4814 -r 26d5d6adac5fd0d2fba836998eb2a56f46427dd3 doc/source/cookbook/power_spectrum_example.py
--- a/doc/source/cookbook/power_spectrum_example.py
+++ b/doc/source/cookbook/power_spectrum_example.py
@@ -57,7 +57,7 @@
     
     # physical limits to the wavenumbers
     kmin = np.min(1.0/L)
-    kmax = np.max(0.5*dims/L)
+    kmax = np.min(0.5*dims/L)
     
     kbins = np.arange(kmin, kmax, kmin)
     N = len(kbins)
@@ -112,7 +112,6 @@
     return np.abs(ru)**2
 
 
-if __name__ == "__main__":
 
-    ds = yt.load("maestro_xrb_lores_23437")
-    doit(ds)
+ds = yt.load("maestro_xrb_lores_23437")
+doit(ds)

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list