[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Nov 18 08:10:41 PST 2016
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/fe6855412942/
Changeset: fe6855412942
Branch: yt
User: ngoldbaum
Date: 2016-11-07 20:04:29+00:00
Summary: [bugfix] explicitly use integer division in ramses time calculation
Affected #: 1 file
diff -r 334cceb2c6e197acf1a8c7f273ee9dd0bd592f58 -r fe685541294239e2e26805f66fd878fbd48b8c57 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])
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