From a3eb07794c9852f270d4fdde1b94d312e0708fa3 Mon Sep 17 00:00:00 2001 From: bknueven <30801372+bknueven@users.noreply.github.com> Date: Mon, 26 Feb 2024 08:11:00 -0700 Subject: [PATCH] fixing doctests for pyomo 6.7.1 (#1310) --- docs/how_to_guides/how_to_use_MCAS_property_model.rst | 6 +++--- docs/how_to_guides/how_to_use_a_property_model.rst | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/how_to_guides/how_to_use_MCAS_property_model.rst b/docs/how_to_guides/how_to_use_MCAS_property_model.rst index f37dc69885..31ad552fc5 100644 --- a/docs/how_to_guides/how_to_use_MCAS_property_model.rst +++ b/docs/how_to_guides/how_to_use_MCAS_property_model.rst @@ -92,13 +92,13 @@ A portion of the displayed output is shown below. Key : Lower : Value : Upper : Fixed : Stale : Domain None : 100000.0 : 5000000.0 : None : True : True : NonNegativeReals flow_mol_phase_comp : Component molar flow rate - Size=3, Index=fs.state_block[0].flow_mol_phase_comp_index, Units=mol/s + Size=3, Index=fs.properties.phase_list*fs.properties.component_list, Units=mol/s Key : Lower : Value : Upper : Fixed : Stale : Domain ('Liq', 'Cl_-') : 0 : 0.483 : None : True : True : NonNegativeReals ('Liq', 'H2O') : 0 : 53.8 : None : True : True : NonNegativeReals ('Liq', 'Na_+') : 0 : 0.483 : None : True : True : NonNegativeReals flow_mass_phase_comp : Component Mass flowrate - Size=3, Index=fs.state_block[0].flow_mass_phase_comp_index, Units=kg/s + Size=3, Index=fs.properties.phase_list*fs.properties.component_list, Units=kg/s Key : Lower : Value : Upper : Fixed : Stale : Domain ('Liq', 'Cl_-') : 0 : 0.016905 : None : False : False : Reals ('Liq', 'H2O') : 0 : 0.9683999999999999 : None : False : False : Reals @@ -157,4 +157,4 @@ Output similar to what is shown below will appear to notify the user whether an .. testoutput:: - Cl_- adjusted: fs.state_block[0].flow_mass_phase_comp['Liq',Cl_-] was adjusted from 0.0169 and fixed to 0.01689130427193779. Electroneutrality satisfied for fs.state_block[0]. Balance Result = 0.0 \ No newline at end of file + Cl_- adjusted: fs.state_block[0].flow_mass_phase_comp['Liq',Cl_-] was adjusted from 0.0169 and fixed to 0.01689130427193779. Electroneutrality satisfied for fs.state_block[0]. Balance Result = 0.0 diff --git a/docs/how_to_guides/how_to_use_a_property_model.rst b/docs/how_to_guides/how_to_use_a_property_model.rst index cdbec943ce..d3b015dc1a 100644 --- a/docs/how_to_guides/how_to_use_a_property_model.rst +++ b/docs/how_to_guides/how_to_use_a_property_model.rst @@ -74,7 +74,7 @@ A portion of the displayed output is shown below. Variables: flow_mass_phase_comp : Mass flow rate - Size=2, Index=fs.state_block[0].flow_mass_phase_comp_index, Units=kg/s + Size=2, Index=fs.properties.phase_list*fs.properties.component_list, Units=kg/s Key : Lower : Value : Upper : Fixed : Stale : Domain ('Liq', 'H2O') : 0.0 : 0.965 : None : True : True : NonNegativeReals ('Liq', 'NaCl') : 0.0 : 0.035 : None : True : True : NonNegativeReals