Skip to content

Commit

Permalink
Fix notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
brynpickering committed Apr 5, 2024
1 parent 94284e0 commit c293c74
Show file tree
Hide file tree
Showing 20 changed files with 11,674 additions and 2,060 deletions.
305 changes: 209 additions & 96 deletions examples/01_basics.ipynb

Large diffs are not rendered by default.

512 changes: 462 additions & 50 deletions examples/02a_tabular_read_write.ipynb

Large diffs are not rendered by default.

64 changes: 33 additions & 31 deletions examples/02b_matsim_read_write.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,13 @@
"start_time": "2020-05-18T14:31:06.133057Z"
},
"execution": {
"iopub.execute_input": "2024-04-04T10:40:59.019761Z",
"iopub.status.busy": "2024-04-04T10:40:59.018761Z",
"iopub.status.idle": "2024-04-04T10:40:59.265836Z",
"shell.execute_reply": "2024-04-04T10:40:59.265836Z"
"iopub.execute_input": "2024-04-05T15:20:52.985796Z",
"iopub.status.busy": "2024-04-05T15:20:52.985562Z",
"iopub.status.idle": "2024-04-05T15:21:33.988862Z",
"shell.execute_reply": "2024-04-05T15:21:33.988315Z"
}
},
"outputs": [
{
"ename": "ModuleNotFoundError",
"evalue": "No module named 'pam'",
"output_type": "error",
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[1;32mIn[1], line 3\u001b[0m\n\u001b[0;32m 1\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mos\u001b[39;00m\n\u001b[1;32m----> 3\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mpam\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m read\n",
"\u001b[1;31mModuleNotFoundError\u001b[0m: No module named 'pam'"
]
}
],
"outputs": [],
"source": [
"import os\n",
"\n",
Expand All @@ -68,13 +56,27 @@
"start_time": "2020-05-18T13:40:08.557000Z"
},
"execution": {
"iopub.execute_input": "2023-09-22T10:52:09.923714Z",
"iopub.status.busy": "2023-09-22T10:52:09.923529Z",
"iopub.status.idle": "2023-09-22T10:52:09.943255Z",
"shell.execute_reply": "2023-09-22T10:52:09.942840Z"
"iopub.execute_input": "2024-04-05T15:21:33.993493Z",
"iopub.status.busy": "2024-04-05T15:21:33.993223Z",
"iopub.status.idle": "2024-04-05T15:21:34.044982Z",
"shell.execute_reply": "2024-04-05T15:21:34.044602Z"
}
},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"{'num_households': 51,\n",
" 'num_people': 51,\n",
" 'num_activities': 153,\n",
" 'num_legs': 102}"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"population = read.read_matsim(plans_path=os.path.join(\"data\", \"example_data\", \"example_plans.xml\"))\n",
"population.stats"
Expand All @@ -94,10 +96,10 @@
"execution_count": 3,
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-22T10:52:09.965932Z",
"iopub.status.busy": "2023-09-22T10:52:09.965678Z",
"iopub.status.idle": "2023-09-22T10:52:09.988187Z",
"shell.execute_reply": "2023-09-22T10:52:09.987789Z"
"iopub.execute_input": "2024-04-05T15:21:34.075604Z",
"iopub.status.busy": "2024-04-05T15:21:34.075363Z",
"iopub.status.idle": "2024-04-05T15:21:34.111213Z",
"shell.execute_reply": "2024-04-05T15:21:34.110701Z"
}
},
"outputs": [],
Expand Down Expand Up @@ -137,10 +139,10 @@
"execution_count": 4,
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-22T10:52:09.989729Z",
"iopub.status.busy": "2023-09-22T10:52:09.989627Z",
"iopub.status.idle": "2023-09-22T10:52:10.015293Z",
"shell.execute_reply": "2023-09-22T10:52:10.014977Z"
"iopub.execute_input": "2024-04-05T15:21:34.113593Z",
"iopub.status.busy": "2024-04-05T15:21:34.113403Z",
"iopub.status.idle": "2024-04-05T15:21:34.204085Z",
"shell.execute_reply": "2024-04-05T15:21:34.203676Z"
}
},
"outputs": [],
Expand Down Expand Up @@ -190,7 +192,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.8"
"version": "3.10.13"
},
"latex_envs": {
"LaTeX_envs_menu_present": true,
Expand Down
Loading

0 comments on commit c293c74

Please sign in to comment.