当前位置: 首页>>代码示例>>Python>>正文


Python testingtools.remove_other_vessels函数代码示例

本文整理汇总了Python中testingtools.remove_other_vessels函数的典型用法代码示例。如果您正苦于以下问题:Python remove_other_vessels函数的具体用法?Python remove_other_vessels怎么用?Python remove_other_vessels使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了remove_other_vessels函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: setUpClass

 def setUpClass(cls):
     testingtools.new_save()
     testingtools.launch_vessel_from_vab('PartsEngine')
     testingtools.remove_other_vessels()
     testingtools.set_circular_orbit('Kerbin', 250000)
     cls.conn = testingtools.connect(name='TestPartsEngineMSL')
     cls.vessel = cls.conn.space_center.active_vessel
     cls.parts = cls.vessel.parts
     cls.add_engine_data(
         'LV-T30 "Reliant" Liquid Fuel Engine',
         {'max_thrust': 215000, 'isp': 300})
     cls.add_engine_data(
         'LV-T45 "Swivel" Liquid Fuel Engine',
         {'max_thrust': 200000, 'isp': 320})
     cls.add_engine_data(
         'LV-N "Nerv" Atomic Rocket Motor',
         {'max_thrust': 60000, 'isp': 800})
     cls.add_engine_data(
         'IX-6315 "Dawn" Electric Propulsion System',
         {'max_thrust': 2000, 'isp': 4200})
     cls.add_engine_data(
         'O-10 "Puff" MonoPropellant Fuel Engine',
         {'max_thrust': 20000, 'isp': 250})
     cls.add_engine_data(
         'RT-10 "Hammer" Solid Fuel Booster',
         {'max_thrust': 227000, 'isp': 195})
开发者ID:artwhaley,项目名称:krpc,代码行数:26,代码来源:test_parts_engine.py

示例2: setUpClass

 def setUpClass(cls):
     testingtools.new_save()
     testingtools.launch_vessel_from_vab('PartsSolarPanel')
     testingtools.remove_other_vessels()
     cls.conn = krpc.connect(name='TestPartsLaunchClamp')
     cls.vessel = cls.conn.space_center.active_vessel
     cls.parts = cls.vessel.parts
开发者ID:NOTtheMessiah,项目名称:krpc,代码行数:7,代码来源:test_parts_launch_clamp.py

示例3: setUpClass

    def setUpClass(cls):
        testingtools.new_save()
        testingtools.launch_vessel_from_vab('PartsDockingPortPreAttachedTo')
        testingtools.remove_other_vessels()
        cls.conn = krpc.connect(name='TestPartsDockingPortPreAttachedTo')
        cls.vessel = cls.conn.space_center.active_vessel
        cls.state = cls.conn.space_center.DockingPortState

        # Stack is as follows, from top to bottom:
        # parts[0] - Pod
        # parts[1] - Docking port (facing down)
        # parts[2] - Docking port (facing up)
        # parts[3] - Tank
        # parts[4] - Docking port (facing up)
        # parts[5] - Tank
        # parts[6] - Docking port (facing down)
        # parts[7] - Tank

        cls.parts = [cls.vessel.parts.root]
        cls.parts.append(filter(lambda p: p.docking_port != None, cls.parts[0].children)[0])
        part = cls.parts[-1]
        while len(part.children) == 1:
            part = part.children[0]
            cls.parts.append(part)

        cls.port1 = cls.parts[1].docking_port
        cls.port2 = cls.parts[2].docking_port
        cls.port4 = cls.parts[4].docking_port
        cls.port6 = cls.parts[6].docking_port
开发者ID:ilo,项目名称:krpc,代码行数:29,代码来源:test_parts_docking_port.py

示例4: setUpClass

 def setUpClass(cls):
     testingtools.new_save()
     testingtools.remove_other_vessels()
     testingtools.launch_vessel_from_vab('Basic')
     cls.conn = testingtools.connect(name='TestFlightAtLaunchpad')
     cls.vessel = cls.conn.space_center.active_vessel
     cls.conn.testing_tools.remove_other_vessels()
     cls.far = cls.conn.space_center.far_available
开发者ID:Kerbal007,项目名称:krpc,代码行数:8,代码来源:test_flight.py

示例5: setUp

 def setUp(self):
     testingtools.new_save()
     testingtools.launch_vessel_from_vab('PartsDockingPortInFlight')
     testingtools.set_circular_orbit('Kerbin', 100000)
     testingtools.remove_other_vessels()
     self.conn = krpc.connect(name='TestPartsDockingPortInFlight')
     self.sc = self.conn.space_center
     self.state = self.sc.DockingPortState
开发者ID:rosalesr,项目名称:krpc,代码行数:8,代码来源:test_parts_docking_port.py

示例6: setUpClass

 def setUpClass(cls):
     testingtools.new_save()
     testingtools.launch_vessel_from_vab('Rover')
     testingtools.remove_other_vessels()
     cls.conn = krpc.connect(name='TestControlRover')
     cls.vessel = cls.conn.space_center.active_vessel
     cls.control = cls.vessel.control
     cls.flight = cls.vessel.flight(cls.vessel.orbit.body.reference_frame)
开发者ID:rosalesr,项目名称:krpc,代码行数:8,代码来源:test_control.py

示例7: setUpClass

 def setUpClass(cls):
     testingtools.new_save()
     testingtools.launch_vessel_from_vab('PartsDecoupler')
     testingtools.remove_other_vessels()
     cls.conn = testingtools.connect(name='TestPartsDecoupler')
     cls.vessel = cls.conn.space_center.active_vessel
     cls.parts = cls.vessel.parts
     cls.state = cls.conn.space_center.SolarPanelState
开发者ID:Kerbal007,项目名称:krpc,代码行数:8,代码来源:test_parts_decoupler.py

示例8: setUpClass

 def setUpClass(cls):
     if testingtools.connect().space_center.active_vessel.name != "Parts":
         testingtools.new_save()
         testingtools.launch_vessel_from_vab("Parts")
         testingtools.remove_other_vessels()
     cls.conn = testingtools.connect(name="TestPartsReactionWheel")
     cls.vessel = cls.conn.space_center.active_vessel
     cls.parts = cls.vessel.parts
开发者ID:artwhaley,项目名称:krpc,代码行数:8,代码来源:test_parts_reaction_wheel.py

示例9: setUpClass

 def setUpClass(cls):
     testingtools.new_save()
     testingtools.launch_vessel_from_vab('PartsRadiator')
     testingtools.remove_other_vessels()
     cls.conn = krpc.connect(name='TestPartsRadiator')
     cls.vessel = cls.conn.space_center.active_vessel
     cls.parts = cls.vessel.parts
     cls.state = cls.conn.space_center.RadiatorState
开发者ID:rosalesr,项目名称:krpc,代码行数:8,代码来源:test_parts_radiator.py

示例10: setUp

 def setUp(self):
     self.conn = krpc.connect(name='TestComms')
     if not self.conn.space_center.remote_tech_available:
         self.skipTest('RemoteTech not installed')
     testingtools.new_save()
     testingtools.launch_vessel_from_vab('Comms')
     testingtools.remove_other_vessels()
     self.vessel = self.conn.space_center.active_vessel
开发者ID:rosalesr,项目名称:krpc,代码行数:8,代码来源:test_comms.py

示例11: setUp

 def setUp(self):
     testingtools.new_save()
     testingtools.launch_vessel_from_vab('PartsParachute')
     testingtools.remove_other_vessels()
     self.conn = krpc.connect(name='TestPartsParachute')
     self.vessel = self.conn.space_center.active_vessel
     self.parts = self.vessel.parts
     self.state = self.conn.space_center.ParachuteState
开发者ID:NOTtheMessiah,项目名称:krpc,代码行数:8,代码来源:test_parts_parachute.py

示例12: setUpClass

 def setUpClass(cls):
     if krpc.connect().space_center.active_vessel.name != 'Parts':
         testingtools.new_save()
         testingtools.launch_vessel_from_vab('Parts')
         testingtools.remove_other_vessels()
     cls.conn = krpc.connect(name='TestPartsReactionWheel')
     cls.vessel = cls.conn.space_center.active_vessel
     cls.parts = cls.vessel.parts
开发者ID:ilo,项目名称:krpc,代码行数:8,代码来源:test_parts_reaction_wheel.py

示例13: setUpClass

 def setUpClass(cls):
     if krpc.connect().space_center.active_vessel.name != 'Parts':
         testingtools.new_save()
         testingtools.launch_vessel_from_vab('Parts')
         testingtools.remove_other_vessels()
     cls.conn = krpc.connect(name='TestParts')
     cls.vessel = cls.conn.space_center.active_vessel
     cls.parts = cls.vessel.parts
     cls.expectedAmbientTemperature = 273+20
开发者ID:602p,项目名称:krpc,代码行数:9,代码来源:test_parts_part.py

示例14: setUpClass

 def setUpClass(cls):
     testingtools.new_save()
     testingtools.launch_vessel_from_vab('Basic')
     testingtools.remove_other_vessels()
     cls.conn = krpc.connect(name='TestWarpOnLaunchpad')
     cls.sc = cls.conn.space_center
     cls.vessel = cls.sc.active_vessel
     cls.maximum_rails_warp_factor = 7
     cls.landed = True
开发者ID:calaveraDeluxe,项目名称:krpc,代码行数:9,代码来源:test_spacecenter.py

示例15: setUpClass

 def setUpClass(cls):
     if testingtools.connect().space_center.active_vessel.name != 'PartsLandingGear':
         testingtools.new_save()
         testingtools.launch_vessel_from_vab('PartsLandingGear')
         testingtools.remove_other_vessels()
     cls.conn = testingtools.connect(name='TestPartsLandingGear')
     cls.vessel = cls.conn.space_center.active_vessel
     cls.parts = cls.vessel.parts
     cls.state = cls.conn.space_center.LandingGearState
开发者ID:Kerbal007,项目名称:krpc,代码行数:9,代码来源:test_parts_landing_gear.py


注:本文中的testingtools.remove_other_vessels函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。