Skip to content

Commit

Permalink
Fix import location in notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhbell committed Nov 15, 2024
1 parent 9aeee33 commit e726bfb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc/source/recipes/FitPureParameters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"This example shows how to use the new fitting class of version 0.21 of teqp \n",
"to fit the model parameters for the SAFT-VR-Mie model based on fitting\n",
"pseudo-experimental data obtained from a reference equation\n",
"of state."
"of state.\n",
"\n",
"In version 0.23, the parameter optimization objects were moved into their own submodule called paramopt"
]
},
{
Expand Down Expand Up @@ -70,14 +72,14 @@
"outputs": [],
"source": [
"FLD = 'Methane'\n",
"ppo = teqp.PureParameterOptimizer(template, pointers)\n",
"ppo = teqp.paramopt.PureParameterOptimizer(template, pointers)\n",
"\n",
"Ts = np.linspace(100, 170, 10)\n",
"\n",
"# Generate some artificial pseudo-experimental data from \n",
"# the reference EOS as implemented in CoolProp\n",
"for T in Ts:\n",
" pt = teqp.SatRhoLPWPoint()\n",
" pt = teqp.paramopt.SatRhoLPWPoint()\n",
" rhoL, rhoV = [CP.PropsSI('Dmolar','Q',Q,'T',T,FLD) for Q in [0,1]]\n",
" p = CP.PropsSI('P','Q',0,'T',T,FLD)\n",
" w = CP.PropsSI('speed_of_sound','Q',0,'T',T,FLD)\n",
Expand Down Expand Up @@ -185,7 +187,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.6"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down

0 comments on commit e726bfb

Please sign in to comment.