[Greater-commits] r3601 - trunk/GREAT-ERModel/GreaterModel/Worker
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Jul 15 11:02:31 CEST 2011
Author: aheinecke
Date: 2011-07-15 11:02:30 +0200 (Fri, 15 Jul 2011)
New Revision: 3601
Modified:
trunk/GREAT-ERModel/GreaterModel/Worker/simpletreatmodel.py
Log:
Use lowercase float for calulactions there is no Float in numpy
Modified: trunk/GREAT-ERModel/GreaterModel/Worker/simpletreatmodel.py
===================================================================
--- trunk/GREAT-ERModel/GreaterModel/Worker/simpletreatmodel.py 2011-07-14 15:51:55 UTC (rev 3600)
+++ trunk/GREAT-ERModel/GreaterModel/Worker/simpletreatmodel.py 2011-07-15 09:02:30 UTC (rev 3601)
@@ -17,7 +17,6 @@
from numpy import *
from numpy.linalg import *
-from numpy import float64 as Float
from numpy.linalg import solve as solve_linear_equations
from stochasticresult import StochasticResult
@@ -233,13 +232,13 @@
ID = self.ID
# Matrices and vectors
- V = zeros((5), Float)
- k = zeros((5), Float)
- conc = zeros((5), Float)
- PHI = zeros((5), Float)
- ADV = zeros((5,5), Float)
- XCH = zeros((5,5), Float)
- COEF = zeros((5,5), Float)
+ V = zeros((5), float)
+ k = zeros((5), float)
+ conc = zeros((5), float)
+ PHI = zeros((5), float)
+ ADV = zeros((5,5), float)
+ XCH = zeros((5,5), float)
+ COEF = zeros((5,5), float)
# Settler Efficiency
fraction_treated = self.FractionTreated(
@@ -329,8 +328,8 @@
# is not considered.
# See GREAT-ER, Technical Documentation, G. Boeije, 1999 for Details.
- PHI_ = zeros((4), Float)
- COEF_ = zeros((4,4), Float)
+ PHI_ = zeros((4), float)
+ COEF_ = zeros((4,4), float)
for i in range(1,5):
for j in range(1,5):
@@ -711,12 +710,12 @@
ID = self.ID
# Matrices and vectors
- V = zeros((7), Float)
- k = zeros((7), Float)
- conc = zeros((7), Float)
- PHI = zeros((7), Float)
- ADV = zeros((7,7), Float)
- XCH = zeros((7,7), Float)
+ V = zeros((7), float)
+ k = zeros((7), float)
+ conc = zeros((7), float)
+ PHI = zeros((7), float)
+ ADV = zeros((7,7), float)
+ XCH = zeros((7,7), float)
# Secondary Settler Efficiency
fraction_treated = self.FractionTreated(
@@ -991,8 +990,8 @@
# is not considered.
# See GREAT-ER, Technical Documentation, G. Boeije, 1999 for Details.
- PHI_ = zeros((6), Float)
- COEF_ = zeros((6,6), Float)
+ PHI_ = zeros((6), float)
+ COEF_ = zeros((6,6), float)
for i in range(1,7):
for j in range(1,7):
More information about the Greater-commits
mailing list