@@ -700,32 +700,33 @@ def test_cellbudgetfile_get_ts_aux_vars_mf6_readme_example(function_tmpdir):
700700 ModflowTdis ,
701701 )
702702
703- name = ' mymodel'
704- sim = MFSimulation (sim_name = name , sim_ws = function_tmpdir , exe_name = ' mf6' )
703+ name = " mymodel"
704+ sim = MFSimulation (sim_name = name , sim_ws = function_tmpdir , exe_name = " mf6" )
705705 tdis = ModflowTdis (sim )
706706 ims = ModflowIms (sim )
707707 gwf = ModflowGwf (sim , modelname = name , save_flows = True )
708708 dis = ModflowGwfdis (gwf , nrow = 10 , ncol = 10 )
709709 ic = ModflowGwfic (gwf )
710710 npf = ModflowGwfnpf (gwf , save_specific_discharge = True )
711- chd = ModflowGwfchd (gwf , stress_period_data = [[(0 , 0 , 0 ), 1. ],
712- [(0 , 9 , 9 ), 0. ]])
713- budget_file = name + '.bud'
714- head_file = name + '.hds'
715- oc = ModflowGwfoc (gwf ,
716- budget_filerecord = budget_file ,
717- head_filerecord = head_file ,
718- saverecord = [('HEAD' , 'ALL' ), ('BUDGET' , 'ALL' )])
711+ chd = ModflowGwfchd (gwf , stress_period_data = [[(0 , 0 , 0 ), 1.0 ], [(0 , 9 , 9 ), 0.0 ]])
712+ budget_file = name + ".bud"
713+ head_file = name + ".hds"
714+ oc = ModflowGwfoc (
715+ gwf ,
716+ budget_filerecord = budget_file ,
717+ head_filerecord = head_file ,
718+ saverecord = [("HEAD" , "ALL" ), ("BUDGET" , "ALL" )],
719+ )
719720 sim .write_simulation (silent = True )
720721 sim .run_simulation (silent = True )
721722
722723 hds = gwf .output .head ().get_data ()
723724 cbc = gwf .output .budget ()
724725
725- cellid = (0 ,5 , 5 )
726+ cellid = (0 , 5 , 5 )
726727
727728 head = hds .get_ts (idx = cellid )
728- spdis = cbc .get_ts (idx = cellid , text = ' DATA-SPDIS' )
729+ spdis = cbc .get_ts (idx = cellid , text = " DATA-SPDIS" )
729730
730731
731732@pytest .fixture
@@ -802,7 +803,9 @@ def test_cellbudgetfile_get_ts_aux_vars_mf6_dis(dis_sim):
802803 spdis_qy = cbc .get_ts (idx = cellid , text = text , variable = "qy" )
803804 spdis_qz = cbc .get_ts (idx = cellid , text = text , variable = "qz" )
804805
805- chd_q = cbc .get_ts (idx = cellid , )
806+ chd_q = cbc .get_ts (
807+ idx = cellid ,
808+ )
806809
807810 assert spdis_q .shape == spdis_qx .shape == spdis_qy .shape == spdis_qz .shape
808811 assert spdis_q .shape [1 ] == 2 # time + 1 data column
0 commit comments