Skip to content

Commit 959714f

Browse files
Merge branch 'add_tarf_notebook' into 'master'
add tarf notebook as example 5, fix hull-white notebook (example 4) See merge request qs/oreswig!47
2 parents 7c3de6a + 0cab1bb commit 959714f

14 files changed

Lines changed: 7217 additions & 16 deletions

File tree

OREAnalytics-SWIG/Python/Examples/Notebooks/Example_4/ore.ipynb

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -311,26 +311,14 @@
311311
},
312312
{
313313
"cell_type": "code",
314-
"execution_count": 1,
314+
"execution_count": null,
315315
"id": "44346cb5-6296-4d9e-bf10-aadadac21f9e",
316316
"metadata": {},
317-
"outputs": [
318-
{
319-
"ename": "ModuleNotFoundError",
320-
"evalue": "No module named 'OREPlus'",
321-
"output_type": "error",
322-
"traceback": [
323-
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
324-
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
325-
"Cell \u001b[0;32mIn[1], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mOREPlus\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;241m*\u001b[39m\n\u001b[1;32m 2\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01msys\u001b[39;00m\u001b[38;5;241m,\u001b[39m \u001b[38;5;21;01mtime\u001b[39;00m\u001b[38;5;241m,\u001b[39m \u001b[38;5;21;01mmath\u001b[39;00m\n\u001b[1;32m 3\u001b[0m sys\u001b[38;5;241m.\u001b[39mpath\u001b[38;5;241m.\u001b[39mappend(\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m../../../../OREAnalytics-SWIG/Python/Examples/Notebooks\u001b[39m\u001b[38;5;124m'\u001b[39m)\n",
326-
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'OREPlus'"
327-
]
328-
}
329-
],
317+
"outputs": [],
330318
"source": [
331319
"from ORE import *\n",
332320
"import sys, time, math\n",
333-
"sys.path.append('../../../../OREAnalytics-SWIG/Python/Examples/Notebooks')\n",
321+
"sys.path.append('..')\n",
334322
"import utilities\n",
335323
"import matplotlib.pyplot as plt\n",
336324
"import pandas as pd\n",
@@ -484,7 +472,7 @@
484472
"name": "python",
485473
"nbconvert_exporter": "python",
486474
"pygments_lexer": "ipython3",
487-
"version": "3.11.2"
475+
"version": "3.11.6"
488476
}
489477
},
490478
"nbformat": 4,

0 commit comments

Comments
 (0)