From 55851d2b93fd69588b1696cc778c053f97034dab Mon Sep 17 00:00:00 2001 From: "Kevin J. Sung" Date: Wed, 18 Oct 2023 21:44:21 -0500 Subject: [PATCH] update intro notebook --- docs/tutorials/01-introduction.ipynb | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/docs/tutorials/01-introduction.ipynb b/docs/tutorials/01-introduction.ipynb index eb8a7f072..0458a7fdf 100644 --- a/docs/tutorials/01-introduction.ipynb +++ b/docs/tutorials/01-introduction.ipynb @@ -13,7 +13,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -52,18 +52,19 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from scipy.special import comb\n", "\n", - "dim_a = comb(norb, n_alpha, exact=True)\n", - "dim_b = comb(norb, n_beta, exact=True)\n", - "dim = dim_a * dim_b\n", - "assert vec.shape == (dim,)\n", - "assert ffsim.dims(norb, nelec) == (dim_a, dim_b)\n", - "assert ffsim.dim(norb, nelec) == dim" + "dim_a, dim_b = ffsim.dims(norb, nelec)\n", + "dim = ffsim.dim(norb, nelec)\n", + "\n", + "assert dim_a == comb(norb, n_alpha, exact=True)\n", + "assert dim_b == comb(norb, n_beta, exact=True)\n", + "assert dim == dim_a * dim_b\n", + "assert vec.shape == (dim,)" ] }, { @@ -75,7 +76,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -106,7 +107,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.11" + "version": "3.10.13" }, "orig_nbformat": 4 },