Skip to content

Commit

Permalink
ruffing
Browse files Browse the repository at this point in the history
  • Loading branch information
grg2rsr committed Dec 10, 2024
1 parent 96a6b18 commit 38ec0e7
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 535 deletions.
20 changes: 11 additions & 9 deletions src/examples/load_photometry_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# imports\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"import iblphotometry.io as ffio\n",
"import iblphotometry.plots as plots"
"import iblphotometry.io as ffio"
]
},
{
Expand All @@ -32,9 +29,10 @@
"source": [
"# ONE instantiation\n",
"from one.api import ONE\n",
"\n",
"one = ONE(base_url='https://alyx.internationalbrainlab.org', mode='remote')\n",
"\n",
"lab = 'cortexlab' # for carolinas dataset or 'wittenlab' for alejandros dataset\n",
"lab = 'cortexlab' # for carolinas dataset or 'wittenlab' for alejandros dataset\n",
"eids = one.search(dataset='photometry.signal.pqt', lab=lab)\n",
"eid = eids[2]"
]
Expand Down Expand Up @@ -452,12 +450,16 @@
}
],
"source": [
"raw_photometry_df = one.load_dataset(eid, dataset='photometry.signal', download_only=True)\n",
"raw_photometry_df = one.load_dataset(\n",
" eid, dataset='photometry.signal', download_only=True\n",
")\n",
"signal_pqt_path = one.eid2path(eid) / 'alf/photometry/photometry.signal.pqt'\n",
"locations_df = one.load_dataset(eid, dataset='photometryROI.locations', download_only=True)\n",
"locations_df = one.load_dataset(\n",
" eid, dataset='photometryROI.locations', download_only=True\n",
")\n",
"locations_pqt_path = one.eid2path(eid) / 'alf/photometry/photometryROI.locations.pqt'\n",
"\n",
"ffio.from_ibl_pqt(signal_pqt_path, locations_pqt_path)\n"
"ffio.from_ibl_pqt(signal_pqt_path, locations_pqt_path)"
]
}
],
Expand Down
Loading

0 comments on commit 38ec0e7

Please sign in to comment.