예제 #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)