示例#1
0
 def test_A380_800(self):
     vampzero = Vampzero(cpacsIn='./TestData/aircraft/A380-800.xml')
     exitcode = vampzero.run()
     self.assertEqual(exitcode, 0)
示例#2
0
 def test_A310_308(self):
     vampzero = Vampzero(cpacsIn='./TestData/aircraft/A310-308.xml')
     exitcode = vampzero.run()
     self.assertEqual(exitcode, 0)
示例#3
0
 def test_B777_200ER(self):
     vampzero = Vampzero(cpacsIn='./TestData/aircraft/B777-200ER.xml')
     exitcode = vampzero.run()
     self.assertEqual(exitcode, 0)
示例#4
0
 def test_B767_300(self):
     vampzero = Vampzero(cpacsIn='./TestData/aircraft/B767-300.xml')
     exitcode = vampzero.run()
     self.assertEqual(exitcode, 0)
示例#5
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Copyright: Deutsches Zentrum fuer Luft- und Raumfahrt e.V., 2015 (c)
Contact: [email protected] and [email protected]
'''

from VAMPzero import Vampzero

INFILE = './ToolInput/toolInput.xml'
OUTFILE = './ToolOutput/toolOutput.xml'

if __name__ == '__main__':
    myVAMPzero = Vampzero(cpacsIn=INFILE, cpacsOut=OUTFILE)
    myVAMPzero.run()
示例#6
0
# -*- coding: utf-8 -*-
'''
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Copyright: Deutsches Zentrum fuer Luft- und Raumfahrt e.V., 2015 (c)
Contact: [email protected] and [email protected]
'''
import os
#os.environ["PATH"] += os.pathsep + 'D:\\development\\tigl\\build\\install\\bin'
from VAMPzero import Vampzero


class Usage(Exception):
    def __init__(self, msg):
        self.msg = msg


if __name__ == '__main__':
    myVAMPzero = Vampzero()
    myVAMPzero.run()