From 8e0325e2886086be411ff277566c64a8d625f49c Mon Sep 17 00:00:00 2001 From: Ian Bell <ian.bell@nist.gov> Date: Tue, 6 Dec 2022 09:48:57 -0500 Subject: [PATCH] Show how to get meta for cubics --- doc/source/models/cubics.ipynb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/source/models/cubics.ipynb b/doc/source/models/cubics.ipynb index d9c6ee2..2612f01 100644 --- a/doc/source/models/cubics.ipynb +++ b/doc/source/models/cubics.ipynb @@ -43,7 +43,7 @@ "metadata": {}, "outputs": [], "source": [ - "import teqp\n", + "import teqp, json\n", "\n", "# Values taken from http://dx.doi.org/10.6028/jres.121.011\n", "Tc_K = [ 190.564, 154.581, 150.687 ]\n", @@ -57,6 +57,18 @@ "modelSRK = teqp.canonical_SRK(Tc_K, pc_Pa, acentric)" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "75961e5b", + "metadata": {}, + "outputs": [], + "source": [ + "# And you can get information about the model in JSON format \n", + "# from the get_meta function\n", + "modelPR.get_meta()" + ] + }, { "cell_type": "markdown", "id": "615c7830", @@ -142,7 +154,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.4" + "version": "3.10.6" } }, "nbformat": 4, -- GitLab