示例#1
0
文件: tests.py 项目: jjhelmus/atmos
 def test_double_calculation(self):
     deriver = FluidSolver(add_assumptions=('Tv equals T',), **self.vars2)
     Tv = deriver.calculate('Tv')
     rho = deriver.calculate('rho')
     assert (rho == 1/Rd).all()
     assert isinstance(rho, np.ndarray)
     assert isinstance(Tv, np.ndarray)
示例#2
0
文件: tests.py 项目: jjhelmus/atmos
 def test_double_calculation(self):
     deriver = FluidSolver(add_assumptions=('Tv equals T', ), **self.vars2)
     Tv = deriver.calculate('Tv')
     rho = deriver.calculate('rho')
     assert (rho == 1 / Rd).all()
     assert isinstance(rho, np.ndarray)
     assert isinstance(Tv, np.ndarray)
示例#3
0
文件: tests.py 项目: jjhelmus/atmos
 def test_depth_2_calculation(self):
     deriver = FluidSolver(assumptions=FluidSolver.default_assumptions +
                           ('Tv equals T', ),
                           **self.vars2)
     rho = deriver.calculate('rho')
     assert (rho == 1 / Rd).all()
     assert isinstance(rho, np.ndarray)
示例#4
0
文件: tests.py 项目: jjhelmus/atmos
 def test_depth_2_calculation(self):
     deriver = FluidSolver(assumptions=FluidSolver.default_assumptions +
                           ('Tv equals T',), **self.vars2)
     rho = deriver.calculate('rho')
     assert (rho == 1/Rd).all()
     assert isinstance(rho, np.ndarray)
示例#5
0
文件: tests.py 项目: jjhelmus/atmos
 def test_simple_calculation(self):
     deriver = FluidSolver(**self.vars1)
     rho = deriver.calculate('rho')
     assert (rho == 1/Rd).all()
     assert isinstance(rho, np.ndarray)
示例#6
0
文件: tests.py 项目: jjhelmus/atmos
 def test_simple_calculation(self):
     deriver = FluidSolver(**self.vars1)
     rho = deriver.calculate('rho')
     assert (rho == 1 / Rd).all()
     assert isinstance(rho, np.ndarray)