@@ -98,25 +98,25 @@ def test_01_Animate_plt(self):
98
98
phases = [str (i * 5 ) + "deg" for i in range (2 )]
99
99
model_gif = self .aedtapp .post .plot_animated_field (
100
100
quantity = "Mag_E" ,
101
- object_list = cutlist ,
101
+ objects = cutlist ,
102
102
plot_type = "CutPlane" ,
103
103
setup_name = self .aedtapp .nominal_adaptive ,
104
104
intrinsics = {"Freq" : "5GHz" , "Phase" : "0deg" },
105
- export_path = self .local_scratch .path ,
106
105
variation_variable = "Phase" ,
107
- variation_list = phases ,
106
+ variations = phases ,
108
107
show = False ,
109
108
export_gif = True ,
109
+ export_path = self .local_scratch .path ,
110
110
)
111
111
assert os .path .exists (model_gif .gif_file )
112
112
setup_name = self .aedtapp .existing_analysis_sweeps [0 ]
113
113
intrinsic = {"Freq" : "5GHz" , "Phase" : "180deg" }
114
114
pl1 = self .aedtapp .post .create_fieldplot_volume ("NewObject_IJD39Q" , "Mag_E" , setup_name , intrinsic )
115
115
model_gif2 = self .aedtapp .post .animate_fields_from_aedtplt (
116
- plotname = pl1 .name ,
116
+ plot_name = pl1 .name ,
117
117
plot_folder = None ,
118
118
variation_variable = "Phase" ,
119
- variation_list = phases ,
119
+ variations = phases ,
120
120
project_path = "" ,
121
121
export_gif = False ,
122
122
show = False ,
@@ -136,9 +136,7 @@ def test_02_export_fields(self):
136
136
plot2 = self .aedtapp .post .create_fieldplot_volume (vollist , quantity_name2 , setup_name , intrinsic )
137
137
138
138
self .aedtapp .post .export_field_jpg (
139
- os .path .join (self .local_scratch .path , "prova2.jpg" ),
140
- plot2 .name ,
141
- plot2 .plotFolder ,
139
+ os .path .join (self .local_scratch .path , "prova2.jpg" ), plot2 .name , plot2 .plot_folder
142
140
)
143
141
assert os .path .exists (os .path .join (self .local_scratch .path , "prova2.jpg" ))
144
142
assert os .path .exists (
@@ -225,7 +223,7 @@ def test_07_export_fields_from_Calculator(self):
225
223
os .path .join (self .local_scratch .path , "Efield.fld" ),
226
224
grid_stop = [5 , 5 , 5 ],
227
225
grid_step = [0.5 , 0.5 , 0.5 ],
228
- isvector = True ,
226
+ is_vector = True ,
229
227
intrinsics = "5GHz" ,
230
228
)
231
229
assert os .path .exists (os .path .join (self .local_scratch .path , "Efield.fld" ))
@@ -235,10 +233,10 @@ def test_07_export_fields_from_Calculator(self):
235
233
"Setup1 : LastAdaptive" ,
236
234
self .aedtapp .available_variations .nominal_w_values_dict ,
237
235
os .path .join (self .local_scratch .path , "MagEfieldSph.fld" ),
238
- gridtype = "Spherical" ,
236
+ grid_type = "Spherical" ,
239
237
grid_stop = [5 , 300 , 300 ],
240
238
grid_step = [5 , 50 , 50 ],
241
- isvector = False ,
239
+ is_vector = False ,
242
240
intrinsics = "5GHz" ,
243
241
)
244
242
assert os .path .exists (os .path .join (self .local_scratch .path , "MagEfieldSph.fld" ))
@@ -248,10 +246,10 @@ def test_07_export_fields_from_Calculator(self):
248
246
"Setup1 : LastAdaptive" ,
249
247
self .aedtapp .available_variations .nominal_w_values_dict ,
250
248
os .path .join (self .local_scratch .path , "MagEfieldCyl.fld" ),
251
- gridtype = "Cylindrical" ,
249
+ grid_type = "Cylindrical" ,
252
250
grid_stop = [5 , 300 , 5 ],
253
251
grid_step = [5 , 50 , 5 ],
254
- isvector = False ,
252
+ is_vector = False ,
255
253
intrinsics = "5GHz" ,
256
254
)
257
255
assert os .path .exists (os .path .join (self .local_scratch .path , "MagEfieldCyl.fld" ))
@@ -271,12 +269,12 @@ def test_09_manipulate_report(self):
271
269
assert self .aedtapp .post .create_report ("dB(S(1,1))" )
272
270
assert self .aedtapp .post .create_report (
273
271
expressions = "MaxMagDeltaS" ,
274
- variations = {"Pass" : ["All" ]},
275
272
setup_sweep_name = "Setup1 : AdaptivePass" ,
273
+ variations = {"Pass" : ["All" ]},
276
274
primary_sweep_variable = "Pass" ,
277
275
report_category = "Modal Solution Data" ,
278
276
plot_type = "Rectangular Plot" ,
279
- plotname = "Solution Convergence Plot" ,
277
+ plot_name = "Solution Convergence Plot" ,
280
278
)
281
279
new_report = self .aedtapp .post .reports_by_category .modal_solution ("dB(S(1,1))" )
282
280
assert new_report .create ()
@@ -501,13 +499,13 @@ def test_14_Field_Ploton_cutplanedesignname(self):
501
499
assert plot1 .update_field_plot_settings ()
502
500
self .aedtapp .logger .info ("Generating the image" )
503
501
plot_obj = self .aedtapp .post .plot_field_from_fieldplot (
504
- plotname = plot1 .name ,
502
+ plot_name = plot1 .name ,
505
503
project_path = self .local_scratch .path ,
506
- meshplot = False ,
507
- imageformat = "jpg" ,
504
+ mesh_plot = False ,
505
+ image_format = "jpg" ,
508
506
view = "xy" ,
509
- show = False ,
510
507
plot_label = plot1 .name + " label" ,
508
+ show = False ,
511
509
)
512
510
assert os .path .exists (plot_obj .image_file )
513
511
os .unlink (plot_obj .image_file )
@@ -526,13 +524,13 @@ def test_14_Field_Ploton_cutplanedesignname(self):
526
524
assert os .path .exists (plot_obj .image_file )
527
525
528
526
plot_obj = self .aedtapp .post .plot_field_from_fieldplot (
529
- plotname = plot1 .name ,
527
+ plot_name = plot1 .name ,
530
528
project_path = self .local_scratch .path ,
531
- meshplot = False ,
532
- imageformat = "jpg" ,
529
+ mesh_plot = False ,
530
+ image_format = "jpg" ,
533
531
view = "xy" ,
534
- show = False ,
535
532
plot_label = plot1 .name + " label" ,
533
+ show = False ,
536
534
file_format = "aedtplt" ,
537
535
)
538
536
assert os .path .exists (plot_obj .image_file )
@@ -557,11 +555,11 @@ def test_14B_Field_Ploton_Vector(self):
557
555
"CutPlane" ,
558
556
setup_name = setup_name ,
559
557
intrinsics = intrinsic ,
560
- export_path = self .local_scratch .path ,
561
558
mesh_on_fields = False ,
562
- imageformat = "jpg" ,
563
559
view = "isometric" ,
564
560
show = False ,
561
+ export_path = self .local_scratch .path ,
562
+ image_format = "jpg" ,
565
563
)
566
564
assert os .path .exists (plot_obj .image_file )
567
565
@@ -580,11 +578,11 @@ def test_15_export_plot(self):
580
578
def test_16_create_field_plot (self ):
581
579
cutlist = ["Global:XY" ]
582
580
plot = self .aedtapp .post ._create_fieldplot (
583
- objlist = cutlist ,
584
- quantityName = "Mag_E" ,
581
+ objects = cutlist ,
582
+ quantity = "Mag_E" ,
585
583
setup_name = self .aedtapp .nominal_adaptive ,
586
584
intrinsics = {},
587
- listtype = "CutPlane" ,
585
+ list_type = "CutPlane" ,
588
586
)
589
587
assert plot
590
588
0 commit comments