From 6259da8aa402427b4d6d589a8def598f3c6e03cf Mon Sep 17 00:00:00 2001 From: csae8092 Date: Fri, 2 Feb 2024 11:06:59 +0100 Subject: [PATCH] minor [skip ci] --- issue__17_dataimports_part3_works.ipynb | 32 ++++++------------------- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/issue__17_dataimports_part3_works.ipynb b/issue__17_dataimports_part3_works.ipynb index 9628ad7..d6615bd 100644 --- a/issue__17_dataimports_part3_works.ipynb +++ b/issue__17_dataimports_part3_works.ipynb @@ -10,7 +10,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": null, "id": "d7335a42", "metadata": {}, "outputs": [], @@ -24,7 +24,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "dd68245d", "metadata": {}, "outputs": [], @@ -34,7 +34,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "570aec42", "metadata": {}, "outputs": [], @@ -44,7 +44,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "id": "070e76d4", "metadata": {}, "outputs": [], @@ -115,28 +115,12 @@ " " ] }, - { - "cell_type": "markdown", - "id": "b20fc88f", - "metadata": {}, - "source": [ - "ToDo: run this against production db" - ] - }, { "cell_type": "code", - "execution_count": 37, + "execution_count": null, "id": "cb921b17", "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2148/2148 [00:27<00:00, 79.08it/s]\n" - ] - } - ], + "outputs": [], "source": [ "for x in tqdm(doc.any_xpath(\".//tei:bibl[@xml:id][./tei:listBibl]\")):\n", " ref = []\n", @@ -151,9 +135,7 @@ " continue\n", " quote = f\"{volume}, {page}.\"\n", " ref.append(quote)\n", - " all_quotes = (\" *** \".join(ref))\n", - " if len(quote) > 2:\n", - " more.append(all_quotes) \n", + " all_quotes = (\" *** \".join(ref)) \n", " \n", " hbtv_uri = get_xmlid(x)\n", " work_uri = f\"{bahr_url}{hbtv_uri}\"\n",