[yt-svn] commit/yt: MatthewTurk: Merged in ngoldbaum/yt (pull request #2433)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Nov 18 08:10:39 PST 2016


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/fb1b143f488c/
Changeset:   fb1b143f488c
Branch:      yt
User:        MatthewTurk
Date:        2016-11-18 16:10:14+00:00
Summary:     Merged in ngoldbaum/yt (pull request #2433)

[bugfix] explicitly use integer division in ramses time calculation
Affected #:  1 file

diff -r f89d0e732f1f4f4d030fde1aca7e4ddff1500f7b -r fb1b143f488cd3dbfaeb84aa6c745df8d4daef5e yt/frontends/ramses/data_structures.py
--- a/yt/frontends/ramses/data_structures.py
+++ b/yt/frontends/ramses/data_structures.py
@@ -654,7 +654,7 @@
 
             age = self.parameters['time']
             iage = 1 + int(10.*age/self.dtau)
-            iage = np.min([iage,self.n_frw/2 + (iage - self.n_frw/2)/10])
+            iage = np.min([iage,self.n_frw//2 + (iage - self.n_frw//2)//10])
 
             self.time_simu = self.t_frw[iage  ]*(age-self.tau_frw[iage-1])/(self.tau_frw[iage]-self.tau_frw[iage-1])+ \
                              self.t_frw[iage-1]*(age-self.tau_frw[iage  ])/(self.tau_frw[iage-1]-self.tau_frw[iage])

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