Skip to content

Commit

Permalink
Update file name
Browse files Browse the repository at this point in the history
  • Loading branch information
rly committed Nov 10, 2023
1 parent 8813df4 commit f21f4dc
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions notebooks/04_PopulateConfigFile.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@
"source": [
"## Example Ingestion with Real Data\n",
"\n",
"For this example, you will need to download the NWB file `sub-JDS-NFN-AM2_behavior+ecephys.nwb`\n",
"For this example, you will need to download the 5 GB NWB file \n",
"`sub-JDS-NFN-AM2_behavior+ecephys.nwb`\n",
"from dandiset 000447 here: \n",
"https://dandiarchive.org/dandiset/000447/0.230316.2133/files?location=sub-JDS-NFN-AM2&page=1\n",
"\n",
Expand All @@ -160,7 +161,20 @@
"data was collected from a SpikeGadgets system with an Intan amplifier. This\n",
"matches an existing entry in the `DataAcquisitionDevice` table with name\n",
"\"data_acq_device0\". We will create a configuration YAML file to associate\n",
"this entry with the NWB file."
"this entry with the NWB file.\n",
"\n",
"If you are connected to the Frank lab database, please rename any downloaded\n",
"files (e.g., `example20200101_yourname.nwb`) to avoid naming collisions, as the\n",
"file name acts as the primary key across key tables."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"nwb_file_name = \"sub-JDS-NFN-AM2_behavior+ecephys_rly.nwb\""
]
},
{
Expand All @@ -170,7 +184,7 @@
"outputs": [],
"source": [
"# this configuration yaml file should be placed next to the downloaded NWB file\n",
"yaml_config_path = \"sub-JDS-NFN-AM2_behavior+ecephys_spyglass_config.yaml\"\n",
"yaml_config_path = \"sub-JDS-NFN-AM2_behavior+ecephys_rly_spyglass_config.yaml\"\n",
"with open(yaml_config_path, \"w\") as config_file:\n",
" lines = [\n",
" \"DataAcquisitionDevice\",\n",
Expand All @@ -194,7 +208,6 @@
"source": [
"import spyglass.data_import as sgi\n",
"\n",
"nwb_file_name = \"sub-JDS-NFN-AM2_behavior+ecephys.nwb\"\n",
"sgi.insert_sessions(nwb_file_name)"
]
},
Expand Down

0 comments on commit f21f4dc

Please sign in to comment.