@@ -220,7 +220,8 @@ def test_plot_flutter_0012(self):
220220
221221 has issues with writing the subcase...
222222 """
223- f06_filename = AERO_PATH / '2_mode_flutter' / '0012_flutter.f06'
223+ dirname = AERO_PATH / '2_mode_flutter'
224+ f06_filename = dirname / '0012_flutter.f06'
224225 #log = get_logger(log=None, level=None, encoding='utf-8')
225226 log = get_logger (log = None , level = False , encoding = 'utf-8' )
226227
@@ -240,10 +241,10 @@ def test_plot_flutter_0012(self):
240241 f06_units = 'si' , out_units = None ,
241242 plot_vg = True , plot_vg_vf = True , plot_root_locus = True ,
242243 plot_kfreq_damping = True ,
243- export_csv_filename = 'nastran.csv' ,
244- export_f06_filename = 'nastran.f06' ,
245- export_veas_filename = 'nastran.veas' ,
246- export_zona_filename = 'zona.f06' ,
244+ export_csv_filename = dirname / 'nastran.csv' ,
245+ export_f06_filename = dirname / 'nastran.f06' ,
246+ export_veas_filename = dirname / 'nastran.veas' ,
247+ export_zona_filename = dirname / 'zona.f06' ,
247248 vg_filename = 'vg_subcase_%i.png' ,
248249 vg_vf_filename = 'vg_vf_subcase_%i.png' ,
249250 kfreq_damping_filename = 'kfreq_damping_subcase_%i.png' ,
@@ -267,10 +268,10 @@ def test_plot_flutter_0012(self):
267268 os .remove ('kfreq_damping_subcase_1.png' )
268269 os .remove ('root_locus_subcase_1.png' )
269270
270- os .remove ('nastran.csv' )
271- os .remove ('nastran.f06' )
272- os .remove ('nastran.veas' )
273- os .remove ('zona.f06' )
271+ os .remove (dirname / 'nastran.csv' )
272+ os .remove (dirname / 'nastran.f06' )
273+ os .remove (dirname / 'nastran.veas' )
274+ os .remove (dirname / 'zona.f06' )
274275
275276 with self .assertRaises (NotImplementedError ):
276277 plot_flutter_f06 (
@@ -723,6 +724,7 @@ def test_opt_mdb200(self):
723724 show = True )
724725
725726 def test_f06_trim_bwb (self ):
727+ """tests f06_to_pressure_loads"""
726728 bdf_filename = MODEL_PATH / 'bwb' / 'bwb_saero_trim.bdf'
727729 aerobox_caero_filename = MODEL_PATH / 'bwb' / 'bwb_saero_trim.caero.bdf'
728730 f06_filename = MODEL_PATH / 'bwb' / 'bwb_saero_trim.f06'
@@ -761,14 +763,13 @@ def test_f06_trim_bwb(self):
761763 'f06' , 'plot_144' , str (f06_filename ),
762764 '--caero' , str (aerobox_caero_filename )]
763765 log = get_logger (log = None , level = None , encoding = 'utf-8' )
764- cmd_line_f06 (argv = argv , # plot=IS_MATPLOTLIB,
766+ cmd_line_f06 (argv = argv , plot = IS_MATPLOTLIB ,
765767 show = False , log = log )
766768
767769 argv = ['f06' , 'plot_144' , str (f06_filename )]
768- cmd_line_f06 (argv = argv , # plot=IS_MATPLOTLIB,
770+ cmd_line_f06 (argv = argv , plot = IS_MATPLOTLIB ,
769771 show = False , log = log )
770772
771-
772773 def test_f06_trim_freedlm (self ):
773774 """tests read_f06_trim"""
774775 bdf_filename = AERO_PATH / 'freedlm' / 'freedlm.bdf'
0 commit comments