Skip to content

Basic tools for parsing subject, session, date and time associated with data from the Mindscope Neuropixels team, in the cloud.

Notifications You must be signed in to change notification settings

AllenInstitute/npc_session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

142 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npc_session

neuropixels cloud session

Basic tools for parsing subject, session, date and time associated with data from the Mindscope Neuropixels team, in the cloud.

PyPI Python version

Coverage CI/CD GitHub issues

quickstart

pip install npc_session

Parse a normalized ID from a path or string:

>>> from npc_session import SessionRecord;

>>> s = SessionRecord('//allen/programs/mindscope/workgroups/templeton/TTOC/2022-07-26_14-09-36_366122')
>>> s
'366122_2022-07-26'
>>> s.idx
0
>>> s.subject
366122
>>> s.date
'2022-07-26'
>>> s.date.dt
datetime.date(2022, 7, 26)
>>> s.date.year
2022
>>> s_1 = SessionRecord('//allen/programs/mindscope/workgroups/templeton/TTOC/2022-07-26_14-09-36_366122_1')
>>> s_1.idx
1
>>> s_2 = s_1.with_idx(2)
>>> s_2.idx
2

About

Basic tools for parsing subject, session, date and time associated with data from the Mindscope Neuropixels team, in the cloud.

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages