Hi everyone,
I ran the Jupyter Notebook’s code to access neuropixels visual coding data.
After typing the following comments to get session data,
import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from allensdk.brain_observatory.ecephys.ecephys_project_cache import EcephysProjectCache
data_directory=’/Users/cylee/Documents/AllenSDK-master/example_ecephys_project’
manifest_path=os.path.join(data_directory,“manifest.json”)
cache= EcephysProjectCache.from_warehouse(manifest=manifest_path)
sessions=cache.get_session_table()
filtered_sessions = sessions[(sessions.sex == ‘M’) &
…: (sessions.full_genotype.str.find(‘Sst’) > -1) &
…: (sessions.session_type == ‘brain_observatory_1.1’) &
…: ([‘VISl’ in acronyms for acronyms in
…: sessions.ecephys_structure_acronyms])]
probes=cache.get_probes()
channels=cache.get_channels()
units=cache.get_units()
analysis_metrics1 = cache.get_unit_analysis_metrics_by_session_type(‘brain_observatory_1.1’)
analysis_metrics2 = cache.get_unit_analysis_metrics_by_session_type(‘functional_connectivity’)
all_metrics = pd.concat([analysis_metrics1, analysis_metrics2], sort=False)
session = cache.get_session_data(filtered_sessions.index.values[0])
I bumped into error on my mac, 8GB 1600 MHz DDR3, saying “raise asyncio.TimeoutError from None concurrent.futures._base.TimeoutError”
I assumed this is because my mac does not have enough disk space to store that session data locally. Then I moved to a PC with 350 GB free and 16 RAM GB and ran the same code on jupyter notebook. However I bumped into another error saying RuntimeError: This event loop is already running
Does anyone know what issue I am facing and what I should do to fix this issue?
Best Regards
Chi-Yu