Пример #1
0
    def test_gui_deflection_csv_01(self):
        csv_filename = os.path.join(pkg_path, '..', 'models', 'solid_bending', 'solid_bending_multi_node.csv')
        with self.assertRaises(RuntimeError):
            load_deflection_csv(csv_filename)

        csv_filename = os.path.join(pkg_path, '..', 'models', 'solid_bending', 'solid_bending_multi_deflection_node.txt')
        load_deflection_csv(csv_filename)
Пример #2
0
 def test_gui_csv_01(self):
     csv_filename = os.path.join(pkg_path, '..', 'models', 'solid_bending', 'solid_bending.txt')
     with self.assertRaises(ValueError):
         load_deflection_csv(csv_filename)
     load_csv(csv_filename)
Пример #3
0
 def test_gui_deflection_csv_01a(self):
     """tests solid_bending_multi_node.csv with deflection loader"""
     csv_filename = os.path.join(MODEL_PATH, 'solid_bending', 'solid_bending_multi_node.csv')
     with self.assertRaises(ValueError):
         load_deflection_csv(csv_filename) # bad shape
Пример #4
0
 def test_gui_deflection_csv_01b(self):
     """tests solid_bending_multi_deflection_node.txt with deflection loader"""
     csv_filename = os.path.join(MODEL_PATH, 'solid_bending', 'solid_bending_multi_deflection_node.txt')
     load_deflection_csv(csv_filename)
Пример #5
0
 def test_gui_csv_01(self):
     """tests solid_bending.txt"""
     csv_filename = os.path.join(MODEL_PATH, 'solid_bending', 'solid_bending.txt')
     with self.assertRaises(ValueError):
         load_deflection_csv(csv_filename) # bad shape
     load_csv(csv_filename)