Skip to content

Commit

Permalink
cleaup notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzocerrone committed Oct 3, 2024
1 parent 98dcad4 commit c81ae61
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
11 changes: 9 additions & 2 deletions docs/notebooks/basic_usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"source": [
"# Loading a table\n",
"feature_table = ngff_image.table.get(\"regionprops_DAPI\")\n",
"feature_table.data_frame"
"feature_table.table"
]
},
{
Expand All @@ -147,7 +147,7 @@
"print(f\"{roi_table.list_field_indexes=}\")\n",
"print(f\"{roi_table.get_roi(\"FOV_1\")=}\")\n",
"\n",
"roi_table.data_frame"
"roi_table.table"
]
},
{
Expand All @@ -174,6 +174,13 @@
"print(f\"{new_ngff_image.levels_paths=}\")\n",
"print(f\"{new_ngff_image.num_levels=}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
13 changes: 11 additions & 2 deletions docs/notebooks/image.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
" {\"label\": nuclei_id,\n",
" \"feat1\": np.random.rand(),\n",
" \"feat2\": np.random.rand(),\n",
" \"ROI\": roi.field_index}\n",
" \"ROI\": roi.infos.get(\"field_index\")}\n",
" )\n",
"\n",
"feat_df = pd.DataFrame.from_records(list_of_records)\n",
Expand All @@ -304,8 +304,17 @@
"\n",
"print(f\"New list of feature table: {ngff_image.table.list(type='feature_table')}\")\n",
"feat_table.table = feat_df\n",
"feat_table.write()"
"feat_table.write()\n",
"\n",
"feat_table.table"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit c81ae61

Please sign in to comment.