Guest User

IBL access error gen code

a guest
Jul 22nd, 2020
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. !pip install --quiet nma-ibl
  2.  
  3. !wget https://github.com/vathes/nma-ibl/raw/master/uuids_trained1.npy
  4.  
  5. import datajoint as dj
  6.  
  7. dj.config['database.host'] = 'datajoint-public.internationalbrainlab.org'
  8. dj.config['database.user'] = '{USERNAME}'
  9. dj.config['database.password'] = '{ADD PASSWORD HERE}'
  10. dj.conn() # explicitly verify that the connection to database can be established
  11.  
  12.  
  13. from nma_ibl import reference, subject, behavior_analyses
  14. from nma_ibl.paper_behavior_functions import (query_subjects, seaborn_style,
  15. group_colors, institution_map, seaborn_style)
  16. use_subjects = query_subjects()
  17.  
  18. b = behavior_analyses.BehavioralSummaryByDate * use_subjects
  19. behav = b.fetch(order_by='institution_short, subject_nickname, training_day',
  20. format='frame').reset_index()
Add Comment
Please, Sign In to add comment