@@ -206,7 +206,7 @@ def test_create_receiver(self):
206206 def test_cycle_tube_pressure_bcs (self ):
207207 times = np .array ([0 , 1 ])
208208 tube_pressure = 12
209- pressure = np .ones_like (times )* tube_pressure
209+ pressure = np .ones_like (times ) * tube_pressure
210210 pressure [0 ] = 0.0
211211 tube = interface .create_tube (tube_dict_unit , times , [])
212212 tube_pressure_bc = receiver .PressureBC (times , pressure )
@@ -215,10 +215,8 @@ def test_cycle_tube_pressure_bcs(self):
215215 tubes_dict = {"0" : tube }
216216 num_cycles = 3
217217 cyclic_times = np .array ([0 , 1 , 2 , 3 ])
218- interface .cycle_tube_pressure_bcs (
219- tubes_dict , num_cycles , cyclic_times
220- )
221- gold = np .array ([0 ,12 ,12 ,12 ])
218+ interface .cycle_tube_pressure_bcs (tubes_dict , num_cycles , cyclic_times )
219+ gold = np .array ([0 , 12 , 12 , 12 ])
222220 self .assertTrue (np .array_equal (gold , tube .pressure_bc .data ))
223221
224222 def test_set_and_downsample_tube_temp_bcs (self ):
@@ -384,7 +382,7 @@ def test_simple_model(self):
384382 # NOTE: making very large for test for single iter convergence
385383 pct_err_outlet_temp = 100.25
386384 panel_flow_path = [["1" ], ["0" ]]
387- mass_flow_per_path = np .ones ((len (panel_flow_path ),len (times )))* 650 # kg/s
385+ mass_flow_per_path = np .ones ((len (panel_flow_path ), len (times ))) * 650 # kg/s
388386 T_in_per_path = np .array ([500 , 500 ]) # Celcius
389387 use_cycle_reset_heuristic = False
390388 save_heat_to_vtu = False
@@ -503,7 +501,7 @@ def test_simple_model(self):
503501 )
504502 inlet_p = outlet_p + interface .convert_Pa_to_MPa (flow_path_p_loss )
505503 interface .update_tube_pressure_bcs (rec , inlet_p , outlet_p )
506- rec .save (rec_filename + hdf5_ext )
504+ rec .save (rec_filename + hdf5_ext )
507505
508506 # STEP 6: solve structure and life receiver
509507 struct_output_dict = {
0 commit comments