def setUp(self):
     # temporary hack (tests):
     activate_debug_for_tests()
     settings.RUN_TIME = True
     settings.SURFACE_TEMP = 12
     self.gradient1 = Gradient(0.3, 0.8)
     self.gradient2 = Gradient(0.35, 0.75)
Ejemplo n.º 2
0
    def setUp(self):

        # temporary hack (tests):

        activate_debug_for_tests()

        settings.RUN_TIME = True
        settings.SURFACE_TEMP = 12
        self.air12l = Tank(tank_vol=12.0, tank_pressure=200,
                           tank_rule='10b')
        self.airtank = Tank(tank_vol=18.0, tank_pressure=200,
                            tank_rule='10b')
        self.airtank12 = Tank(tank_vol=12.0, tank_pressure=200,
                              tank_rule='10b')
        self.airdouble = Tank(tank_vol=30.0, tank_pressure=200,
                              tank_rule='10b')  # bi15l 200b
        self.txtank1 = Tank(0.21, 0.30, tank_vol=30.0,
                            tank_pressure=200, tank_rule='10b')
        self.txtanknormodbl = Tank(0.21, 0.30, tank_vol=30.0,
                                   tank_pressure=200, tank_rule='10b')
        self.deco1 = Tank(0.8, 0.0, tank_vol=7.0, tank_pressure=200,
                          tank_rule='10b')
        self.deco2 = Tank(0.5, 0.0, tank_vol=7.0, tank_pressure=200,
                          tank_rule='10b')
        self.decoo2 = Tank(1.0, 0.0, tank_vol=7.0, tank_pressure=200,
                           tank_rule='10b')
Ejemplo n.º 3
0
    def setUp(self):
        """Init of the tests."""
        # temporary hack (tests):
        super().setUp()
        activate_debug_for_tests()
        # settings.RUN_TIME = True
        # settings.SURFACE_TEMP = 12
        self.air12l = Tank(tank_vol=12.0, tank_pressure=200, tank_rule="10b")
        self.airtank = Tank(tank_vol=18.0, tank_pressure=200, tank_rule="10b")
        self.airtank12 = Tank(tank_vol=12.0,
                              tank_pressure=200,
                              tank_rule="10b")
        self.airdouble = Tank(tank_vol=30.0,
                              tank_pressure=200,
                              tank_rule="10b")  # bi15l 200b
        self.txtank1 = Tank(0.21,
                            0.30,
                            tank_vol=20.0,
                            tank_pressure=200,
                            tank_rule="10b")
        self.txtanknormodbl = Tank(0.21,
                                   0.30,
                                   tank_vol=30.0,
                                   tank_pressure=200,
                                   tank_rule="10b")

        self.txhypo = Tank(0.10, 0.50, tank_vol=30.0,
                           tank_pressure=200)  # 2x 15l

        self.txtravel = Tank(0.21, 0.30, tank_vol=24.0,
                             tank_pressure=200)  # 2x S80

        self.ccair = Tank(tank_vol=3.0, tank_pressure=200, tank_rule='10b')
        self.cctxhypo = Tank(0.10,
                             0.50,
                             tank_vol=3.0,
                             tank_pressure=200,
                             tank_rule='10b')
        self.setpoint = 1.2

        self.deco1 = Tank(0.8,
                          0.0,
                          tank_vol=7.0,
                          tank_pressure=200,
                          tank_rule="10b")
        self.deco2 = Tank(0.5,
                          0.0,
                          tank_vol=7.0,
                          tank_pressure=200,
                          tank_rule="10b")
        self.decoo2 = Tank(1.0,
                           0.0,
                           tank_vol=7.0,
                           tank_pressure=200,
                           tank_rule="10b")

        self.setpoint = 0.0
        self.dive_tank = None
        self.all_tanks = None
        self.dive_segs = []
 def setUp(self):
     # temporary hack (tests):
     activate_debug_for_tests()
     settings.RUN_TIME = True
     settings.SURFACE_TEMP = 12
     self.ox1 = OxTox()
     self.ox2 = OxTox()
 def setUp(self):
     """Init of the tests."""
     super().setUp()
     # temporary hack (tests):
     activate_debug_for_tests()
     settings.RUN_TIME = True
     settings.SURFACE_TEMP = 12
     self.ox1 = OxTox()
     self.ox2 = OxTox()
 def setUp(self):
     """Init of the tests."""
     super().setUp()
     # temporary hack (tests):
     activate_debug_for_tests()
     settings.RUN_TIME = True
     settings.SURFACE_TEMP = 12
     self.ox1 = OxTox()
     self.ox2 = OxTox()
    def setUp(self):
        """Init of the tests."""
        super().setUp()

        # temporary hack (tests):
        activate_debug_for_tests()
        settings.RUN_TIME = True
        settings.SURFACE_TEMP = 12
        self.gradient1 = Gradient(0.3, 0.8)
        self.gradient2 = Gradient(0.35, 0.75)
    def setUp(self):
        # temporary hack (tests):
        activate_debug_for_tests()
        settings.RUN_TIME = True
        settings.SURFACE_TEMP = 12
        # simples test
        self.model1 = Model()

        # OC tests
        self.model2 = Model()
        self.model2.const_depth(30, 12 * 60, 0.0, 0.79, 0.0)
Ejemplo n.º 9
0
    def setUp(self):
        """Init of the tests."""
        super().setUp()
        # temporary hack (tests):
        activate_debug_for_tests()
        settings.RUN_TIME = True
        settings.SURFACE_TEMP = 12
        # simples test
        self.model1 = Model()

        # OC tests
        self.model2 = Model()
        self.model2.const_depth(30, 12 * 60, 0.0, 0.79, 0.0)
 def setUp(self):
     # temporary hack (tests):
     activate_debug_for_tests()
     settings.RUN_TIME = True
     settings.SURFACE_TEMP = 12
     self.compt1 = Compartment(1.88,    5.0,
                               16.189, 0.4770,
                               11.696, 0.5578)
     self.compt2 = Compartment(1.88,    5.0,
                               16.189, 0.4770,
                               11.696, 0.5578)
     self.compt2.set_pp(0.3 * 5, (1 - 0.21 - 0.3) * 5)
     self.compt3 = Compartment(1.88,    5.0,
                               16.189, 0.4770,
                               11.696, 0.5578)
     self.compt3.set_pp(0.0, 3.16)
Ejemplo n.º 11
0
 def setUp(self):
     # temporary hack (tests):
     activate_debug_for_tests()
     settings.RUN_TIME = True
     settings.SURFACE_TEMP = 12
     self.airtank = Tank()
     self.trimixtank1 = Tank(f_o2=0.10, f_he=0.70)
     self.nitroxtank1 = Tank(f_o2=0.40)
     self.oxygentank1 = Tank(f_o2=1)
     self.diveseg1 = SegmentDive(30, 10 * 60, self.airtank, 0)
     self.diveseg2 = SegmentDive(150, 10 * 60, self.trimixtank1, 0)
     self.decoseg1 = SegmentDeco(12, 5 * 60, self.nitroxtank1, 0)
     self.decoseg2 = SegmentDeco(3, 15 * 60, self.oxygentank1, 0)
     self.ascseg1 = SegmentAscDesc(150, 50, 20.0 / 60, self.trimixtank1, 0)
     self.ascseg2 = SegmentAscDesc(30, 12, 10.0 / 60, self.nitroxtank1, 0)
     self.descseg1 = SegmentAscDesc(0, 40, 20.0 / 60, self.airtank, 0)
     self.descseg2 = SegmentAscDesc(40, 150, 20.0 / 60, self.trimixtank1, 0)
 def setUp(self):
     """Init of the tests."""
     super().setUp()
     # temporary hack (tests):
     activate_debug_for_tests()
     settings.RUN_TIME = True
     settings.SURFACE_TEMP = 12
     self.compt1 = Compartment(1.88, 5.0,
                               1.6189, 0.4770,
                               1.1696, 0.5578)
     self.compt2 = Compartment(1.88, 5.0,
                               1.6189, 0.4770,
                               1.1696, 0.5578)
     self.compt2.set_pp(0.3 * 5, (1 - 0.21 - 0.3) * 5)
     self.compt3 = Compartment(1.88, 5.0,
                               1.6189, 0.4770,
                               1.1696, 0.5578)
     self.compt3.set_pp(0.0, 3.16)
Ejemplo n.º 13
0
 def setUp(self):
     """Init of the tests."""
     super().setUp()
     # temporary hack (tests):
     activate_debug_for_tests()
     settings.RUN_TIME = True
     settings.SURFACE_TEMP = 12
     settings.DIVE_CONSUMPTION_RATE = 17.0 / 60  #: liter/s
     settings.DECO_CONSUMPTION_RATE = 12.0 / 60  #: liter/s
     self.airtank = Tank()
     self.trimixtank1 = Tank(f_o2=0.10, f_he=0.70)
     self.nitroxtank1 = Tank(f_o2=0.40)
     self.oxygentank1 = Tank(f_o2=1)
     self.diveseg1 = SegmentDive(30, 10 * 60, self.airtank, 0)
     self.diveseg2 = SegmentDive(150, 10 * 60, self.trimixtank1, 0)
     self.decoseg1 = SegmentDeco(12, 5 * 60, self.nitroxtank1, 0)
     self.decoseg2 = SegmentDeco(3, 15 * 60, self.oxygentank1, 0)
     self.ascseg1 = SegmentAscDesc(150, 50, 20.0 / 60, self.trimixtank1, 0)
     self.ascseg2 = SegmentAscDesc(30, 12, 10.0 / 60, self.nitroxtank1, 0)
     self.descseg1 = SegmentAscDesc(0, 40, 20.0 / 60, self.airtank, 0)
     self.descseg2 = SegmentAscDesc(40, 150, 20.0 / 60, self.trimixtank1, 0)
Ejemplo n.º 14
0
    def setUp(self):
        """Init of the tests."""
        # temporary hack (tests):
        super().setUp()
        activate_debug_for_tests()
        # settings.RUN_TIME = True
        # settings.SURFACE_TEMP = 12
        self.air12l = Tank(tank_vol=12.0,
                           tank_pressure=200,
                           tank_rule="10b")
        self.airtank = Tank(tank_vol=18.0,
                            tank_pressure=200,
                            tank_rule="10b")
        self.airtank12 = Tank(tank_vol=12.0,
                              tank_pressure=200,
                              tank_rule="10b")
        self.airdouble = Tank(tank_vol=30.0,
                              tank_pressure=200,
                              tank_rule="10b")  # bi15l 200b
        self.txtank1 = Tank(0.21,
                            0.30,
                            tank_vol=20.0,
                            tank_pressure=200,
                            tank_rule="10b")
        self.txtanknormodbl = Tank(0.21,
                                   0.30,
                                   tank_vol=30.0,
                                   tank_pressure=200,
                                   tank_rule="10b")

        self.txhypo = Tank(0.10, 0.50,
                           tank_vol=30.0, tank_pressure=200)  # 2x 15l

        self.txtravel = Tank(0.21, 0.30, tank_vol=24.0,
                             tank_pressure=200)  # 2x S80

        self.ccair = Tank(tank_vol=3.0, tank_pressure=200, tank_rule='10b')
        self.cctxhypo = Tank(0.10, 0.50, tank_vol=3.0, tank_pressure=200,
                             tank_rule='10b')
        self.setpoint = 1.2

        self.deco1 = Tank(0.8,
                          0.0,
                          tank_vol=7.0,
                          tank_pressure=200,
                          tank_rule="10b")
        self.deco2 = Tank(0.5,
                          0.0,
                          tank_vol=7.0,
                          tank_pressure=200,
                          tank_rule="10b")
        self.decoo2 = Tank(1.0,
                           0.0,
                           tank_vol=7.0,
                           tank_pressure=200,
                           tank_rule="10b")

        self.setpoint = 0.0
        self.dive_tank = None
        self.all_tanks = None
        self.dive_segs = []
Ejemplo n.º 15
0
 def setUp(self):
     # temporary hack (tests):
     activate_debug_for_tests()
Ejemplo n.º 16
0
    def setUp(self):
        """Init of the tests."""
        super().setUp()

        # temporary hack (tests):
        activate_debug_for_tests()
Ejemplo n.º 17
0
    def setUp(self):

        # temporary hack (tests):

        activate_debug_for_tests()
Ejemplo n.º 18
0
    def setUp(self):
        """Init of the tests."""
        super().setUp()

        # temporary hack (tests):
        activate_debug_for_tests()