In [1]:
%matplotlib inline
from __future__ import division
import pdb
import sys
import pandas as pd
import numpy as np
import scipy.io as sio
import matplotlib.pyplot as plt
import matplotlib
import scipy.signal as sg
import math
import scipy as sp
import socket
import os
import multiprocessing

matplotlib.style.use('ggplot')

comp_name=socket.gethostname()
if  comp_name == 'Ezequiels-MacBook-Pro.local':
    print 'Computer: ' + comp_name
    sys.path.append('/Users/zeke/experiment/ephysDataManagement/ephysScripts')
    experiment_folder = os.path.join('/Users','zeke','experiment')
else:
    print 'Computer: ' + 'server'
    sys.path.append('/experiment/ephysDataManagement/ephysScripts')
    experiment_folder = os.path.join('/','experiment')
    
import unitToolsv2
from data_handling import ephys_names as en
from data_handling.basic_plot import decim, plot_raster, make_psth, col_binned
from data_handling import data_load as dl
from data_handling.data_load import get_warping_parameters
from analysis import stimulus as st
from analysis import response_functions as rf


#load all the records, to not load all the records for every stimulus
fn = en.file_names(root = experiment_folder)
cells_path = os.path.join(fn.fold_exp_data, 'data_play', 'all')
uf = dl.list_cells(cells_path)
all_cells = [f for f in uf if f.find('ZKawakeM72_029')>-1]
all_cells = uf
#print all_cells
all_records = dl.load_cells(cells_path, all_cells)

#all_records = dl.load_cells(cells_path)

## create a stimulus and initialize it (load its responses)
high_2hydroxy = st.Odor(['2-hydroxyacetophenone','2hydroxyacetophenone'], 0.0051)
st_1 = st.Stimulus(high_2hydroxy, records = all_records, tags = {'light':1} )

#get the first response and plot it
warp = True
#st_1.responses['ZKawakeM72_013_e_010'].get_response_onset(warped=warp)
#rp = st_1.responses['ZKawakeM72_013_e_010'].plot(warped=warp)

#make all the odor stimuli
tags = {'light':1}
# {odor_name: [stim_aliases], conc, records, tags, extra_plot_pars}

all_odors_list = {'2-hydroxy_high': [['2-hydroxyacetophenone','2hydroxyacetophenone'], 0.0051, 
                  all_records, tags, {'color': '#9F000F', 'alpha': 1.}],
                  
                  '2-hydroxy_med': [['2-hydroxyacetophenone','2hydroxyacetophenone'], 2.97e-4,
                                    all_records, tags, {'color': '#F62217', 'alpha': .5}],
                  
                  '2-hydroxy_low': [['2-hydroxyacetophenone','2hydroxyacetophenone'], 1.8e-5,
                                    all_records, tags, {'color': '#E77471', 'alpha': .25}],
                  
                  'ethyl_tiglate': [['ethyl_tiglate','ethyltiglate'], 1.3e-4,
                                    all_records, tags, {'color': '#41a317', 'alpha': 1.}],
                  
                  'acetophenone': [['acetophenone','acetoph'], 7.9e-4, 
                                   all_records, tags, {'color': '#43c6db', 'alpha': 1.}],
                  
                  '4-methyl': [['4-methylacetophenone','4methyl'], 1.8e-3,
                               all_records, tags, {'color': '#FF00FF', 'alpha': 1.}],
                  
                  'benzaldehyde': [['benzaldehyde', 'benz'], 1.9e-4,
                                   all_records, tags, {'color': '#F88017', 'alpha': 1.}],
                  
                  '2-4-dimethyl': [['2-4-dimethylacetophenone', '24-dimethylacetophenone'], 5.8e-3, 
                                   all_records, tags, {'color': '#FFD801', 'alpha': 1.}],
                  
                  'menthone_high': [['menthone', 'mentone'], 1.6e-2,
                                    all_records,tags, {'color': '#000080', 'alpha': 1.}],
                  
                  'menthone_med': [['menthone', 'mentone'], 1.6e-3,
                                   all_records, tags, {'color': '#1569c7', 'alpha': 0.5}],
                  
                  'menthone_low': [['menthone', 'mentone'], 7e-5,
                                   all_records, tags, {'color': '#188AC7', 'alpha': .25}]
                 }

all_odors = {}
for key, sd in all_odors_list.iteritems():
    all_odors.update({key: st.Stimulus(st.Odor(sd[0], sd[1]), records=sd[2], tags=sd[3], extra_plot_pars=sd[4])})

all_odors_population = {}
for key, sd in all_odors_list.iteritems():
    all_odors_population.update({key: st.Stimulus(st.Odor(sd[0], sd[1]), records=sd[2], tags = {'light':0}, extra_plot_pars=sd[4])})

all_odor_responses = {'litral': all_odors, 'population': all_odors_population}

print all_odors.keys()
#[r.plot(warped=True) for r in list(st_1.responses.values())]


Computer: server
Computer: server
/experiment/export_data/data_play/all/KPawakeM72_014_001_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_014_004_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_014_006_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_014_007_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_014_012_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_014_017_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_001_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_005_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_006_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_007_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_008_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_009_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_010_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_011_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_012_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_016_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_017_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_018_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_019_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_020_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_021_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_023_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_016_025_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_019_002_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_019_003_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_019_004_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_019_005_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_019_006_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_019_007_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_019_010_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_019_011_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_019_013_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_019_014_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_019_015_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_019_018_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_019_020_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_019_021_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_001_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_003_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_004_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_005_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_006_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_008_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_009_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_010_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_011_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_012_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_013_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_014_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_016_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_017_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_018_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_023_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_026_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_028_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_029_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_030_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_021_031_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_023_001_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_023_003_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_023_005_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_023_006_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_024_001_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_024_002_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_024_003_cell.mat
/experiment/export_data/data_play/all/KPawakeM72_817_001_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_001_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_002_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_003_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_004_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_005_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_006_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_007_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_008_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_010_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_011_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_012_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_014_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_015_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_016_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_017_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_018_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_019_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_020_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_021_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_022_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_023_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_004_025_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_005_001_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_006_001_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_009_001_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_009_002_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_009_003_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_009_005_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_010_001_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_010_002_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_010_003_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_010_004_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_011_001_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_011_003_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_011_004_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_011_005_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_011_006_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_011_007_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_011_010_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_011_011_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_011_012_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_012_001_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_012_002_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_012_003_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_012_004_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_012_005_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_012_006_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_012_007_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_012_008_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_012_009_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_012_010_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_012_011_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_012_012_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_012_013_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_013_010_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_013_011_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_015_001_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_001_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_002_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_003_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_004_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_006_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_007_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_008_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_009_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_010_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_011_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_012_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_013_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_014_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_015_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_016_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_017_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_018_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_019_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_020_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_021_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_022_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_023_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_024_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_025_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_026_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_027_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_028_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_029_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_030_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_031_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_032_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_020_033_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_021_002_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_022_001_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_022_002_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_022_003_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_022_004_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_023_002_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_023_003_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_023_004_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_023_005_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_027_001_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_027_003_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_027_004_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_027_005_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_027_006_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_001_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_002_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_003_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_004_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_005_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_006_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_007_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_008_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_009_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_010_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_011_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_012_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_014_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_015_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_016_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_017_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_019_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_020_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_021_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_022_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_028_023_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_029_001_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_029_002_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_029_003_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_029_004_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_029_005_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_029_006_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_029_009_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_029_010_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_029_011_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_029_012_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_029_013_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_001_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_002_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_003_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_004_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_005_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_006_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_007_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_008_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_009_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_010_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_011_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_012_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_013_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_014_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_015_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_016_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_017_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_018_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_019_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_020_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_021_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_022_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_023_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_024_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_025_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_026_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_027_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_028_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_029_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_030_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_031_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_032_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_033_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_034_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_035_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_036_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_037_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_038_cell.mat
/experiment/export_data/data_play/all/ZKawakeM72_030_039_cell.mat
['ethyl_tiglate', '4-methyl', 'menthone_med', 'menthone_high', 'acetophenone', '2-4-dimethyl', 'menthone_low', '2-hydroxy_med', '2-hydroxy_high', '2-hydroxy_low', 'benzaldehyde']

In [2]:
# compute cell_response properties for all the cellresponses in a list of stimuli
def worker(procnum, stim_list, params=None):
    #print str(procnum)
    default_params = {'warp': False, 'bin_size':15, 'p': 0.05}
    
    par = default_params
    if params is not None:
        for key, val in params.iteritems():
            par.update({key: val})
    
    if type(stim_list) is not list:
        stim_list = [stim_list]
    for stim in stim_list:
        for r_name, r in list(stim.cell_responses.iteritems()):
            try:
                r.get_response_onset(warped=par['warp'], bin_size=par['bin_size'], p_ks=par['p'])
                r.get_spike_count()
                #r.plot(warped=warp)
                print 'ok ' + r_name
            except:
                print 'fail in ' + r_name

In [51]:
#get all the population rec
all_odors_population = {}
for key, sd in all_odors_list.iteritems():
    all_odors_population.update({key: st.Stimulus(st.Odor(sd[0], sd[1]), records=sd[2], tags = {'light':0}, extra_plot_pars=sd[4])})

In [3]:
procs = 8
jobs =[]
n_stim = len(all_odors)
stim_per_proc = int(math.ceil(n_stim/procs))

for i in range(0, procs):
    keys = all_odors_population.keys()[i*stim_per_proc: (i+1)*stim_per_proc]
    stim = [all_odors_population[key] for key in keys]
   
    if not stim == []:
        print keys
        print i
        process = multiprocessing.Process(target=worker(i, stim))
        jobs.append(process)

[j.start() for j in jobs]
[j.join() for j in jobs]


['ethyl_tiglate', '4-methyl']
0
ok ZKawakeM72_011_004
fail in KPawakeM72_016_001
ok ZKawakeM72_011_007
fail in KPawakeM72_016_007
fail in KPawakeM72_016_006
fail in KPawakeM72_016_005
ok ZKawakeM72_011_003
fail in KPawakeM72_016_009
fail in KPawakeM72_016_008
ok ZKawakeM72_011_006
ok ZKawakeM72_012_009
ok ZKawakeM72_012_008
ok ZKawakeM72_012_010
ok ZKawakeM72_012_011
ok ZKawakeM72_012_012
ok ZKawakeM72_012_013
ok ZKawakeM72_012_003
fail in KPawakeM72_014_017
ok KPawakeM72_014_007
ok KPawakeM72_014_006
ok ZKawakeM72_012_007
ok ZKawakeM72_012_006
ok ZKawakeM72_012_005
ok ZKawakeM72_012_004
ok KPawakeM72_014_001
ok KPawakeM72_014_004
fail in KPawakeM72_016_025
fail in KPawakeM72_016_019
fail in ZKawakeM72_010_003
fail in ZKawakeM72_010_002
fail in KPawakeM72_016_021
fail in KPawakeM72_016_020
fail in KPawakeM72_016_023
fail in KPawakeM72_016_017
fail in KPawakeM72_016_010
fail in KPawakeM72_016_011
fail in KPawakeM72_016_012
fail in ZKawakeM72_011_005
fail in KPawakeM72_016_001
fail in ZKawakeM72_011_010
fail in KPawakeM72_016_007
fail in KPawakeM72_016_006
fail in KPawakeM72_016_005
fail in ZKawakeM72_011_012
fail in ZKawakeM72_011_011
fail in KPawakeM72_016_008
fail in KPawakeM72_016_009
ok KPawakeM72_014_017
ok ZKawakeM72_004_020
ok ZKawakeM72_004_021
fail in ZKawakeM72_004_010
fail in ZKawakeM72_004_006
fail in ZKawakeM72_004_007
fail in ZKawakeM72_004_022
ok ZKawakeM72_004_023
fail in KPawakeM72_016_025
fail in ZKawakeM72_004_008
ok ZKawakeM72_009_003
fail in ZKawakeM72_009_002
ok ZKawakeM72_009_001
fail in KPawakeM72_016_011
ok ZKawakeM72_010_004
fail in KPawakeM72_016_019
fail in KPawakeM72_016_021
fail in KPawakeM72_016_020
fail in KPawakeM72_016_023
fail in KPawakeM72_016_017
fail in KPawakeM72_016_010
fail in ZKawakeM72_009_005
fail in KPawakeM72_016_012
['menthone_med', 'menthone_high']
1
fail in KPawakeM72_016_001
fail in ZKawakeM72_029_005
fail in KPawakeM72_016_006
ok ZKawakeM72_020_019
ok ZKawakeM72_020_018
ok ZKawakeM72_020_017
ok ZKawakeM72_020_016
ok ZKawakeM72_020_015
ok KPawakeM72_019_003
ok ZKawakeM72_020_013
ok ZKawakeM72_020_012
ok ZKawakeM72_020_011
ok ZKawakeM72_020_010
fail in ZKawakeM72_030_025
ok ZKawakeM72_030_027
fail in ZKawakeM72_030_026
fail in KPawakeM72_016_007
fail in ZKawakeM72_030_029
fail in ZKawakeM72_027_001
fail in ZKawakeM72_029_004
ok ZKawakeM72_004_003
ok ZKawakeM72_023_004
fail in ZKawakeM72_004_006
fail in KPawakeM72_016_005
ok ZKawakeM72_004_004
ok ZKawakeM72_004_005
fail in KPawakeM72_021_030
fail in KPawakeM72_021_031
fail in ZKawakeM72_004_008
ok ZKawakeM72_029_006
ok KPawakeM72_014_006
ok ZKawakeM72_029_009
fail in ZKawakeM72_030_039
fail in KPawakeM72_016_009
fail in ZKawakeM72_020_026
ok ZKawakeM72_020_027
ok ZKawakeM72_020_024
fail in KPawakeM72_016_008
fail in ZKawakeM72_020_023
fail in ZKawakeM72_020_020
fail in KPawakeM72_019_018
ok KPawakeM72_019_004
fail in KPawakeM72_019_015
fail in KPawakeM72_019_014
fail in KPawakeM72_019_013
fail in KPawakeM72_019_011
fail in KPawakeM72_019_010
ok ZKawakeM72_012_010
ok KPawakeM72_019_006
ok ZKawakeM72_012_012
ok ZKawakeM72_012_013
ok ZKawakeM72_023_005
fail in KPawakeM72_019_007
fail in ZKawakeM72_004_011
ok ZKawakeM72_004_012
fail in ZKawakeM72_004_015
ok ZKawakeM72_004_014
fail in ZKawakeM72_004_017
fail in ZKawakeM72_004_016
ok ZKawakeM72_004_019
fail in ZKawakeM72_004_018
fail in KPawakeM72_021_028
fail in KPawakeM72_021_023
ok KPawakeM72_019_020
fail in ZKawakeM72_028_017
fail in ZKawakeM72_028_016
fail in ZKawakeM72_028_015
fail in ZKawakeM72_028_014
fail in ZKawakeM72_028_012
fail in KPawakeM72_021_026
fail in ZKawakeM72_028_019
ok ZKawakeM72_011_004
ok ZKawakeM72_020_031
ok ZKawakeM72_020_030
ok ZKawakeM72_020_033
ok KPawakeM72_019_021
ok KPawakeM72_023_003
ok KPawakeM72_023_001
ok KPawakeM72_023_006
ok ZKawakeM72_012_009
ok ZKawakeM72_012_008
ok ZKawakeM72_012_003
ok KPawakeM72_014_017
ok ZKawakeM72_030_005
ok ZKawakeM72_030_004
ok ZKawakeM72_012_007
ok ZKawakeM72_012_006
ok ZKawakeM72_012_005
ok ZKawakeM72_012_004
fail in KPawakeM72_021_016
fail in ZKawakeM72_004_025
fail in KPawakeM72_021_012
fail in KPawakeM72_021_029
fail in KPawakeM72_021_010
fail in KPawakeM72_021_011
fail in ZKawakeM72_030_003
fail in ZKawakeM72_020_021
fail in ZKawakeM72_028_022
fail in ZKawakeM72_028_023
fail in ZKawakeM72_028_020
fail in ZKawakeM72_028_021
fail in ZKawakeM72_030_001
fail in KPawakeM72_016_021
fail in KPawakeM72_016_020
fail in KPawakeM72_016_023
ok KPawakeM72_019_005
fail in KPawakeM72_016_025
ok ZKawakeM72_022_004
fail in ZKawakeM72_020_008
ok ZKawakeM72_020_009
ok ZKawakeM72_011_006
ok ZKawakeM72_011_007
ok ZKawakeM72_011_003
ok ZKawakeM72_022_002
ok ZKawakeM72_020_002
ok ZKawakeM72_020_003
fail in ZKawakeM72_020_004
fail in ZKawakeM72_022_003
ok ZKawakeM72_020_006
ok ZKawakeM72_020_007
fail in ZKawakeM72_030_036
fail in ZKawakeM72_030_037
fail in ZKawakeM72_030_034
fail in ZKawakeM72_030_035
fail in ZKawakeM72_030_032
ok ZKawakeM72_020_028
ok ZKawakeM72_030_030
ok ZKawakeM72_030_031
ok ZKawakeM72_027_003
ok KPawakeM72_014_004
ok KPawakeM72_014_007
ok ZKawakeM72_020_029
ok KPawakeM72_014_001
fail in ZKawakeM72_030_038
fail in ZKawakeM72_004_007
fail in KPawakeM72_016_017
fail in KPawakeM72_021_006
fail in ZKawakeM72_030_033
fail in KPawakeM72_021_003
fail in ZKawakeM72_030_002
fail in ZKawakeM72_020_025
ok ZKawakeM72_020_032
fail in KPawakeM72_016_019
fail in ZKawakeM72_010_003
fail in ZKawakeM72_010_002
fail in ZKawakeM72_029_003
ok ZKawakeM72_021_002
fail in KPawakeM72_016_010
fail in KPawakeM72_016_011
fail in KPawakeM72_016_012
ok ZKawakeM72_012_011
fail in ZKawakeM72_029_003
fail in ZKawakeM72_029_005
ok ZKawakeM72_029_004
ok KPawakeM72_019_020
ok ZKawakeM72_020_018
ok ZKawakeM72_020_017
ok ZKawakeM72_020_016
ok KPawakeM72_023_001
ok KPawakeM72_019_003
ok KPawakeM72_019_004
ok KPawakeM72_023_006
ok KPawakeM72_019_006
ok KPawakeM72_019_007
fail in ZKawakeM72_030_025
ok ZKawakeM72_030_027
fail in ZKawakeM72_030_026
fail in ZKawakeM72_028_020
ok ZKawakeM72_029_009
ok ZKawakeM72_020_031
ok ZKawakeM72_030_005
ok ZKawakeM72_030_004
fail in ZKawakeM72_030_003
fail in ZKawakeM72_030_002
fail in ZKawakeM72_030_001
ok ZKawakeM72_020_030
ok KPawakeM72_021_016
ok KPawakeM72_021_017
ok KPawakeM72_021_014
ok ZKawakeM72_020_009
fail in KPawakeM72_021_012
ok KPawakeM72_021_013
ok KPawakeM72_021_010
ok KPawakeM72_021_011
fail in KPawakeM72_021_030
ok ZKawakeM72_030_029
ok ZKawakeM72_029_006
fail in ZKawakeM72_028_022
fail in ZKawakeM72_028_023
ok KPawakeM72_021_018
fail in ZKawakeM72_028_021
ok KPawakeM72_023_003
ok KPawakeM72_021_009
fail in KPawakeM72_024_003
ok ZKawakeM72_020_015
ok ZKawakeM72_020_027
fail in ZKawakeM72_022_003
ok ZKawakeM72_020_028
ok ZKawakeM72_020_029
fail in ZKawakeM72_030_036
fail in ZKawakeM72_030_037
fail in ZKawakeM72_030_034
ok ZKawakeM72_030_035
fail in ZKawakeM72_030_032
fail in ZKawakeM72_030_033
ok ZKawakeM72_020_033
ok ZKawakeM72_030_031
ok ZKawakeM72_027_003
fail in ZKawakeM72_027_001
fail in ZKawakeM72_020_010
fail in ZKawakeM72_030_038
fail in ZKawakeM72_030_039
ok KPawakeM72_021_005
ok KPawakeM72_021_004
ok KPawakeM72_019_021
ok KPawakeM72_021_006
ok KPawakeM72_019_005
ok KPawakeM72_021_003
fail in KPawakeM72_021_029
fail in KPawakeM72_021_028
fail in KPawakeM72_021_026
fail in KPawakeM72_021_023
ok KPawakeM72_021_008
fail in ZKawakeM72_028_017
fail in ZKawakeM72_028_016
fail in ZKawakeM72_028_015
fail in ZKawakeM72_028_014
ok ZKawakeM72_020_032
fail in ZKawakeM72_028_012
fail in KPawakeM72_021_031
ok ZKawakeM72_020_019
ok ZKawakeM72_030_030
fail in ZKawakeM72_028_019
['acetophenone', '2-4-dimethyl']
2
fail in KPawakeM72_016_001
fail in KPawakeM72_016_007
fail in KPawakeM72_016_006
fail in KPawakeM72_016_005
fail in KPawakeM72_016_009
fail in KPawakeM72_016_008
ok ZKawakeM72_004_003
ok ZKawakeM72_012_009
ok ZKawakeM72_012_008
ok ZKawakeM72_012_003
fail in KPawakeM72_014_017
ok ZKawakeM72_012_007
ok ZKawakeM72_012_006
ok ZKawakeM72_012_005
ok ZKawakeM72_012_004
fail in ZKawakeM72_004_025
ok ZKawakeM72_004_004
ok ZKawakeM72_004_005
fail in KPawakeM72_016_021
fail in KPawakeM72_016_020
fail in KPawakeM72_016_023
fail in KPawakeM72_016_025
ok ZKawakeM72_011_004
ok ZKawakeM72_011_006
ok ZKawakeM72_011_007
ok ZKawakeM72_011_003
ok ZKawakeM72_012_010
ok ZKawakeM72_012_011
ok ZKawakeM72_012_012
ok ZKawakeM72_012_013
ok KPawakeM72_014_004
ok KPawakeM72_014_007
fail in KPawakeM72_014_006
ok KPawakeM72_014_001
fail in ZKawakeM72_004_011
ok ZKawakeM72_004_012
fail in ZKawakeM72_004_015
ok ZKawakeM72_004_014
fail in ZKawakeM72_004_017
ok ZKawakeM72_004_016
fail in ZKawakeM72_004_019
fail in ZKawakeM72_004_018
fail in KPawakeM72_016_019
fail in ZKawakeM72_010_003
fail in ZKawakeM72_010_002
fail in KPawakeM72_016_017
fail in KPawakeM72_016_010
fail in KPawakeM72_016_011
fail in KPawakeM72_016_012
fail in ZKawakeM72_011_005
fail in KPawakeM72_016_001
fail in ZKawakeM72_011_010
fail in KPawakeM72_016_007
fail in KPawakeM72_016_006
fail in KPawakeM72_016_005
fail in ZKawakeM72_011_012
fail in ZKawakeM72_011_011
fail in KPawakeM72_016_008
fail in KPawakeM72_016_009
ok KPawakeM72_014_017
ok ZKawakeM72_004_020
ok ZKawakeM72_004_021
fail in ZKawakeM72_004_010
fail in ZKawakeM72_004_006
fail in ZKawakeM72_004_007
fail in ZKawakeM72_004_022
fail in ZKawakeM72_004_023
fail in KPawakeM72_016_025
fail in ZKawakeM72_004_008
ok ZKawakeM72_009_003
ok ZKawakeM72_009_002
ok ZKawakeM72_009_001
fail in KPawakeM72_016_011
ok ZKawakeM72_010_004
fail in KPawakeM72_016_019
fail in KPawakeM72_016_021
fail in KPawakeM72_016_020
fail in KPawakeM72_016_023
fail in KPawakeM72_016_017
fail in KPawakeM72_016_010
ok ZKawakeM72_009_005
fail in KPawakeM72_016_012
['menthone_low', '2-hydroxy_med']
3
ok ZKawakeM72_020_027
ok ZKawakeM72_020_029
ok ZKawakeM72_020_031
ok ZKawakeM72_020_030
ok KPawakeM72_019_020
ok KPawakeM72_019_021
ok KPawakeM72_023_003
ok ZKawakeM72_020_016
ok ZKawakeM72_020_015
ok KPawakeM72_019_003
ok KPawakeM72_019_004
ok KPawakeM72_023_006
ok ZKawakeM72_020_028
ok ZKawakeM72_020_010
ok ZKawakeM72_020_009
ok KPawakeM72_019_006
fail in KPawakeM72_021_029
fail in ZKawakeM72_027_003
fail in KPawakeM72_021_012
fail in ZKawakeM72_027_001
ok KPawakeM72_019_007
fail in KPawakeM72_021_016
fail in KPawakeM72_021_006
ok KPawakeM72_019_005
ok ZKawakeM72_020_033
fail in KPawakeM72_021_003
fail in KPawakeM72_021_011
fail in KPawakeM72_021_030
fail in KPawakeM72_021_031
ok ZKawakeM72_020_018
fail in KPawakeM72_021_023
fail in KPawakeM72_021_028
fail in KPawakeM72_021_010
ok ZKawakeM72_020_017
ok ZKawakeM72_020_032
fail in KPawakeM72_021_026
ok ZKawakeM72_020_019
fail in KPawakeM72_024_003
ok KPawakeM72_023_001
fail in ZKawakeM72_020_026
ok KPawakeM72_023_003
ok KPawakeM72_023_001
ok ZKawakeM72_020_013
ok ZKawakeM72_020_012
ok ZKawakeM72_020_011
fail in KPawakeM72_019_007
fail in KPawakeM72_019_010
ok ZKawakeM72_029_011
fail in ZKawakeM72_020_004
ok KPawakeM72_021_016
ok KPawakeM72_021_017
ok KPawakeM72_021_014
ok KPawakeM72_021_013
ok KPawakeM72_021_010
ok KPawakeM72_021_011
ok ZKawakeM72_020_002
fail in KPawakeM72_019_018
ok KPawakeM72_021_018
fail in ZKawakeM72_028_001
ok ZKawakeM72_028_002
ok ZKawakeM72_028_003
fail in ZKawakeM72_028_004
fail in ZKawakeM72_028_005
fail in ZKawakeM72_028_006
ok ZKawakeM72_028_007
fail in ZKawakeM72_028_008
ok ZKawakeM72_028_009
fail in KPawakeM72_019_015
ok ZKawakeM72_029_012
fail in ZKawakeM72_029_013
ok ZKawakeM72_020_024
ok ZKawakeM72_020_025
ok ZKawakeM72_020_023
fail in ZKawakeM72_020_020
fail in ZKawakeM72_020_021
fail in KPawakeM72_019_013
ok ZKawakeM72_022_004
fail in KPawakeM72_019_014
ok ZKawakeM72_022_002
fail in KPawakeM72_019_011
ok ZKawakeM72_020_007
ok KPawakeM72_023_006
ok ZKawakeM72_020_006
ok ZKawakeM72_027_003
ok ZKawakeM72_023_005
fail in ZKawakeM72_023_004
ok ZKawakeM72_027_006
ok KPawakeM72_021_005
ok KPawakeM72_021_004
ok KPawakeM72_021_006
ok KPawakeM72_021_003
fail in ZKawakeM72_029_010
ok KPawakeM72_021_009
ok KPawakeM72_021_008
ok ZKawakeM72_028_011
ok ZKawakeM72_028_010
ok ZKawakeM72_021_002
fail in ZKawakeM72_020_008
fail in ZKawakeM72_020_003
['2-hydroxy_high', '2-hydroxy_low']
4
fail in KPawakeM72_016_001
ok ZKawakeM72_028_010
fail in KPawakeM72_016_007
fail in KPawakeM72_016_006
ok ZKawakeM72_020_019
ok ZKawakeM72_020_018
ok ZKawakeM72_020_017
ok ZKawakeM72_020_016
fail in ZKawakeM72_011_011
fail in ZKawakeM72_011_010
ok ZKawakeM72_020_013
ok ZKawakeM72_020_012
ok ZKawakeM72_020_011
ok ZKawakeM72_020_010
fail in ZKawakeM72_030_024
ok ZKawakeM72_030_021
fail in ZKawakeM72_030_020
ok ZKawakeM72_030_023
fail in ZKawakeM72_030_022
fail in KPawakeM72_016_008
ok ZKawakeM72_030_013
ok ZKawakeM72_030_012
ok ZKawakeM72_004_003
ok ZKawakeM72_023_004
fail in ZKawakeM72_004_006
fail in KPawakeM72_016_005
ok ZKawakeM72_004_004
ok ZKawakeM72_004_005
fail in KPawakeM72_021_030
fail in KPawakeM72_021_031
fail in ZKawakeM72_004_008
ok KPawakeM72_019_021
fail in ZKawakeM72_028_001
ok ZKawakeM72_028_002
ok ZKawakeM72_028_003
fail in ZKawakeM72_028_004
ok ZKawakeM72_028_005
fail in ZKawakeM72_028_006
fail in ZKawakeM72_011_012
fail in ZKawakeM72_028_008
fail in ZKawakeM72_028_009
ok ZKawakeM72_020_015
fail in ZKawakeM72_020_026
ok ZKawakeM72_020_027
ok ZKawakeM72_020_024
ok KPawakeM72_019_003
ok ZKawakeM72_020_023
fail in ZKawakeM72_020_020
fail in KPawakeM72_019_018
ok KPawakeM72_019_004
fail in KPawakeM72_019_015
fail in KPawakeM72_019_014
fail in KPawakeM72_019_013
fail in KPawakeM72_019_011
ok KPawakeM72_019_005
fail in ZKawakeM72_030_018
fail in ZKawakeM72_030_019
ok ZKawakeM72_020_029
ok ZKawakeM72_012_010
ok KPawakeM72_019_006
ok ZKawakeM72_012_012
ok ZKawakeM72_012_013
ok ZKawakeM72_030_010
ok ZKawakeM72_023_005
fail in KPawakeM72_019_007
ok ZKawakeM72_030_014
ok ZKawakeM72_030_015
ok ZKawakeM72_030_016
ok ZKawakeM72_030_017
fail in ZKawakeM72_004_011
fail in ZKawakeM72_004_010
ok ZKawakeM72_004_012
ok ZKawakeM72_004_014
fail in KPawakeM72_021_029
fail in KPawakeM72_021_028
ok ZKawakeM72_004_019
fail in KPawakeM72_021_026
fail in ZKawakeM72_009_005
fail in KPawakeM72_021_023
ok ZKawakeM72_009_002
ok ZKawakeM72_009_001
fail in ZKawakeM72_028_007
fail in ZKawakeM72_028_011
fail in ZKawakeM72_004_018
fail in ZKawakeM72_029_012
fail in ZKawakeM72_029_010
ok ZKawakeM72_020_031
ok ZKawakeM72_020_030
ok KPawakeM72_019_020
ok ZKawakeM72_020_032
ok KPawakeM72_023_003
ok ZKawakeM72_009_003
ok KPawakeM72_023_001
ok ZKawakeM72_027_003
ok KPawakeM72_023_006
ok ZKawakeM72_012_003
ok ZKawakeM72_012_009
ok ZKawakeM72_012_008
ok ZKawakeM72_030_009
ok ZKawakeM72_030_008
ok ZKawakeM72_030_007
ok ZKawakeM72_030_006
ok ZKawakeM72_012_007
ok ZKawakeM72_012_006
ok ZKawakeM72_012_005
ok ZKawakeM72_012_004
ok KPawakeM72_021_016
ok KPawakeM72_021_017
ok KPawakeM72_021_014
fail in KPawakeM72_021_012
ok ZKawakeM72_004_021
ok KPawakeM72_021_010
ok KPawakeM72_021_011
fail in ZKawakeM72_020_021
ok KPawakeM72_021_018
fail in ZKawakeM72_004_025
fail in ZKawakeM72_020_008
fail in ZKawakeM72_004_017
fail in KPawakeM72_016_017
fail in KPawakeM72_016_021
fail in KPawakeM72_016_020
fail in KPawakeM72_016_023
fail in KPawakeM72_016_025
ok ZKawakeM72_022_004
ok ZKawakeM72_011_004
fail in ZKawakeM72_011_005
ok ZKawakeM72_011_006
ok ZKawakeM72_011_007
ok ZKawakeM72_011_003
fail in ZKawakeM72_029_013
ok ZKawakeM72_022_002
ok ZKawakeM72_020_002
fail in ZKawakeM72_020_003
ok ZKawakeM72_020_004
fail in ZKawakeM72_022_003
ok ZKawakeM72_020_006
ok ZKawakeM72_020_007
ok ZKawakeM72_020_009
ok ZKawakeM72_020_028
ok ZKawakeM72_020_033
ok KPawakeM72_014_017
ok ZKawakeM72_004_020
ok KPawakeM72_014_007
ok KPawakeM72_014_006
ok KPawakeM72_014_001
ok ZKawakeM72_027_006
ok KPawakeM72_021_013
ok KPawakeM72_021_005
ok KPawakeM72_021_004
ok KPawakeM72_021_006
fail in ZKawakeM72_004_022
ok KPawakeM72_021_003
ok ZKawakeM72_020_025
ok ZKawakeM72_004_023
ok KPawakeM72_021_009
ok KPawakeM72_021_008
fail in KPawakeM72_019_010
ok ZKawakeM72_010_004
ok KPawakeM72_014_004
fail in ZKawakeM72_004_007
fail in ZKawakeM72_029_011
fail in KPawakeM72_016_019
fail in ZKawakeM72_010_003
fail in ZKawakeM72_010_002
fail in KPawakeM72_016_009
ok ZKawakeM72_021_002
fail in KPawakeM72_016_010
fail in KPawakeM72_016_011
fail in KPawakeM72_016_012
ok ZKawakeM72_012_011
ok ZKawakeM72_029_012
ok KPawakeM72_023_003
ok KPawakeM72_023_001
ok ZKawakeM72_020_013
ok KPawakeM72_023_006
ok ZKawakeM72_020_011
ok ZKawakeM72_029_011
ok KPawakeM72_021_010
ok KPawakeM72_021_016
ok KPawakeM72_021_017
ok KPawakeM72_021_014
ok KPawakeM72_021_013
ok ZKawakeM72_004_004
ok KPawakeM72_021_011
ok KPawakeM72_021_018
fail in ZKawakeM72_004_025
fail in ZKawakeM72_020_008
fail in ZKawakeM72_004_017
fail in ZKawakeM72_020_026
fail in ZKawakeM72_029_013
ok ZKawakeM72_020_024
ok ZKawakeM72_020_025
ok ZKawakeM72_020_023
fail in ZKawakeM72_020_020
fail in ZKawakeM72_020_021
ok ZKawakeM72_020_002
fail in ZKawakeM72_020_003
ok ZKawakeM72_020_004
ok KPawakeM72_021_005
fail in ZKawakeM72_020_006
ok ZKawakeM72_020_012
ok ZKawakeM72_004_012
ok ZKawakeM72_027_003
ok ZKawakeM72_023_005
ok ZKawakeM72_023_004
ok ZKawakeM72_027_006
fail in ZKawakeM72_004_011
ok KPawakeM72_021_004
ok KPawakeM72_021_006
fail in ZKawakeM72_004_015
ok ZKawakeM72_004_014
ok KPawakeM72_021_003
ok ZKawakeM72_004_016
fail in ZKawakeM72_029_010
fail in ZKawakeM72_004_018
ok ZKawakeM72_004_005
ok KPawakeM72_021_009
ok KPawakeM72_021_008
ok ZKawakeM72_004_003
ok ZKawakeM72_004_019
fail in ZKawakeM72_020_007
ok ZKawakeM72_021_002
['benzaldehyde']
5
fail in ZKawakeM72_011_005
fail in KPawakeM72_016_001
fail in ZKawakeM72_011_010
fail in KPawakeM72_016_007
fail in KPawakeM72_016_006
fail in KPawakeM72_016_005
ok ZKawakeM72_011_012
fail in ZKawakeM72_011_011
fail in KPawakeM72_016_008
fail in KPawakeM72_016_009
ok KPawakeM72_014_017
fail in ZKawakeM72_004_020
ok ZKawakeM72_004_021
fail in ZKawakeM72_004_010
fail in ZKawakeM72_004_006
fail in ZKawakeM72_004_007
fail in ZKawakeM72_004_022
ok ZKawakeM72_004_023
fail in KPawakeM72_016_025
fail in ZKawakeM72_004_008
ok ZKawakeM72_009_003
fail in ZKawakeM72_009_002
fail in ZKawakeM72_009_001
fail in KPawakeM72_016_011
ok ZKawakeM72_010_004
fail in KPawakeM72_016_019
fail in KPawakeM72_016_021
fail in KPawakeM72_016_020
fail in KPawakeM72_016_023
fail in KPawakeM72_016_017
fail in KPawakeM72_016_010
ok ZKawakeM72_009_005
fail in KPawakeM72_016_012
/usr/local/anaconda/lib/python2.7/site-packages/numpy/core/_methods.py:59: RuntimeWarning: Mean of empty slice.
  warnings.warn("Mean of empty slice.", RuntimeWarning)
Out[3]:
[None, None, None, None, None, None]

In [6]:
#plot all the responses to all the stimuli
response_row = np.zeros(1, dtype=[('stim', '|S32'), ('resp', '|S32'), ('latency', 'f4'), ('onset_lvl','f4'), 
                                  ('spikes_inh', 'f4'), ('spikes_exh', 'f4'), ('spikes', 'f4'), ('ratio','f4')]) 
non_litrals = np.zeros_like(response_row)
#print litrals
warp = False
bin_size = 15
p=0.05
for st_name, stim in all_odors_population.iteritems():
    #print st_name
    #print stim.responses.keys()
    for r_name, r in list(stim.cell_responses.iteritems()):
        this_resp = np.zeros_like(response_row)
        this_resp['stim'] = st_name
        this_resp['resp'] = r_name
        if r.response_onset is None:
            continue
        this_resp['latency'] = r.response_onset['onset']
        this_resp['onset_lvl'] = r.response_onset['response'] - r.response_onset['baseline']
        this_resp['spikes_inh'] = r.spikes['inh']
        this_resp['spikes_exh'] = r.spikes['exh']
        this_resp['spikes'] = this_resp['spikes_inh'] + this_resp['spikes_exh']
        this_resp['ratio'] = this_resp['spikes_inh']/this_resp['spikes_exh']
        non_litrals = np.append(non_litrals, this_resp)
        #r.plot(warped=warp)

In [4]:
#get a list of cells, a list of stimuli and compute them all in parallel
#load all the records, to not load all the records for every stimulus
fn = en.file_names(root = experiment_folder)
cells_path = os.path.join(fn.fold_exp_data, 'data_play')
uf = dl.list_cells(cells_path)
all_cells = [f for f in uf if f.find('KPawakeM72_019')>-1]
print all_cells
all_records = dl.load_cells(cells_path, all_cells)
#all_records = dl.load_cells(cells_path)

#get the first response and plot it
warp = True
#st_1.responses['ZKawakeM72_013_e_010'].get_response_onset(warped=warp)
#rp = st_1.responses['ZKawakeM72_013_e_010'].plot(warped=warp)

#make all the odor stimuli
tags = {'light':1}

odor_dicts_list = []
recs_list = []
path_list = []

for key, sd in all_odors_list.iteritems():
    one_odor = {key: st.Stimulus(st.Odor(sd[0], sd[1]), records=sd[2], tags=sd[3], extra_plot_pars=sd[4])}
    odor_dicts_list.append(one_odor)
    recs_list.append(sd[2])
    path_list.append(cells_path)


['KPawakeM72_019_002', 'KPawakeM72_019_003', 'KPawakeM72_019_004', 'KPawakeM72_019_005', 'KPawakeM72_019_006', 'KPawakeM72_019_007', 'KPawakeM72_019_010', 'KPawakeM72_019_011', 'KPawakeM72_019_013', 'KPawakeM72_019_014', 'KPawakeM72_019_015', 'KPawakeM72_019_018', 'KPawakeM72_019_020', 'KPawakeM72_019_021']
/experiment/export_data/data_play/KPawakeM72_019_002_cell.mat
/experiment/export_data/data_play/KPawakeM72_019_003_cell.mat
/experiment/export_data/data_play/KPawakeM72_019_004_cell.mat
/experiment/export_data/data_play/KPawakeM72_019_005_cell.mat
/experiment/export_data/data_play/KPawakeM72_019_006_cell.mat
/experiment/export_data/data_play/KPawakeM72_019_007_cell.mat
/experiment/export_data/data_play/KPawakeM72_019_010_cell.mat
/experiment/export_data/data_play/KPawakeM72_019_011_cell.mat
/experiment/export_data/data_play/KPawakeM72_019_013_cell.mat
/experiment/export_data/data_play/KPawakeM72_019_014_cell.mat
/experiment/export_data/data_play/KPawakeM72_019_015_cell.mat
/experiment/export_data/data_play/KPawakeM72_019_018_cell.mat
/experiment/export_data/data_play/KPawakeM72_019_020_cell.mat
/experiment/export_data/data_play/KPawakeM72_019_021_cell.mat

In [5]:
#plot all the responses to all the stimuli
response_row = np.zeros(1, dtype=[('stim', '|S32'), ('resp', '|S32'), ('latency', 'f4'), ('onset_lvl','f4'), 
                                  ('spikes_inh', 'f4'), ('spikes_exh', 'f4'), ('spikes', 'f4'), ('ratio','f4')
                                 ]
                       ) 
litrals = np.zeros_like(response_row)
#print litrals
warp = False
bin_size = 15
p=0.05
for st_name, stim in all_odors.iteritems():
    #print st_name
    #print stim.responses.keys()
    for r_name, r in list(stim.cell_responses.iteritems()):
        this_resp = np.zeros_like(response_row)
        this_resp['stim'] = st_name
        this_resp['resp'] = r_name
        this_resp['latency'] = r.response_onset['onset']
        this_resp['onset_lvl'] = r.response_onset['response'] - r.response_onset['baseline']
        this_resp['spikes_inh'] = r.spikes['inh']
        this_resp['spikes_exh'] = r.spikes['exh']
        this_resp['spikes'] = this_resp['spikes_inh'] + this_resp['spikes_exh']
        this_resp['ratio'] = this_resp['spikes_inh']/this_resp['spikes_exh']
        litrals = np.append(litrals, this_resp)
        #r.plot(warped=warp)


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-5-6db463bef4fd> in <module>()
     16         this_resp['stim'] = st_name
     17         this_resp['resp'] = r_name
---> 18         this_resp['latency'] = r.response_onset['onset']
     19         this_resp['onset_lvl'] = r.response_onset['response'] - r.response_onset['baseline']
     20         this_resp['spikes_inh'] = r.spikes['inh']

TypeError: 'NoneType' object has no attribute '__getitem__'

In [30]:
r=all_odors['2-4-dimethyl'].responses['KPawakeM72_014_b_012']

In [7]:
feature_fig = plt.figure()
ax = feature_fig.add_axes([0, 0, 1, 1])

n_recs = 0
    
prop = 'latency'
litrals.sort(order = 'resp')
for odor, stim in all_odors.iteritems():
    #print odor
    feat = litrals[litrals['stim'] == odor][prop]
    #print feat
    stim.plot_pars['marker'] = 'o'
    stim.plot_pars['ms'] = 8
    ax.plot(feat, np.arange(1, feat.shape[0]+1), **stim.plot_pars)
    n_recs = max(n_recs, feat.shape[0])

ax.set_ylim(0, n_recs+1)


Out[7]:
(0, 1)

In [62]:
feature_fig = plt.figure()
ax = feature_fig.add_axes([0, 0, 1, 1])

n_recs = 0
# for odor, stim in all_odors.iteritems():
#     #print odor
#     feat = litrals[litrals['stim'] == odor][prop]
#     #print feat
#     stim.plot_pars['marker'] = 'v'
#     ax.plot(feat, np.arange(1, feat.shape[0]+1), **stim.plot_pars)
#     n_recs = max(n_recs, feat.shape[0])

# ax.set_ylim(0, n_recs+1)

# prop = 'spikes_inh'
# for odor, stim in all_odors.iteritems():
#     #print odor
#     feat = litrals[litrals['stim'] == odor][prop]
#     #print feat
#     stim.plot_pars['marker'] = '^'
#     ax.plot(feat, np.arange(1, feat.shape[0]+1), **stim.plot_pars)
#     n_recs = max(n_recs, feat.shape[0])
    
prop = 'latency'
non_litrals.sort(order = 'resp')
for odor, stim in all_odors.iteritems():
    #print odor
    feat = non_litrals[non_litrals['stim'] == odor][prop]
    #print feat
    stim.plot_pars['marker'] = 'o'
    stim.plot_pars['ms'] = 8
    ax.plot(feat, np.arange(1, feat.shape[0]+1), **stim.plot_pars)
    n_recs = max(n_recs, feat.shape[0])

ax.set_ylim(0, n_recs+1)


Out[62]:
(0, 182)

In [158]:
import numbers
response_row = np.zeros(1, dtype=[('stim', '|S32'), ('resp', '|S32'), ('litral','?'), ('latency', 'f4'), 
                                  ('onset_lvl','f4'), ('spikes_inh', 'f4'), ('spikes_exh', 'f4'), 
                                  ('spikes', 'f4'), ('ratio','f4')
                                 ]
                       )

responses_array = np.zeros_like(response_row)
for field in responses_array.dtype.names:
    print field
    if isinstance(responses_array[field][0], numbers.Number):
        responses_array[field][0] = np.nan

print responses_array[:]


stim
resp
litral
latency
onset_lvl
spikes_inh
spikes_exh
spikes
ratio
[('', '', False, nan, nan, nan, nan, nan, nan)]

In [157]:
isinstance(responses_array[field][0], numbers.Number)


Out[157]:
True

In [171]:
st = all_odors['2-4-dimethyl']
r = st.responses[st.responses.keys()[0]]

In [154]:
stim = all_odors


Out[154]:
numpy.float32

In [186]:
responses_array['litral'] = r.rec['meta']['light']
print responses_array[:]


[('', '', True, nan, nan, nan, nan, nan, nan)]

In [5]:
stim=all_odors[all_odors.keys()[0]]
stim.responses.itervalues().next().rec['meta']


Out[5]:
{'comment': 'response to all ligands, beautiful order',
 'id': 'ZKawakeM72_013_e_011',
 'light': 1,
 'mouse': 'ZKawakeM72',
 'odor': 1,
 'quality': 1,
 'rec': 'e',
 'sess': 13,
 'sessCell': 11,
 'u_id': 'ZKawakeM72_013_011'}

In [203]:
print r.rec
r


{'meta': {'comment': 'response to all weak ligands, 2 hydroxy first; stim set 2, waveform clu and responses look same as e4', 'sess': 13, 'mouse': 'ZKawakeM72', 'rec': 'f', 'light': 1, 'odor': 1, 'u_id': 'ZKawakeM72_013_010', 'quality': 1, 'id': 'ZKawakeM72_013_f_010', 'sessCell': 10}, 'rec_id': 'ZKawakeM72_013_f'}
Out[203]:
<analysis.stimulus.Response instance at 0x7fa5353dcb00>

In [211]:
stim = all_odors['2-hydroxy_high']
for key, value in stim.responses.iteritems():
    print value.rec['meta'] ['u_id'] + ' - ' + value.rec['meta'] ['id']
    
myset = set([value.rec['meta']['u_id'] for value in stim.responses.itervalues()])
print myset


KPawakeM72_817_001 - KPawakeM72_817_f_001
ZKawakeM72_006_001 - ZKawakeM72_006_a_001
KPawakeM72_016_018 - KPawakeM72_016_a_018
KPawakeM72_016_016 - KPawakeM72_016_a_016
KPawakeM72_019_002 - KPawakeM72_019_b_002
KPawakeM72_021_001 - KPawakeM72_021_b_001
KPawakeM72_024_001 - KPawakeM72_024_a_001
ZKawakeM72_012_001 - ZKawakeM72_012_a_001
ZKawakeM72_005_001 - ZKawakeM72_005_a_001
KPawakeM72_021_001 - KPawakeM72_021_a_001
ZKawakeM72_012_002 - ZKawakeM72_012_a_002
KPawakeM72_014_012 - KPawakeM72_014_b_012
ZKawakeM72_011_001 - ZKawakeM72_011_d_001
KPawakeM72_024_002 - KPawakeM72_024_b_002
ZKawakeM72_020_001 - ZKawakeM72_020_g_001
KPawakeM72_019_002 - KPawakeM72_019_d_002
ZKawakeM72_020_001 - ZKawakeM72_020_d_001
KPawakeM72_023_005 - KPawakeM72_023_a_005
ZKawakeM72_004_001 - ZKawakeM72_004_i_001
ZKawakeM72_004_002 - ZKawakeM72_004_i_002
ZKawakeM72_004_001 - ZKawakeM72_004_h_001
ZKawakeM72_013_011 - ZKawakeM72_013_e_011
ZKawakeM72_013_010 - ZKawakeM72_013_e_010
ZKawakeM72_013_010 - ZKawakeM72_013_f_010
ZKawakeM72_027_004 - ZKawakeM72_027_e_004
ZKawakeM72_020_001 - ZKawakeM72_020_e_001
ZKawakeM72_015_001 - ZKawakeM72_015_d_001
ZKawakeM72_022_001 - ZKawakeM72_022_d_001
ZKawakeM72_020_001 - ZKawakeM72_020_c_001
ZKawakeM72_004_002 - ZKawakeM72_004_h_002
ZKawakeM72_010_001 - ZKawakeM72_010_b_001
set(['ZKawakeM72_015_001', 'KPawakeM72_019_002', 'KPawakeM72_023_005', 'ZKawakeM72_010_001', 'ZKawakeM72_012_002', 'ZKawakeM72_012_001', 'KPawakeM72_817_001', 'KPawakeM72_014_012', 'ZKawakeM72_004_002', 'ZKawakeM72_004_001', 'KPawakeM72_024_001', 'KPawakeM72_024_002', 'ZKawakeM72_011_001', 'ZKawakeM72_020_001', 'ZKawakeM72_022_001', 'ZKawakeM72_005_001', 'ZKawakeM72_027_004', 'KPawakeM72_021_001', 'ZKawakeM72_013_011', 'ZKawakeM72_013_010', 'KPawakeM72_016_018', 'KPawakeM72_016_016', 'ZKawakeM72_006_001'])

In [219]:
key
dir(value)
#value.rec
value.all_trials


Out[219]:
{'ZKawakeM72_010_b_1010205': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 329, 3329]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 532.,  564.,  550., ...,  275.,  279.,  259.]),
  'sniff_zero': array([[-5360, -4879, -4368, -3912, -3402, -2905, -2429, -1934, -1471,
           -963,  -459,     1,   313,   751,  1182,  1703,  2233,  2839,
           3444,  3958,  4441,  4912,  5431,  5939],
         [-5238, -4761, -4242, -3784, -3279, -2783, -2303, -1806, -1343,
           -838,  -336,   114,   401,   811,  1282,  1827,  2364,  2985,
           3578,  4092,  4581,  5046,  5558,  6071]]),
  'start': 1010005},
 'ZKawakeM72_010_b_1038885': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 275, 3275]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([-268., -260., -275., ...,  175.,  191.,  228.]),
  'sniff_zero': array([[-5026, -4921, -4771, -4660, -4542, -4407, -4289, -4158, -4060,
          -3952, -3849, -3734, -3623, -3512, -3395, -3273, -3165, -3041,
          -2897, -2782, -2652, -2537, -2416, -2303, -2194, -2070, -1950,
          -1817, -1703, -1590, -1423, -1287, -1139, -1001,  -870,  -110,
              1,   135,   245,   368,   495,   611,   737,   878,  1026,
           1184,  1328,  1470,  2185,  2358,  2554,  2711,  2876,  3047,
           3539,  4000,  4259,  4422,  4630,  4851,  5126,  5277,  5423,
           5577],
         [-4984, -4881, -4732, -4618, -4501, -4367, -4248, -4119, -4018,
          -3912, -3805, -3694, -3583, -3470, -3351, -3228, -3125, -3001,
          -2854, -2740, -2610, -2497, -2379, -2263, -2150, -2030, -1911,
          -1774, -1665, -1549, -1382, -1247, -1098,  -962,  -832,   -60,
             44,   175,   282,   405,   527,   646,   772,   914,  1064,
           1218,  1364,  1508,  2251,  2400,  2599,  2754,  2922,  3091,
           3607,  4124,  4331,  4476,  4691,  4940,  5167,  5319,  5478,
           5624]]),
  'start': 1038685},
 'ZKawakeM72_010_b_1066770': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 350, 3350]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  435.,   448.,   439., ...,  1848.,  1980.,  2115.]),
  'sniff_zero': array([[-5151, -4855, -4657, -4368, -4057, -3719, -3563, -3355, -2959,
          -2534, -2079, -1526, -1001,  -504,     0,   402,   941,  1414,
           1802,  2076,  2224,  2547,  2700,  3016,  3098,  3808,  4164,
           4223,  4534,  4701,  4890,  5059,  5241,  5406,  5568,  5701,
           5832,  5931],
         [-5066, -4818, -4598, -4308, -3994, -3670, -3515, -3301, -2889,
          -2452, -1969, -1425,  -890,  -392,   121,   499,  1015,  1505,
           1878,  2143,  2327,  2611,  2754,  3043,  3200,  3930,  4193,
           4272,  4605,  4747,  4945,  5103,  5284,  5448,  5615,  5753,
           5875,  5972]]),
  'start': 1066570},
 'ZKawakeM72_010_b_1093027': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 460, 3460]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 7042.,  6670.,  6207., ...,    66.,    61.,    56.]),
  'sniff_zero': array([[-5172, -4985, -4829, -4673, -4558, -4419, -4298, -4183, -4019,
          -3906, -3788, -3637, -3519, -3308, -3133, -2965, -2777, -2663,
          -2494, -2237, -2064, -1862, -1718, -1559, -1388, -1239, -1080,
           -953,  -802,  -682,  -545,  -423,  -309,  -193,   -21,   340,
            678,   836,   979,  1160,  1364,  1523,  1695,  2178,  2417,
           2817,  2970,  3118,  3629,  4159,  4643,  5127,  5613],
         [-5123, -4944, -4785, -4632, -4517, -4376, -4254, -4142, -3981,
          -3862, -3744, -3595, -3475, -3264, -3088, -2919, -2737, -2618,
          -2448, -2195, -2021, -1820, -1678, -1517, -1347, -1197, -1039,
           -913,  -763,  -644,  -505,  -384,  -268,  -153,    13,   641,
            729,   870,  1016,  1193,  1401,  1563,  1733,  2237,  2456,
           2853,  3014,  3164,  3758,  4268,  4754,  5253,  5746]]),
  'start': 1092827},
 'ZKawakeM72_010_b_1121368': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 370, 3370]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 388.,  376.,  360., ...,  762.,  751.,  772.]),
  'sniff_zero': array([[-5420, -4898, -4315, -3805, -3263, -2737, -2167, -1632, -1106,
           -547,     2,   328,   879,  1421,  1992,  2544,  3075,  3633,
           4198,  4751,  5308,  5824],
         [-5293, -4766, -4183, -3667, -3130, -2602, -2035, -1492,  -972,
           -411,   138,   427,   990,  1536,  2115,  2673,  3220,  3781,
           4348,  4896,  5440,  5961]]),
  'start': 1121168},
 'ZKawakeM72_010_b_1151036': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 361, 3361]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 348.,  331.,  328., ...,  138.,  148.,  156.]),
  'sniff_zero': array([[-5506, -4994, -4444, -3889, -3355, -2805, -2240, -1689, -1123,
           -561,    -1,   379,   862,  1532,  2141,  2729,  3341,  3895,
           4418,  4737,  4992,  5141,  5302,  5517,  5693],
         [-5374, -4877, -4322, -3759, -3219, -2673, -2112, -1555,  -987,
           -425,   141,   470,   967,  1645,  2268,  2858,  3487,  4042,
           4553,  4816,  5052,  5193,  5350,  5567,  5748]]),
  'start': 1150836},
 'ZKawakeM72_010_b_117693': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 360, 3360]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1016.,  1027.,  1042., ...,   285.,   277.,   297.]),
  'sniff_zero': array([[-5157, -4640, -4122, -3606, -3173, -2762, -2547, -2337, -2048,
          -1707, -1373, -1173,  -846,  -410,    -1,   475,   952,  1592,
           2187,  2766,  3395,  3919,  4486,  5042,  5609],
         [-5032, -4509, -3988, -3483, -3063, -2680, -2482, -2284, -1999,
          -1642, -1303, -1118,  -754,  -296,   139,   579,  1081,  1752,
           2343,  2930,  3558,  4077,  4637,  5192,  5767]]),
  'start': 117493},
 'ZKawakeM72_010_b_1180870': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 333, 3333]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 386.,  409.,  401., ...,  226.,  224.,  207.]),
  'sniff_zero': array([[-5156, -4614, -4095, -3542, -2969, -2427, -1901, -1452,  -965,
           -487,     0,   243,   652,  1181,  1710,  2259,  2726,  3378,
           3843,  4377,  4935,  5491],
         [-5042, -4500, -3966, -3410, -2843, -2297, -1781, -1355,  -859,
           -377,   112,   317,   732,  1275,  1912,  2308,  2800,  3476,
           3978,  4520,  5075,  5634]]),
  'start': 1180670},
 'ZKawakeM72_010_b_1208392': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 338, 3338]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 380.,  394.,  381., ...,  448.,  463.,  459.]),
  'sniff_zero': array([[-5144, -4586, -3945, -3353, -2792, -2223, -1643, -1087,  -549,
            -14,   304,   830,  1255,  1630,  2158,  2711,  3148,  3702,
           4239,  4790,  5340,  5876],
         [-5010, -4450, -3817, -3218, -2659, -2090, -1511,  -958,  -420,
            113,   389,   907,  1306,  1728,  2262,  2819,  3272,  3826,
           4355,  4915,  5473,  6004]]),
  'start': 1208192},
 'ZKawakeM72_010_b_1233764': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 280, 3280]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 692.,  682.,  685., ...,  343.,  343.,  319.]),
  'sniff_zero': array([[-5112, -4542, -4016, -3478, -2921, -2434, -1875, -1270,  -698,
           -115,   359,   942,  1534,  2093,  2669,  3352,  3929,  4459,
           5071,  5638],
         [-4997, -4416, -3890, -3354, -2795, -2311, -1750, -1144,  -562,
             29,   472,  1058,  1646,  2223,  2804,  3489,  4065,  4601,
           5199,  5775]]),
  'start': 1233564},
 'ZKawakeM72_010_b_1260464': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 362, 3362]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 359.,  355.,  352., ...,  192.,  210.,  201.]),
  'sniff_zero': array([[-5049, -4410, -3893, -3323, -2823, -2279, -1737, -1183,  -567,
             -2,   351,   975,  1601,  2237,  2821,  3358,  3884,  4482,
           4976,  5500],
         [-4912, -4274, -3778, -3196, -2704, -2157, -1610, -1057,  -438,
            126,   444,  1084,  1714,  2359,  2934,  3484,  4019,  4593,
           5081,  5617]]),
  'start': 1260264},
 'ZKawakeM72_010_b_1286778': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 363, 3363]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 380.,  372.,  356., ...,  172.,  178.,  193.]),
  'sniff_zero': array([[-5270, -4696, -4103, -3563, -2928, -2322, -1700, -1079,  -523,
              2,   429,  1084,  1723,  2346,  2876,  3407,  3951,  4504,
           5096,  5720],
         [-5143, -4556, -3964, -3417, -2785, -2180, -1557,  -937,  -409,
            123,   537,  1181,  1848,  2477,  3013,  3540,  4078,  4636,
           5230,  5856]]),
  'start': 1286578},
 'ZKawakeM72_010_b_1316334': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 358, 3358]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  385.,   380.,   393., ...,  2004.,  1886.,  1742.]),
  'sniff_zero': array([[-5331, -4883, -4165, -3653, -3097, -2614, -2126, -1562, -1038,
           -525,     1,   385,  1038,  1479,  1981,  2514,  3009,  3630,
           4158,  4653,  5188,  5696],
         [-5226, -4710, -4072, -3549, -2982, -2495, -2010, -1450,  -927,
           -410,   111,   479,  1137,  1580,  2087,  2634,  3144,  3756,
           4274,  4779,  5305,  5821]]),
  'start': 1316134},
 'ZKawakeM72_010_b_1348711': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 347, 3347]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  358.,   360.,   357., ...,  1818.,  1814.,  1834.]),
  'sniff_zero': array([[-5484, -4933, -4410, -3870, -3338, -2799, -2265, -1675, -1106,
           -539,     1,   308,   820,  1408,  2015,  2546,  3120,  3642,
           4201,  4750,  5277,  5778],
         [-5352, -4799, -4272, -3740, -3210, -2668, -2130, -1540,  -968,
           -406,   120,   393,   943,  1524,  2130,  2677,  3242,  3779,
           4335,  4892,  5411,  5919]]),
  'start': 1348511},
 'ZKawakeM72_010_b_1381186': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 353, 3353]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 485.,  514.,  494., ...,  288.,  279.,  279.]),
  'sniff_zero': array([[-5035, -4528, -3971, -3394, -2822, -2308, -1736, -1160,  -588,
            -26,   407,   960,  1449,  1900,  2325,  2805,  3362,  3857,
           4469,  4943,  5430,  5911],
         [-4910, -4400, -3846, -3262, -2686, -2165, -1591, -1014,  -444,
            111,   507,  1079,  1536,  1975,  2414,  2929,  3441,  4078,
           4553,  5041,  5542,  6029]]),
  'start': 1380986},
 'ZKawakeM72_010_b_1411704': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 225, 3225]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1136.,  1074.,  1037., ...,  1604.,  1599.,  1589.]),
  'sniff_zero': array([[-5537, -4977, -4454, -3984, -3459, -2945, -2413, -1869, -1312,
           -751,  -177,   187,   821,  1403,  1971,  2545,  3081,  3640,
           4161,  4712,  5157,  5691],
         [-5400, -4836, -4327, -3860, -3332, -2812, -2271, -1732, -1176,
           -608,   -32,   284,   949,  1536,  2110,  2682,  3228,  3791,
           4313,  4853,  5287,  5831]]),
  'start': 1411504},
 'ZKawakeM72_010_b_1440823': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 391, 3391]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 433.,  434.,  450., ...,  346.,  335.,  301.]),
  'sniff_zero': array([[-5549, -4900, -4389, -3882, -3352, -2851, -2301, -1732, -1158,
           -603,    -2,   437,  1060,  1673,  2229,  2761,  3339,  3894,
           4466,  5003,  5568],
         [-5403, -4775, -4259, -3750, -3219, -2715, -2158, -1591, -1016,
           -455,   146,   565,  1186,  1803,  2369,  2909,  3486,  4047,
           4614,  5151,  5722]]),
  'start': 1440623},
 'ZKawakeM72_010_b_1468920': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 338, 3338]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 543.,  530.,  550., ...,  197.,  183.,  211.]),
  'sniff_zero': array([[-5126, -4574, -3972, -3423, -2851, -2221, -1709, -1146,  -560,
             -3,   481,  1008,  1569,  2108,  2687,  3250,  3743,  4292,
           4808,  5335,  5910],
         [-4972, -4430, -3827, -3276, -2702, -2066, -1554, -1003,  -407,
            139,   617,  1148,  1697,  2246,  2828,  3399,  3885,  4446,
           4965,  5485,  6063]]),
  'start': 1468720},
 'ZKawakeM72_010_b_148564': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 278, 3278]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  608.,   613.,   601., ...,  1900.,  2029.,  2146.]),
  'sniff_zero': array([[-5103, -4553, -3995, -3487, -2956, -2467, -2080, -1661, -1145,
           -607,   -85,   294,   736,  1347,  1987,  2570,  3172,  3723,
           4232,  4756,  5281,  5714],
         [-4952, -4403, -3848, -3327, -2804, -2319, -1994, -1524, -1002,
           -455,    62,   396,   869,  1489,  2133,  2727,  3318,  3878,
           4375,  4908,  5431,  5805]]),
  'start': 148364},
 'ZKawakeM72_010_b_1499987': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 335, 3335]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  500.,   480.,   480., ..., -2151., -2169., -2185.]),
  'sniff_zero': array([[-5195, -4619, -4073, -3603, -3080, -2553, -2069, -1604, -1084,
           -543,    -1,   406,  1018,  1450,  1959,  2453,  2996,  3470,
           3967,  4491,  5016,  5537],
         [-5056, -4478, -3928, -3453, -2932, -2408, -1923, -1464,  -937,
           -398,   136,   510,  1114,  1575,  2096,  2594,  3109,  3607,
           4112,  4633,  5159,  5680]]),
  'start': 1499787},
 'ZKawakeM72_010_b_1530068': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 356, 3356]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 538.,  542.,  517., ...,  182.,  185.,  185.]),
  'sniff_zero': array([[-5225, -4657, -4127, -3684, -3202, -2652, -2097, -1627, -1040,
           -499,    -1,   491,   953,  1828,  2341,  2892,  3443,  3975,
           4520,  5008,  5458,  5992],
         [-5075, -4509, -4000, -3548, -3071, -2520, -1960, -1474,  -902,
           -349,   159,   599,  1147,  1925,  2450,  3026,  3582,  4116,
           4646,  5129,  5591,  6129]]),
  'start': 1529868},
 'ZKawakeM72_010_b_1556676': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 389, 3389]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 282.,  281.,  283., ...,  763.,  768.,  761.]),
  'sniff_zero': array([[-5252, -4666, -4079, -3490, -2887, -2369, -1785, -1212,  -636,
             -4,   411,   988,  1560,  2092,  2601,  3071,  3642,  4144,
           4493,  4861,  5265,  5689],
         [-5111, -4517, -3927, -3332, -2747, -2213, -1640, -1061,  -487,
            140,   522,  1117,  1693,  2226,  2737,  3212,  3781,  4275,
           4560,  4950,  5365,  5814]]),
  'start': 1556476},
 'ZKawakeM72_010_b_1584747': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 356, 3356]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 812.,  836.,  829., ...,  316.,  311.,  332.]),
  'sniff_zero': array([[-5305, -4901, -4471, -4007, -3520, -3027, -2494, -1963, -1467,
          -1004,  -506,   -19,   331,   823,  1333,  1765,  2118,  2602,
           3037,  3478,  3791,  4011,  4188,  4549,  4814,  5048,  5372,
           5856],
         [-5166, -4791, -4355, -3883, -3387, -2881, -2352, -1820, -1334,
           -855,  -361,   128,   429,   943,  1459,  1842,  2220,  2719,
           3151,  3573,  3857,  4069,  4245,  4625,  4875,  5103,  5481,
           5969]]),
  'start': 1584547},
 'ZKawakeM72_010_b_1616534': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 315, 3315]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  49.,   75.,   75., ...,  606.,  618.,  649.]),
  'sniff_zero': array([[-5164, -4734, -4337, -3912, -3514, -3052, -2639, -2233, -1777,
          -1335,  -948,  -578,  -276,     0,   408,   873,  1344,  1782,
           2182,  2624,  3073,  3444,  3893,  4432,  4938,  5418,  5892],
         [-5033, -4635, -4247, -3812, -3411, -2940, -2529, -2117, -1662,
          -1224,  -851,  -504,  -207,    70,   505,   952,  1452,  1875,
           2288,  2750,  3162,  3571,  4028,  4565,  5081,  5562,  6038]]),
  'start': 1616334},
 'ZKawakeM72_010_b_1648566': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 367, 3367]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  774.,   773.,   773., ...,  1516.,  1594.,  1668.]),
  'sniff_zero': array([[-5110, -4614, -4115, -3592, -3057, -2536, -2026, -1507, -1046,
           -514,    -1,   491,   991,  1526,  2047,  2584,  3121,  3589,
           4072,  4545,  4998,  5385,  5728],
         [-4972, -4477, -3970, -3449, -2910, -2390, -1884, -1364,  -903,
           -384,   141,   622,  1135,  1670,  2189,  2729,  3261,  3733,
           4218,  4690,  5140,  5501,  5848]]),
  'start': 1648366},
 'ZKawakeM72_010_b_1680430': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 337, 3337]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  727.,   730.,   756., ..., -3507., -3492., -3491.]),
  'sniff_zero': array([[-5014, -4615, -4206, -3797, -3533, -3349, -3077, -2691, -2284,
          -1866, -1381,  -932,  -470,    -2,   375,   856,  1391,  1893,
           2387,  2856,  3317,  3730,  4163,  4619,  5062,  5491,  5929],
         [-4888, -4508, -4099, -3702, -3473, -3286, -3001, -2582, -2167,
          -1736, -1262,  -804,  -349,   129,   471,   975,  1518,  2030,
           2533,  2994,  3449,  3867,  4303,  4764,  5202,  5633,  6054]]),
  'start': 1680230},
 'ZKawakeM72_010_b_1709773': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 278, 3278]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 953.,  907.,  909., ...,  280.,  281.,  270.]),
  'sniff_zero': array([[-5223, -4778, -4357, -3892, -3507, -3107, -2676, -2233, -1778,
          -1347,  -911,  -484,   -46,   260,   763,  1243,  1687,  2235,
           2818,  3336,  3796,  4225,  4647,  5048,  5382,  5672],
         [-5096, -4649, -4219, -3763, -3385, -2994, -2554, -2106, -1645,
          -1213,  -784,  -346,    80,   352,   887,  1357,  1817,  2381,
           2965,  3485,  3941,  4363,  4792,  5172,  5469,  5751]]),
  'start': 1709573},
 'ZKawakeM72_010_b_1736767': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 353, 3353]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  731.,   716.,   707., ..., -1472., -1467., -1452.]),
  'sniff_zero': array([[-5001, -4629, -4125, -3763, -3360, -2884, -2398, -1960, -1510,
          -1013,  -525,    -8,   403,   827,  1376,  1924,  2457,  3002,
           3478,  3980,  4456,  4929,  5431,  5925],
         [-4897, -4437, -4033, -3671, -3238, -2753, -2275, -1828, -1375,
           -869,  -381,   133,   501,   954,  1512,  2069,  2613,  3149,
           3626,  4121,  4601,  5085,  5577,  6068]]),
  'start': 1736567},
 'ZKawakeM72_010_b_1764026': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 358, 3358]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  570.,   567.,   575., ..., -2202., -2273., -2328.]),
  'sniff_zero': array([[-5487, -4951, -4434, -3876, -3319, -2866, -2453, -1998, -1521,
          -1014,  -500,    -5,   418,   876,  1435,  1954,  2452,  2927,
           3423,  3926,  4460,  4933,  5433,  5924],
         [-5341, -4804, -4288, -3765, -3174, -2739, -2334, -1861, -1382,
           -885,  -362,   144,   523,  1012,  1568,  2096,  2597,  3077,
           3574,  4081,  4604,  5077,  5560,  6065]]),
  'start': 1763826},
 'ZKawakeM72_010_b_1791600': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 340, 3340]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  768.,   792.,   814., ..., -3356., -3403., -3437.]),
  'sniff_zero': array([[-5077, -4879, -4611, -4279, -3977, -3601, -3196, -2789, -2374,
          -1920, -1429,  -933,  -419,    -5,   342,   770,  1233,  1777,
           2401,  2946,  3408,  3851,  4320,  4743,  5159,  5464,  5683,
           5915],
         [-5018, -4812, -4554, -4183, -3918, -3496, -3090, -2681, -2255,
          -1783, -1299,  -798,  -296,   115,   438,   890,  1352,  1904,
           2531,  3085,  3547,  3992,  4457,  4874,  5293,  5532,  5745,
           5983]]),
  'start': 1791400},
 'ZKawakeM72_010_b_179235': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 341, 3341]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 724.,  727.,  727., ...,  533.,  531.,  513.]),
  'sniff_zero': array([[-5314, -4818, -4293, -3759, -3249, -2784, -2356, -1870, -1445,
           -960,  -481,    -3,   309,   709,  1174,  1652,  2118,  2626,
           3119,  3602,  4087,  4572,  5048,  5570],
         [-5184, -4681, -4148, -3621, -3129, -2678, -2242, -1773, -1330,
           -836,  -355,   128,   400,   806,  1283,  1768,  2247,  2765,
           3250,  3730,  4219,  4703,  5187,  5706]]),
  'start': 179035},
 'ZKawakeM72_010_b_1821660': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 267, 3267]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  498.,   507.,   497., ..., -3882., -3809., -3726.]),
  'sniff_zero': array([[-5041, -4601, -4083, -3551, -3088, -2638, -2205, -1768, -1400,
          -1004,  -542,   -57,   406,   833,  1345,  1850,  2379,  2909,
           3377,  3779,  4141,  4441,  4835,  5294,  5793],
         [-4922, -4472, -3951, -3418, -2941, -2532, -2086, -1648, -1320,
           -891,  -419,    70,   522,   949,  1476,  1984,  2520,  3052,
           3515,  3890,  4245,  4516,  4954,  5425,  5926]]),
  'start': 1821460},
 'ZKawakeM72_010_b_1853071': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 309, 3309]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 335.,  339.,  324., ...,  455.,  467.,  472.]),
  'sniff_zero': array([[-5206, -4633, -4127, -3544, -3023, -2569, -2100, -1628, -1156,
           -644,   -59,   489,  1075,  1685,  2264,  2806,  3382,  3862,
           4338,  4838,  5267,  5740],
         [-5064, -4494, -3991, -3410, -2885, -2457, -1966, -1500, -1013,
           -502,    85,   624,  1210,  1824,  2407,  2954,  3507,  4008,
           4474,  4982,  5377,  5874]]),
  'start': 1852871},
 'ZKawakeM72_010_b_1884858': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 342, 3342]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 645.,  629.,  624., ...,   94.,   99.,  100.]),
  'sniff_zero': array([[-5175, -4626, -4077, -3551, -3021, -2480, -1937, -1407,  -945,
           -469,     0,   435,   935,  1466,  2096,  2787,  3487,  4119,
           4727,  5246,  5658],
         [-5053, -4495, -3946, -3425, -2899, -2349, -1795, -1284,  -821,
           -350,   121,   540,  1050,  1591,  2230,  2926,  3646,  4278,
           4879,  5358,  5788]]),
  'start': 1884658},
 'ZKawakeM72_010_b_1917083': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 314, 3314]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1356.,  1345.,  1335., ...,   224.,   210.,   210.]),
  'sniff_zero': array([[-5054, -4632, -4413, -4066, -3783, -3402, -2962, -2685, -2372,
          -2161, -1976, -1770, -1420,  -884,  -417,   -14,   319,  1041,
           1578,  2132,  2721,  3355,  3900,  4401,  4926,  5437,  5951],
         [-4993, -4568, -4362, -3960, -3699, -3310, -2861, -2596, -2309,
          -2106, -1922, -1713, -1348,  -779,  -298,    89,   409,  1133,
           1698,  2255,  2862,  3478,  4026,  4530,  5055,  5575,  6077]]),
  'start': 1916883},
 'ZKawakeM72_010_b_1947038': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 333, 3333]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  425.,   392.,   425., ..., -4316., -4338., -4380.]),
  'sniff_zero': array([[-5351, -4923, -4552, -4084, -3566, -3065, -2529, -2024, -1509,
           -986,  -520,     0,   384,   778,  1376,  1794,  2238,  2437,
           2912,  3257,  3798,  4336,  4768,  5293,  5862],
         [-5205, -4815, -4451, -3959, -3433, -2923, -2397, -1887, -1374,
           -847,  -380,   125,   482,   866,  1491,  1907,  2284,  2545,
           3003,  3400,  3928,  4422,  4902,  5450,  6021]]),
  'start': 1946838},
 'ZKawakeM72_010_b_1975871': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 244, 3244]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 669.,  681.,  621., ...,  714.,  666.,  615.]),
  'sniff_zero': array([[-5427, -4964, -4494, -3800, -3250, -2732, -2225, -1704, -1197,
           -876,  -611,  -104,   343,   782,  1416,  1941,  2506,  3088,
           3574,  3871,  4102,  4439,  4776,  5322,  5868],
         [-5277, -4857, -4311, -3684, -3121, -2586, -2079, -1560, -1079,
           -778,  -546,    16,   440,   906,  1540,  2073,  2645,  3225,
           3687,  3942,  4175,  4499,  4877,  5458,  6009]]),
  'start': 1975671},
 'ZKawakeM72_010_b_2008133': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 257, 3257]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1008.,  1046.,  1084., ...,  1636.,  1589.,  1544.]),
  'sniff_zero': array([[-5501, -4988, -4499, -3997, -3497, -2959, -2457, -2099, -1643,
          -1186,  -616,  -110,   266,   707,  1372,  1965,  2564,  3181,
           3640,  4188,  4749,  5253,  5796],
         [-5376, -4845, -4353, -3866, -3358, -2818, -2312, -1999, -1515,
          -1054,  -481,    37,   365,   827,  1506,  2113,  2709,  3320,
           3795,  4333,  4900,  5409,  5953]]),
  'start': 2007933},
 'ZKawakeM72_010_b_2040789': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 359, 3359]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 635.,  652.,  667., ...,  740.,  754.,  777.]),
  'sniff_zero': array([[-5471, -4963, -4392, -3827, -3273, -2735, -2223, -1690, -1148,
           -515,    -3,   297,   846,  1456,  2090,  2636,  3249,  3797,
           4271,  4766,  5280,  5813],
         [-5321, -4823, -4245, -3696, -3129, -2596, -2100, -1546, -1007,
           -386,   141,   392,   990,  1594,  2230,  2804,  3412,  3955,
           4403,  4902,  5430,  5963]]),
  'start': 2040589},
 'ZKawakeM72_010_b_2072442': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 354, 3354]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 464.,  484.,  449., ...,  797.,  768.,  787.]),
  'sniff_zero': array([[-5462, -4926, -4410, -3894, -3432, -2958, -2545, -2069, -1616,
          -1115,  -544,   -10,   426,   865,  1387,  1957,  2545,  3070,
           3604,  4187,  4680,  5148,  5651],
         [-5325, -4788, -4272, -3757, -3292, -2816, -2423, -1942, -1500,
           -980,  -413,   139,   544,  1005,  1534,  2105,  2695,  3227,
           3762,  4340,  4835,  5293,  5790]]),
  'start': 2072242},
 'ZKawakeM72_010_b_209766': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 358, 3358]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 573.,  584.,  600., ...,  217.,  209.,  230.]),
  'sniff_zero': array([[-5268, -4742, -4318, -3858, -3401, -2939, -2504, -2202, -1994,
          -1522, -1035,  -511,    -2,   385,   737,   924,  1105,  1327,
           1484,  1941,  2172,  2569,  2846,  3100,  3328,  3539,  3747,
           3926,  4312,  4777,  5214,  5993],
         [-5124, -4604, -4213, -3746, -3291, -2826, -2400, -2132, -1927,
          -1418,  -909,  -387,   125,   480,   782,   974,  1153,  1364,
           1531,  1991,  2228,  2636,  2895,  3151,  3394,  3591,  3792,
           3985,  4405,  4861,  5431,  6119]]),
  'start': 209566},
 'ZKawakeM72_010_b_2103367': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 347, 3347]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 630.,  640.,  640., ...,   12.,   11.,   35.]),
  'sniff_zero': array([[-5332, -4785, -4275, -3705, -3154, -2670, -2324, -1892, -1436,
          -1008,  -515,   -18,   413,   948,  1838,  2362,  2931,  3527,
           4031,  4515,  4980,  5415,  5804],
         [-5185, -4632, -4125, -3563, -3014, -2519, -2229, -1775, -1330,
           -899,  -382,   120,   576,  1215,  1933,  2481,  3056,  3672,
           4175,  4655,  5117,  5543,  5925]]),
  'start': 2103167},
 'ZKawakeM72_010_b_2131514': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 324, 3324]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  662.,   635.,   624., ..., -3620., -3622., -3645.]),
  'sniff_zero': array([[-5276, -4808, -4365, -3970, -3548, -3103, -2669, -2201, -1735,
          -1219,  -788,  -400,    -2,   384,   847,  1346,  1865,  2402,
           2894,  3333,  3824,  4235,  4678,  5193,  5679],
         [-5154, -4683, -4243, -3860, -3439, -2999, -2547, -2073, -1603,
          -1101,  -686,  -290,   106,   485,   958,  1468,  2002,  2544,
           3036,  3457,  3954,  4360,  4816,  5333,  5817]]),
  'start': 2131314},
 'ZKawakeM72_010_b_2158007': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 316, 3316]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  538.,   552.,   561., ..., -2254., -2274., -2293.]),
  'sniff_zero': array([[-5344, -4901, -4409, -3918, -3487, -3038, -2588, -2137, -1774,
          -1520, -1272,  -935,  -491,    -2,   450,   925,  1446,  1950,
           2471,  3011,  3469,  3958,  4439,  4896,  5398,  5862],
         [-5219, -4764, -4276, -3791, -3362, -2911, -2454, -2002, -1673,
          -1452, -1179,  -864,  -389,   121,   572,  1052,  1585,  2089,
           2616,  3149,  3604,  4104,  4579,  5040,  5545,  6004]]),
  'start': 2157807},
 'ZKawakeM72_010_b_2188694': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 252, 3252]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 725.,  730.,  739., ...,  404.,  385.,  364.]),
  'sniff_zero': array([[-5201, -4708, -4212, -3722, -3184, -2632, -2110, -1555, -1015,
           -525,   -78,   282,   704,  1257,  1804,  2325,  2916,  3479,
           3964,  4446,  4952,  5455,  5955],
         [-5065, -4572, -4091, -3600, -3054, -2502, -1964, -1427,  -887,
           -401,    53,   385,   842,  1390,  1944,  2474,  3066,  3631,
           4118,  4598,  5104,  5590,  6092]]),
  'start': 2188494},
 'ZKawakeM72_010_b_2220566': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 342, 3342]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 616.,  625.,  608., ...,  868.,  927.,  955.]),
  'sniff_zero': array([[-5125, -4596, -4070, -3550, -3055, -2578, -2074, -1539, -1025,
           -511,    -4,   437,   883,  1454,  2013,  2606,  3269,  3817,
           4312,  4851,  5351,  5855],
         [-4990, -4451, -3941, -3409, -2911, -2446, -1951, -1406,  -907,
           -379,   145,   558,  1014,  1595,  2159,  2754,  3415,  3970,
           4462,  5002,  5500,  6010]]),
  'start': 2220366},
 'ZKawakeM72_010_b_2251708': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 297, 3297]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 627.,  645.,  655., ...,  701.,  697.,  711.]),
  'sniff_zero': array([[-5322, -4792, -4254, -3718, -3148, -2626, -2142, -1569, -1053,
           -568,   -65,   325,   879,  1332,  1786,  2280,  2787,  3340,
           3848,  4337,  4843,  5359,  5885],
         [-5179, -4646, -4112, -3573, -3018, -2508, -1999, -1430,  -905,
           -437,    84,   431,  1011,  1437,  1904,  2414,  2932,  3488,
           3996,  4491,  4995,  5519,  6042]]),
  'start': 2251508},
 'ZKawakeM72_010_b_2281675': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 267, 3267]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 268.,  301.,  333., ...,  101.,  105.,  109.]),
  'sniff_zero': array([[-5057, -4836, -4615, -4341, -4156, -4016, -3891, -3729, -3531,
          -3389, -3235, -3060, -2865, -2662, -2466, -2361, -2245, -2138,
          -2031, -1905, -1798, -1696, -1590, -1480, -1378, -1265, -1141,
          -1022,  -877,  -772,  -667,  -525,   -76,   112,   245,   389,
            597,   767,   928,  1106,  1810,  2011,  2159,  2860,  3108,
           3545,  3763,  3917,  4051,  4177,  4299,  4419,  4540,  4714,
           4883,  5007,  5133,  5263,  5483,  5689,  5830,  5964],
         [-4967, -4770, -4542, -4276, -4100, -3963, -3843, -3670, -3474,
          -3322, -3170, -2986, -2794, -2595, -2390, -2314, -2207, -2093,
          -1980, -1864, -1758, -1655, -1548, -1436, -1339, -1221, -1099,
           -980,  -832,  -727,  -622,  -474,     4,   167,   282,   430,
            637,   815,   977,  1151,  1922,  2067,  2200,  2995,  3191,
           3696,  3832,  3977,  4100,  4226,  4350,  4463,  4597,  4777,
           4931,  5052,  5185,  5309,  5557,  5753,  5883,  6016]]),
  'start': 2281475},
 'ZKawakeM72_010_b_2309354': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 242, 3242]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 3933.,  2755.,  1474., ...,  -253.,  -136.,  -163.]),
  'sniff_zero': array([[-5232, -4905, -4759, -4424, -4252, -4116, -3982, -3780, -3636,
          -3439, -3265, -3130, -2972, -2844, -2709, -2585, -2475, -2286,
          -2138, -1983, -1860, -1706, -1580, -1448, -1314, -1198, -1089,
           -904,  -301,  -196,   -52,    87,   218,   361,   519,   708,
            862,   987,  1172,  1313,  1452,  1580,  1726,  1877,  2028,
           2175,  2314,  2463,  2600,  2735,  2854,  2997,  3122,  3249,
           3387,  3501,  3617,  3716,  3814,  3936,  4082,  4227,  4381,
           4518,  4667,  4795,  4939,  5071,  5202,  5781,  5825,  5971],
         [-5108, -4860, -4717, -4385, -4210, -4076, -3939, -3744, -3596,
          -3399, -3221, -3089, -2933, -2806, -2671, -2546, -2436, -2251,
          -2101, -1945, -1822, -1665, -1539, -1407, -1267, -1158, -1049,
           -865,  -243,  -148,   -13,   126,   252,   398,   557,   742,
            907,  1028,  1208,  1346,  1488,  1614,  1764,  1911,  2065,
           2212,  2349,  2499,  2636,  2773,  2892,  3034,  3160,  3285,
           3427,  3540,  3655,  3753,  3854,  3977,  4120,  4264,  4418,
           4559,  4708,  4833,  4976,  5110,  5238,  5802,  5883,  6014]]),
  'start': 2309154},
 'ZKawakeM72_010_b_2339089': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 261, 3261]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([-7911., -7505., -7049., ...,    20.,    25.,    33.]),
  'sniff_zero': array([[-5004, -4884, -4775, -4660, -4560, -4420, -4257, -4181, -4121,
          -4014, -3915, -3801, -3689, -3559, -3444, -3313, -3201, -3084,
          -2964, -2847, -2738, -2631, -2513, -2404, -2300, -2194, -2089,
          -1981, -1880, -1753, -1625, -1517, -1386, -1188, -1059,  -930,
           -822,  -693,  -575,  -463,  -360,  -224,  -107,     0,   119,
            234,   332,   465,   606,   738,   882,  1021,  1162,  1455,
           1592,  1756,  1880,  2018,  2158,  2296,  2426,  2569,  2686,
           2791,  2901,  3006,  3110,  3221,  3347,  3490,  3591,  3725,
           3851,  3979,  4097,  4203,  4341,  4459,  4600,  4721,  4872,
           5206,  5341,  5504,  5624,  5735,  5852,  5991],
         [-4964, -4842, -4736, -4622, -4516, -4378, -4221, -4157, -4076,
          -3973, -3874, -3760, -3651, -3518, -3403, -3272, -3160, -3043,
          -2924, -2805, -2698, -2591, -2473, -2363, -2260, -2152, -2048,
          -1941, -1838, -1713, -1584, -1475, -1340, -1150, -1018,  -891,
           -778,  -653,  -537,  -421,  -320,  -185,   -69,    38,   158,
            267,   368,   498,   638,   771,   915,  1058,  1200,  1493,
           1633,  1791,  1916,  2055,  2195,  2332,  2462,  2607,  2724,
           2831,  2939,  3043,  3149,  3257,  3383,  3527,  3632,  3764,
           3891,  4019,  4138,  4241,  4379,  4499,  4641,  4763,  4908,
           5243,  5379,  5543,  5659,  5776,  5892,  6033]]),
  'start': 2338889},
 'ZKawakeM72_010_b_2371501': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 260, 3260]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ -4.00000000e+00,   2.00000000e+00,   1.40000000e+01, ...,
           8.77200000e+03,   8.38700000e+03,   7.96300000e+03]),
  'sniff_zero': array([[-5044, -4919, -4794, -4675, -4500, -4255, -4046, -3880, -3766,
          -3652, -3523, -3409, -3302, -3173, -3049, -2920, -2770, -2623,
          -2501, -2289, -2178, -1994, -1807, -1692, -1593, -1480, -1359,
          -1242, -1130, -1004,  -892,  -765,  -621,  -495,  -384,  -257,
           -131,    -1,   107,   246,   355,   493,   625,   759,   936,
           1081,  1219,  1368,  1510,  1689,  1837,  1968,  2122,  2243,
           2385,  2506,  2646,  2788,  2922,  3046,  3170,  3298,  3411,
           3523,  3642,  3764,  3892,  4075,  4183,  4303,  4440,  4575,
           4709,  4851,  5027,  5230,  5489,  5617,  5777],
         [-4997, -4875, -4754, -4631, -4458, -4213, -4004, -3840, -3724,
          -3612, -3483, -3369, -3260, -3131, -3007, -2878, -2729, -2581,
          -2458, -2254, -2133, -1948, -1761, -1651, -1551, -1438, -1319,
          -1202, -1090,  -962,  -850,  -725,  -581,  -452,  -340,  -220,
            -89,    39,   147,   279,   391,   529,   661,   795,   972,
           1117,  1256,  1406,  1548,  1725,  1876,  2006,  2160,  2281,
           2423,  2545,  2685,  2825,  2960,  3084,  3209,  3335,  3449,
           3562,  3682,  3805,  3934,  4113,  4226,  4343,  4487,  4620,
           4751,  4897,  5069,  5272,  5536,  5661,  5834]]),
  'start': 2371301},
 'ZKawakeM72_010_b_2400737': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 309, 3309]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 579.,  618.,  644., ...,    8.,    4.,  -10.]),
  'sniff_zero': array([[-5044, -4919, -4794, -4675, -4500, -4255, -4046, -3880, -3766,
          -3652, -3523, -3409, -3302, -3173, -3049, -2920, -2770, -2623,
          -2501, -2289, -2178, -1994, -1807, -1692, -1593, -1480, -1359,
          -1242, -1130, -1004,  -892,  -765,  -621,  -495,  -384,  -257,
           -131,    -1,   107,   246,   355,   493,   625,   759,   936,
           1081,  1219,  1368,  1510,  1689,  1837,  1968,  2122,  2243,
           2385,  2506,  2646,  2788,  2922,  3046,  3170,  3298,  3411,
           3523,  3642,  3764,  3892,  4075,  4183,  4303,  4440,  4575,
           4709,  4851,  5027,  5230,  5489,  5617,  5777],
         [-4997, -4875, -4754, -4631, -4458, -4213, -4004, -3840, -3724,
          -3612, -3483, -3369, -3260, -3131, -3007, -2878, -2729, -2581,
          -2458, -2254, -2133, -1948, -1761, -1651, -1551, -1438, -1319,
          -1202, -1090,  -962,  -850,  -725,  -581,  -452,  -340,  -220,
            -89,    39,   147,   279,   391,   529,   661,   795,   972,
           1117,  1256,  1406,  1548,  1725,  1876,  2006,  2160,  2281,
           2423,  2545,  2685,  2825,  2960,  3084,  3209,  3335,  3449,
           3562,  3682,  3805,  3934,  4113,  4226,  4343,  4487,  4620,
           4751,  4897,  5069,  5272,  5536,  5661,  5834]]),
  'start': 2400537},
 'ZKawakeM72_010_b_241846': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 303, 3303]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 412.,  436.,  460., ...,  254.,  229.,  249.]),
  'sniff_zero': array([[-5443, -4878, -4284, -3682, -3148, -2610, -2098, -1559, -1049,
           -543,   -72,   376,   871,  1444,  2022,  2649,  3197,  3745,
           4172,  4640,  5154,  5733],
         [-5297, -4732, -4141, -3543, -3022, -2484, -1969, -1424,  -913,
           -427,    60,   484,   986,  1586,  2164,  2790,  3351,  3898,
           4266,  4778,  5291,  5867]]),
  'start': 241646},
 'ZKawakeM72_010_b_2425419': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 207, 3207]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 834.,  822.,  813., ...,  169.,  186.,  191.]),
  'sniff_zero': array([[-5041, -4906, -4732, -4604, -4380, -4237, -4020, -3861, -3694,
          -3538, -2870, -2675, -2512, -1715, -1633, -1465, -1284, -1135,
          -1001,  -854,  -645,  -422,   -98,   136,   472,   879,  1354,
           1698,  2344,  2818,  3267,  3759,  4253,  4713,  5194,  5672],
         [-4999, -4865, -4687, -4560, -4338, -4191, -3969, -3815, -3647,
          -3495, -2774, -2615, -2456, -1581, -1552, -1405, -1236, -1091,
           -946,  -805,  -595,  -359,   -17,   181,   572,  1007,  1417,
           1862,  2477,  2964,  3412,  3889,  4382,  4863,  5335,  5813]]),
  'start': 2425219},
 'ZKawakeM72_010_b_2451348': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 357, 3357]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  352.,   367.,   381., ...,  1890.,  1905.,  1933.]),
  'sniff_zero': array([[-5313, -4770, -4217, -3728, -3193, -2654, -2103, -1588, -1089,
           -553,     0,   336,   837,  1411,  1990,  2555,  3177,  3760,
           4331,  4895,  5459,  5983],
         [-5185, -4642, -4099, -3602, -3065, -2523, -1981, -1460,  -960,
           -413,   135,   426,   930,  1531,  2124,  2699,  3324,  3904,
           4479,  5046,  5598,  6124]]),
  'start': 2451148},
 'ZKawakeM72_010_b_2479082': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 308, 3308]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 618.,  593.,  548., ...,  268.,  269.,  283.]),
  'sniff_zero': array([[-5093, -4553, -4058, -3538, -2987, -2463, -1945, -1440,  -937,
           -430,     0,   232,   640,  1103,  1665,  2118,  2690,  3292,
           3782,  4308,  4820,  5350,  5873],
         [-4962, -4427, -3931, -3410, -2861, -2334, -1826, -1312,  -807,
           -300,    72,   313,   710,  1186,  1768,  2220,  2810,  3418,
           3921,  4444,  4959,  5484,  6007]]),
  'start': 2478882},
 'ZKawakeM72_010_b_2509326': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 349, 3349]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 384.,  376.,  355., ...,  258.,  235.,  237.]),
  'sniff_zero': array([[-5083, -4554, -4059, -3517, -2931, -2454, -1924, -1418, -1024,
           -548,     1,   520,  1025,  1617,  2164,  2798,  3421,  3989,
           4407,  4802,  5305,  5883],
         [-4963, -4432, -3940, -3392, -2817, -2325, -1799, -1315,  -939,
           -440,   119,   630,  1142,  1745,  2299,  2925,  3560,  4117,
           4495,  4906,  5424,  6006]]),
  'start': 2509126},
 'ZKawakeM72_010_b_2538058': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 328, 3328]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 499.,  502.,  502., ...,  311.,  311.,  325.]),
  'sniff_zero': array([[-5221, -4629, -4058, -3579, -3082, -2597, -2089, -1596, -1049,
           -459,     1,   443,  1015,  1603,  2170,  2706,  3211,  3768,
           4242,  4625,  4868,  5044,  5243,  5409,  5615,  5895],
         [-5096, -4496, -3957, -3461, -2956, -2474, -1975, -1480,  -927,
           -340,   110,   564,  1124,  1721,  2286,  2824,  3338,  3897,
           4358,  4702,  4930,  5103,  5296,  5460,  5671,  5956]]),
  'start': 2537858},
 'ZKawakeM72_010_b_2566470': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 314, 3314]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 533.,  518.,  510., ...,  580.,  577.,  580.]),
  'sniff_zero': array([[-5034, -4474, -3866, -3325, -2807, -2241, -1685, -1097,  -533,
              1,   308,   624,   940,  1289,  1463,  1722,  2180,  2589,
           2706,  3139,  3260,  3409,  3553,  3691,  3918,  4127,  4326,
           4503,  4717,  5005,  5242,  5540,  5729],
         [-4922, -4359, -3756, -3223, -2701, -2136, -1567,  -984,  -426,
            104,   392,   673,   973,  1329,  1512,  1768,  2266,  2627,
           2806,  3176,  3332,  3450,  3594,  3739,  3961,  4173,  4375,
           4552,  4764,  5074,  5300,  5594,  5795]]),
  'start': 2566270},
 'ZKawakeM72_010_b_2596602': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 337, 3337]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  407.,   420.,   419., ..., -4636., -4439., -4214.]),
  'sniff_zero': array([[-5422, -4892, -4364, -3825, -3283, -2709, -2205, -1698, -1167,
           -625,     2,   324,   633,  1221,  1815,  2387,  2997,  3578,
           4165,  4710,  5242,  5778],
         [-5310, -4781, -4256, -3708, -3164, -2595, -2093, -1577, -1050,
           -502,   121,   415,   699,  1331,  1936,  2517,  3120,  3708,
           4293,  4842,  5377,  5911]]),
  'start': 2596402},
 'ZKawakeM72_010_b_2626042': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 226, 3226]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  610.,   641.,   635., ...,  1581.,  1575.,  1568.]),
  'sniff_zero': array([[-5229, -4670, -4144, -3607, -3021, -2604, -2173, -1662, -1142,
           -659,  -110,   321,   854,  1481,  2054,  2581,  3167,  3720,
           4247,  4804,  5386,  5920],
         [-5112, -4550, -4029, -3481, -2892, -2516, -2051, -1560, -1028,
           -541,    13,   429,   970,  1602,  2186,  2723,  3306,  3858,
           4380,  4932,  5519,  6058]]),
  'start': 2625842},
 'ZKawakeM72_010_b_2656556': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 339, 3339]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 668.,  631.,  632., ...,  371.,  347.,  353.]),
  'sniff_zero': array([[-5137, -4554, -3937, -3536, -3109, -2626, -2121, -1621, -1066,
           -530,    -1,   468,  1009,  1604,  2225,  2912,  3604,  4134,
           4624,  5142,  5691],
         [-4997, -4411, -3811, -3452, -3000, -2507, -2001, -1503,  -938,
           -403,   127,   592,  1135,  1742,  2363,  3052,  3745,  4245,
           4755,  5277,  5827]]),
  'start': 2656356},
 'ZKawakeM72_010_b_2689026': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 349, 3349]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 882.,  863.,  868., ...,  423.,  424.,  402.]),
  'sniff_zero': array([[-5387, -4780, -4225, -3673, -3129, -2688, -2155, -1604, -1100,
           -532,     0,   375,   936,  1543,  2136,  2717,  3318,  3840,
           4336,  4889,  5500],
         [-5244, -4640, -4079, -3541, -3009, -2572, -2028, -1479,  -968,
           -394,   138,   483,  1053,  1673,  2273,  2850,  3446,  3975,
           4468,  5026,  5639]]),
  'start': 2688826},
 'ZKawakeM72_010_b_2721270': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 309, 3309]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 910.,  911.,  909., ..., -156., -155., -150.]),
  'sniff_zero': array([[-5008, -4516, -3963, -3454, -2931, -2558, -2176, -1710, -1206,
           -794,  -417,     0,   310,   696,   920,  1285,  1800,  2340,
           2840,  3483,  4051,  4622,  5149,  5677],
         [-4891, -4395, -3841, -3323, -2818, -2464, -2084, -1610, -1090,
           -696,  -327,    98,   400,   755,   983,  1342,  1907,  2444,
           2970,  3611,  4182,  4751,  5275,  5803]]),
  'start': 2721070},
 'ZKawakeM72_010_b_275092': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 356, 3356]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  506.,   498.,   504., ..., -2062., -2103., -2153.]),
  'sniff_zero': array([[-5444, -4978, -4533, -4029, -3507, -2970, -2515, -2020, -1475,
          -1002,  -513,    -2,   298,   702,  1253,  1840,  2464,  3078,
           3530,  3954,  4267,  4473,  4993,  5557],
         [-5304, -4849, -4398, -3885, -3360, -2830, -2392, -1879, -1339,
           -872,  -376,   131,   386,   827,  1390,  1988,  2602,  3227,
           3636,  4065,  4339,  4539,  5115,  5694]]),
  'start': 274892},
 'ZKawakeM72_010_b_2754009': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 336, 3336]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  482.,   465.,   470., ..., -1282., -1352., -1437.]),
  'sniff_zero': array([[-5101, -4599, -4051, -3504, -3049, -2617, -2133, -1623, -1117,
           -566,     0,   303,   748,  1344,  1955,  2489,  3043,  3601,
           4071,  4554,  5086,  5639],
         [-4988, -4480, -3929, -3379, -2949, -2501, -2014, -1505,  -993,
           -437,   126,   393,   860,  1458,  2076,  2619,  3176,  3737,
           4198,  4676,  5220,  5773]]),
  'start': 2753809},
 'ZKawakeM72_010_b_2786791': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 337, 3337]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  554.,   570.,   576., ...,  1168.,  1199.,  1228.]),
  'sniff_zero': array([[-5204, -4667, -4111, -3569, -3022, -2584, -2094, -1578, -1081,
           -563,     0,   400,   902,  1420,  1987,  2565,  3104,  3639,
           4207,  4762,  5258,  5696],
         [-5067, -4543, -3986, -3435, -2886, -2473, -1967, -1448,  -944,
           -434,   129,   504,  1015,  1544,  2114,  2699,  3243,  3786,
           4345,  4901,  5402,  5814]]),
  'start': 2786591},
 'ZKawakeM72_010_b_2817079': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 311, 3311]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1219.,  1204.,  1190., ..., -2453., -2071., -1664.]),
  'sniff_zero': array([[-5247, -4790, -4284, -3819, -3486, -3109, -2731, -2276, -1801,
          -1309,  -853,  -419,    -1,   363,   863,  1296,  1822,  2379,
           2916,  3469,  3972,  4451,  4953,  5456,  5953],
         [-5123, -4664, -4155, -3699, -3411, -3013, -2646, -2169, -1683,
          -1184,  -728,  -304,   114,   460,   963,  1411,  1952,  2508,
           3051,  3608,  4116,  4586,  5086,  5593,  6092]]),
  'start': 2816879},
 'ZKawakeM72_010_b_2844365': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 337, 3337]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 746.,  752.,  774., ...,  629.,  640.,  644.]),
  'sniff_zero': array([[-5125, -4719, -4299, -3832, -3312, -2834, -2413, -1984, -1503,
          -1015,  -532,    -1,   392,   833,  1327,  1843,  2342,  2843,
           3407,  3916,  4360,  4809,  5256,  5747],
         [-5036, -4612, -4179, -3708, -3192, -2730, -2301, -1872, -1390,
           -895,  -406,   123,   496,   932,  1433,  1958,  2465,  2978,
           3531,  4049,  4471,  4922,  5374,  5863]]),
  'start': 2844165},
 'ZKawakeM72_010_b_2872871': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 292, 3292]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  554.,   537.,   545., ..., -2538., -2587., -2632.]),
  'sniff_zero': array([[-5009, -4728, -4462, -4218, -3883, -3598, -3389, -3225, -3081,
          -2929, -2783, -2580, -2298, -2134, -1994, -1862, -1421, -1004,
           -556,   -24,   517,  1074,  1198,  2470,  3285,  3899,  4351,
           5023,  5705],
         [-4936, -4663, -4397, -4155, -3807, -3540, -3325, -3175, -3027,
          -2881, -2730, -2526, -2249, -2082, -1947, -1813, -1349,  -909,
           -470,    80,   624,  1172,  1257,  2607,  3412,  4027,  4475,
           5153,  5835]]),
  'start': 2872671},
 'ZKawakeM72_010_b_2901258': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 235, 3235]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 13020.,  12922.,  12842., ...,  -6875.,  -6681.,  -6513.]),
  'sniff_zero': array([[-5152, -4925, -4722, -4521, -4189, -3968, -3815, -3663, -3548,
          -3430, -3305, -3157, -3002, -2846, -2732, -2616, -2482, -2342,
          -2199, -2072, -1934, -1825, -1712, -1594, -1003,  -869,  -759,
           -647,  -531,  -413,  -297,  -174,     0,   129,   262,   413,
            613,   755,   946,  1069,  1201,  1374,  1528,  1661,  1799,
           1935,  2074,  2212,  2347,  2474,  2592,  2715,  3182,  3302,
           3440,  3582,  3727,  3905,  4044,  4224,  4363,  4535,  4663,
           5262,  5349,  5514,  5647,  5790,  5921],
         [-5105, -4876, -4647, -4475, -4144, -3923, -3767, -3617, -3502,
          -3381, -3263, -3114, -2957, -2799, -2681, -2572, -2436, -2298,
          -2153, -2029, -1897, -1779, -1666, -1549,  -953,  -820,  -715,
           -604,  -488,  -370,  -253,  -130,    38,   171,   300,   450,
            666,   795,   985,  1114,  1241,  1408,  1573,  1701,  1839,
           1973,  2115,  2252,  2386,  2515,  2632,  2756,  3215,  3347,
           3482,  3621,  3770,  3946,  4093,  4266,  4412,  4579,  4709,
           5297,  5417,  5566,  5692,  5836,  5972]]),
  'start': 2901058},
 'ZKawakeM72_010_b_2929869': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 272, 3272]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  267.,   306.,   354., ...,  1776.,  2042.,  2397.]),
  'sniff_zero': array([[-5173, -4427, -4264, -4116, -3982, -3822, -3707, -3593, -3492,
          -3384, -3275, -3166, -3003, -2886, -2739, -2619, -2496, -2321,
          -2184, -2055, -1926, -1793, -1659, -1545, -1440, -1296, -1146,
          -1037,  -937,  -766,  -653,  -541,  -398,  -263,  -137,    -1,
            131,   261,   387,   532,   675,  1516,  1661,  1867,  2043,
           2186,  2346,  2541,  2705,  2858,  3056,  3205,  3352,  3473,
           3592,  3724,  3853,  3969,  4092,  4210,  4355,  4490,  4669,
           5490,  5684,  5831],
         [-5125, -4315, -4196, -4064, -3932, -3770, -3658, -3548, -3447,
          -3340, -3232, -3119, -2957, -2842, -2699, -2575, -2450, -2274,
          -2142, -2011, -1883, -1750, -1618, -1503, -1399, -1256, -1106,
           -998,  -890,  -726,  -612,  -497,  -356,  -225,   -96,    37,
            172,   295,   423,   567,   711,  1572,  1704,  1908,  2089,
           2231,  2386,  2580,  2746,  2898,  3095,  3243,  3390,  3514,
           3633,  3764,  3893,  4012,  4136,  4249,  4402,  4544,  4714,
           5559,  5734,  5888]]),
  'start': 2929669},
 'ZKawakeM72_010_b_2960216': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 258, 3258]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([-6174., -5766., -5364., ...,   324.,   335.,   339.]),
  'sniff_zero': array([[-5092, -4876, -4710, -4477, -4292, -3858, -3512, -3185, -3079,
          -2844, -2623, -2478, -2279, -2145, -2025, -1893, -1775, -1660,
          -1523, -1390, -1252, -1083,  -965,  -843,  -713,  -593,  -464,
           -347,  -227,  -120,    -2,   106,   256,   438,   577,   755,
            902,  1084,  1410,  1536,  1706,  1897,  2467,  2605,  2770,
           3032,  3464,  3675,  4380,  4618,  4759,  4910,  5055,  5218,
           5434,  5587,  5782],
         [-5050, -4840, -4671, -4440, -4249, -3822, -3472, -3112, -3036,
          -2796, -2580, -2435, -2236, -2106, -1981, -1848, -1733, -1615,
          -1476, -1344, -1211, -1038,  -924,  -803,  -673,  -549,  -421,
           -306,  -186,   -80,    41,   146,   292,   476,   613,   788,
            945,  1124,  1443,  1581,  1745,  1939,  2529,  2664,  2844,
           3077,  3530,  3776,  4483,  4675,  4814,  4982,  5106,  5285,
           5487,  5651,  5868]]),
  'start': 2960016},
 'ZKawakeM72_010_b_2991923': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 298, 3298]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([-4318., -4705., -5007., ...,   146.,   144.,   138.]),
  'sniff_zero': array([[-5372, -4945, -4549, -4168, -3814, -3518, -3181, -2815, -2453,
          -2086, -1741, -1410, -1121,  -881,  -715,  -423,  -205,     0,
            199,   642,  1049,  1324,  1746,  1976,  2092,  2193,  2248,
           2518,  2777,  2984,  3329,  3466,  3604,  3920,  4052,  4190,
           4316,  4436,  4623,  5127,  5212,  5592,  5653,  5780,  5890],
         [-5234, -4798, -4430, -4058, -3713, -3431, -3074, -2733, -2349,
          -1988, -1641, -1318, -1049,  -838,  -640,  -335,  -152,    70,
            275,   742,  1112,  1572,  1798,  2032,  2126,  2214,  2289,
           2555,  2890,  3235,  3370,  3509,  3643,  3961,  4099,  4234,
           4361,  4478,  4665,  5162,  5333,  5633,  5719,  5833,  5937]]),
  'start': 2991723},
 'ZKawakeM72_010_b_3025047': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 351, 3351]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  612.,   616.,   623., ..., -2977., -2988., -3032.]),
  'sniff_zero': array([[-5244, -4765, -4277, -3772, -3301, -2814, -2393, -1922, -1447,
           -961,  -496,    -2,   359,   847,  1358,  1879,  2416,  2928,
           3487,  3984,  4377,  4762,  5255,  5749],
         [-5114, -4630, -4144, -3631, -3165, -2677, -2248, -1790, -1316,
           -823,  -357,   140,   458,   951,  1464,  2007,  2562,  3081,
           3636,  4126,  4487,  4890,  5393,  5895]]),
  'start': 3024847},
 'ZKawakeM72_010_b_3054234': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 208, 3208]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([-7935., -7585., -7174., ...,  1034.,  1079.,  1103.]),
  'sniff_zero': array([[-5256, -4791, -4248, -3720, -3364, -2947, -2730, -2567, -2434,
          -2245, -2062, -1872, -1734, -1590, -1466, -1339, -1141,  -987,
           -773,  -640,  -485,  -370,  -230,  -102,    66,   285,   459,
            904,  2542,  3151,  3630,  4101,  4593,  5093,  5524,  5886],
         [-5112, -4633, -4103, -3595, -3141, -2845, -2663, -2514, -2386,
          -2193, -2002, -1818, -1687, -1547, -1424, -1293, -1093,  -940,
           -728,  -596,  -439,  -331,  -185,   -57,   120,   327,   501,
           1013,  2654,  3262,  3756,  4228,  4722,  5229,  5646,  5992]]),
  'start': 3054034},
 'ZKawakeM72_010_b_305915': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 344, 3344]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  646.,   660.,   656., ..., -3118., -3141., -3191.]),
  'sniff_zero': array([[-5299, -4833, -4329, -3816, -3371, -2888, -2425, -1914, -1406,
           -946,  -494,     1,   431,   823,  1260,  1809,  2436,  2995,
           3594,  3984,  4459,  4962,  5475],
         [-5182, -4710, -4196, -3687, -3251, -2775, -2294, -1787, -1272,
           -844,  -377,   123,   523,   930,  1396,  1968,  2564,  3146,
           3735,  4095,  4593,  5087,  5610]]),
  'start': 305715},
 'ZKawakeM72_010_b_3083807': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 343, 3343]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 702.,  718.,  704., ...,  928.,  946.,  928.]),
  'sniff_zero': array([[-5433, -4968, -4525, -4091, -3598, -3135, -2654, -2277, -1849,
          -1399,  -945,  -488,    -4,   356,   771,  1267,  1769,  2259,
           2732,  3201,  3618,  4050,  4505,  4964,  5440,  5870],
         [-5319, -4839, -4392, -3965, -3471, -3006, -2532, -2162, -1733,
          -1271,  -827,  -349,   137,   445,   883,  1392,  1901,  2397,
           2874,  3337,  3760,  4177,  4641,  5109,  5571,  6007]]),
  'start': 3083607},
 'ZKawakeM72_010_b_3118085': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 319, 3319]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  611.,   596.,   591., ..., -1901., -1964., -2000.]),
  'sniff_zero': array([[-5415, -4950, -4454, -4025, -3510, -3073, -2664, -2252, -1786,
          -1295,  -844,  -465,   -17,   392,   796,  1363,  1895,  2470,
           2991,  3481,  3889,  4325,  4785,  5219,  5692],
         [-5304, -4825, -4326, -3899, -3378, -2937, -2546, -2139, -1667,
          -1165,  -717,  -347,   112,   492,   917,  1495,  2039,  2613,
           3139,  3603,  4029,  4452,  4926,  5358,  5829]]),
  'start': 3117885},
 'ZKawakeM72_010_b_3151525': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 331, 3331]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 598.,  594.,  573., ...,  724.,  811.,  861.]),
  'sniff_zero': array([[-5404, -4962, -4517, -4067, -3630, -3228, -2803, -2401, -1949,
          -1498, -1009,  -490,    -5,   370,   801,  1304,  1817,  2336,
           2795,  3264,  3627,  4018,  4453,  4925,  5364,  5836],
         [-5298, -4843, -4393, -3934, -3504, -3100, -2676, -2272, -1828,
          -1372,  -872,  -361,   133,   472,   930,  1428,  1962,  2474,
           2940,  3380,  3757,  4141,  4582,  5059,  5501,  5966]]),
  'start': 3151325},
 'ZKawakeM72_010_b_3181815': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 318, 3318]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1185.,  1167.,  1144., ..., -3109., -3099., -3120.]),
  'sniff_zero': array([[-5162, -4667, -4194, -3688, -3253, -2779, -2482, -2235, -1807,
          -1359,  -871,  -399,    -8,   313,   876,  1405,  1888,  2385,
           2889,  3302,  3704,  4137,  4596,  5049,  5520],
         [-5014, -4522, -4052, -3546, -3108, -2639, -2392, -2146, -1681,
          -1233,  -757,  -269,   112,   407,  1007,  1542,  2017,  2533,
           3027,  3421,  3832,  4269,  4726,  5184,  5606]]),
  'start': 3181615},
 'ZKawakeM72_010_b_3211678': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 250, 3250]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 872.,  867.,  842., ...,  328.,  342.,  337.]),
  'sniff_zero': array([[-5223, -4786, -4348, -3878, -3407, -2894, -2375, -1889, -1368,
           -880,  -453,   -66,   305,   731,  1238,  1764,  2229,  2753,
           3223,  3580,  3903,  4249,  4669,  5063,  5472,  5813],
         [-5086, -4659, -4212, -3738, -3278, -2755, -2239, -1767, -1241,
           -740,  -327,    36,   408,   837,  1369,  1897,  2372,  2888,
           3360,  3672,  3987,  4360,  4789,  5174,  5587,  5921]]),
  'start': 3211478},
 'ZKawakeM72_010_b_3241717': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 280, 3280]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  558.,   531.,   523., ...,  1394.,  1388.,  1368.]),
  'sniff_zero': array([[-5137, -4958, -4706, -4364, -4022, -3778, -3473, -3113, -2775,
          -2411, -1925, -1459,  -996,  -532,   -54,   290,   899,  1466,
           1987,  2530,  3021,  3502,  3974,  4424,  4934,  5435,  5932],
         [-5080, -4909, -4626, -4271, -3948, -3721, -3381, -3013, -2683,
          -2295, -1814, -1343,  -871,  -413,    60,   385,  1015,  1591,
           2126,  2659,  3154,  3636,  4106,  4554,  5064,  5572,  6065]]),
  'start': 3241517},
 'ZKawakeM72_010_b_32567': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 366, 3366]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 258.,  254.,  267., ...,  577.,  590.,  616.]),
  'sniff_zero': array([[-5149, -4540, -3905, -3324, -2749, -2141, -1628, -1120,  -610,
             -1,   497,   874,  1409,  1899,  2591,  3262,  3927,  4565,
           5220,  5839],
         [-5005, -4398, -3768, -3182, -2605, -2028, -1490,  -991,  -470,
            135,   591,   982,  1460,  2024,  2730,  3410,  4079,  4706,
           5357,  5985]]),
  'start': 32367},
 'ZKawakeM72_010_b_3270260': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 339, 3339]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 388.,  393.,  381., ...,  378.,  398.,  411.]),
  'sniff_zero': array([[-5166, -4760, -4335, -3905, -3459, -2978, -2492, -1995, -1523,
          -1042,  -518,    -1,   354,   832,  1313,  1856,  2337,  2897,
           3380,  3840,  4283,  4760,  5261,  5734],
         [-5036, -4650, -4221, -3797, -3340, -2853, -2369, -1864, -1395,
           -915,  -399,   131,   451,   933,  1429,  1988,  2481,  3039,
           3501,  3969,  4417,  4900,  5396,  5867]]),
  'start': 3270060},
 'ZKawakeM72_010_b_3301007': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 267, 3267]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 535.,  519.,  531., ...,  727.,  754.,  781.]),
  'sniff_zero': array([[-5238, -4787, -4344, -3916, -3452, -2989, -2646, -2257, -1817,
          -1367,  -889,  -467,   -51,   301,   733,  1226,  1677,  2119,
           2603,  3053,  3537,  3909,  4302,  4771,  5271,  5725],
         [-5160, -4668, -4228, -3806, -3340, -2875, -2553, -2139, -1716,
          -1246,  -762,  -360,    66,   395,   831,  1325,  1792,  2233,
           2728,  3173,  3652,  4022,  4408,  4891,  5399,  5851]]),
  'start': 3300807},
 'ZKawakeM72_010_b_3332879': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 344, 3344]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 609.,  629.,  630., ...,  587.,  563.,  571.]),
  'sniff_zero': array([[-5035, -4505, -3973, -3475, -2981, -2541, -2042, -1512, -1005,
           -510,    -5,   374,   840,  1360,  1832,  2327,  2829,  3288,
           3758,  4228,  4710,  5203,  5719],
         [-4902, -4376, -3833, -3352, -2868, -2409, -1914, -1379,  -879,
           -374,   132,   473,   946,  1476,  1963,  2465,  2971,  3435,
           3908,  4377,  4859,  5336,  5849]]),
  'start': 3332679},
 'ZKawakeM72_010_b_334963': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 333, 3333]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  612.,   631.,   631., ...,  3260.,  3310.,  3349.]),
  'sniff_zero': array([[-5134, -4640, -4192, -3752, -3288, -2825, -2389, -1899, -1400,
           -912,  -478,     0,   362,   748,  1086,  1614,  2544,  3086,
           3669,  4190,  4674,  5195,  5753],
         [-4998, -4515, -4073, -3644, -3172, -2701, -2251, -1761, -1260,
           -801,  -365,   122,   453,   826,  1177,  1807,  2670,  3222,
           3802,  4317,  4809,  5329,  5891]]),
  'start': 334763},
 'ZKawakeM72_010_b_3363349': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 341, 3341]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 485.,  481.,  472., ...,  596.,  577.,  562.]),
  'sniff_zero': array([[-5499, -4949, -4390, -3843, -3332, -2919, -2496, -2019, -1533,
          -1047,  -535,    -6,   503,  1084,  1673,  2255,  2859,  3343,
           3759,  4203,  4651,  5086,  5508,  5985],
         [-5364, -4809, -4256, -3714, -3193, -2809, -2356, -1888, -1405,
           -910,  -406,   135,   642,  1204,  1791,  2374,  2990,  3468,
           3902,  4338,  4774,  5210,  5631,  6112]]),
  'start': 3363149},
 'ZKawakeM72_010_b_3395104': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 332, 3332]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 466.,  472.,  477., ...,  287.,  288.,  318.]),
  'sniff_zero': array([[-5117, -4640, -4126, -3623, -3087, -2664, -2246, -1817, -1406,
           -974,  -505,    -1,   389,   836,  1309,  1819,  2356,  2889,
           3366,  3841,  4232,  4684,  5155,  5637],
         [-4994, -4523, -4001, -3497, -2969, -2561, -2134, -1702, -1295,
           -875,  -399,   135,   505,   955,  1434,  1959,  2481,  3022,
           3510,  3978,  4359,  4810,  5287,  5781]]),
  'start': 3394904},
 'ZKawakeM72_010_b_3425880': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 265, 3265]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  776.,   751.,   733., ...,  1115.,  1108.,  1086.]),
  'sniff_zero': array([[-5023, -4654, -4250, -3863, -3517, -3202, -2902, -2595, -2292,
          -1999, -1706, -1335,  -897,  -486,   -67,   261,   628,  1166,
           1649,  2117,  2587,  3073,  3543,  3997,  4399,  4808,  5241,
           5644],
         [-4923, -4537, -4143, -3750, -3413, -3108, -2808, -2502, -2198,
          -1913, -1625, -1242,  -784,  -366,    68,   352,   729,  1277,
           1770,  2250,  2727,  3209,  3677,  4130,  4536,  4944,  5371,
           5772]]),
  'start': 3425680},
 'ZKawakeM72_010_b_3455373': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 332, 3332]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  791.,   810.,   796., ..., -2083., -2106., -2165.]),
  'sniff_zero': array([[-5025, -4527, -4081, -3596, -3125, -2685, -2273, -1831, -1374,
           -942,  -469,    -2,   316,   758,  1457,  2010,  2467,  3012,
           3543,  4027,  4430,  4826,  5248,  5700],
         [-4896, -4401, -3947, -3457, -2991, -2546, -2140, -1708, -1243,
           -805,  -340,   132,   414,   918,  1556,  2132,  2601,  3159,
           3694,  4175,  4555,  4946,  5356,  5820]]),
  'start': 3455173},
 'ZKawakeM72_010_b_3487774': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 299, 3299]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 910.,  941.,  941., ..., -166., -165., -146.]),
  'sniff_zero': array([[-5013, -4473, -4084, -3662, -3263, -2869, -2467, -2043, -1637,
          -1248,  -847,  -432,   -40,   361,   705,  1058,  1440,  1605,
           1780,  2126,  2260,  2458,  2642,  3022,  3533,  4117,  4262,
           4377,  4504,  4787,  5038,  5446,  5666,  5831,  5955],
         [-4806, -4370, -3957, -3537, -3133, -2743, -2341, -1928, -1518,
          -1134,  -725,  -317,    86,   459,   800,  1138,  1496,  1643,
           1818,  2161,  2306,  2494,  2683,  3081,  3584,  4176,  4301,
           4418,  4546,  4827,  5075,  5555,  5714,  5873,  6007]]),
  'start': 3487574},
 'ZKawakeM72_010_b_3520346': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 333, 3333]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1863.,  1871.,  1874., ...,   383.,   390.,   404.]),
  'sniff_zero': array([[-5367, -4943, -4542, -4128, -3727, -3281, -2846, -2464, -2012,
          -1582, -1159,  -751,  -369,     0,   287,   477,   927,  1370,
           1805,  2252,  2715,  3171,  3590,  4021,  4456,  4897,  5321,
           5752],
         [-5245, -4822, -4423, -4001, -3599, -3151, -2726, -2348, -1906,
          -1467, -1045,  -636,  -269,   111,   345,   534,  1029,  1484,
           1937,  2390,  2855,  3313,  3739,  4164,  4598,  5041,  5459,
           5892]]),
  'start': 3520146},
 'ZKawakeM72_010_b_3549107': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 355, 3355]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1004.,   999.,   984., ...,  1091.,  1105.,  1108.]),
  'sniff_zero': array([[-5352, -4926, -4496, -4096, -3632, -3201, -2801, -2377, -1927,
          -1457,  -945,  -463,     0,   355,   849,  1317,  1790,  2227,
           2664,  3107,  3551,  3960,  4391,  4786,  5212,  5620],
         [-5228, -4794, -4369, -3953, -3493, -3060, -2672, -2233, -1785,
          -1323,  -799,  -323,   140,   453,   976,  1444,  1932,  2367,
           2808,  3258,  3692,  4096,  4530,  4924,  5350,  5754]]),
  'start': 3548907},
 'ZKawakeM72_010_b_3575405': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 351, 3351]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  632.,   654.,   661., ..., -3102., -3184., -3240.]),
  'sniff_zero': array([[-5013, -4509, -4022, -3548, -3084, -2632, -2216, -1764, -1315,
           -916,  -478,     0,   402,   770,  1327,  1866,  2395,  3035,
           3555,  4036,  4512,  4964,  5443,  5917],
         [-4874, -4374, -3895, -3414, -2941, -2499, -2081, -1642, -1181,
           -791,  -341,   143,   508,   903,  1470,  2016,  2553,  3186,
           3714,  4194,  4669,  5116,  5597,  6072]]),
  'start': 3575205},
 'ZKawakeM72_010_b_3604066': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 212, 3212]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1029.,  1031.,  1027., ...,   882.,   950.,   919.]),
  'sniff_zero': array([[-5127, -4685, -4225, -3778, -3304, -2846, -2379, -1928, -1458,
           -986,  -522,  -122,   165,   658,  1130,  1537,  2099,  2606,
           3118,  3624,  4109,  4580,  5055,  5560,  5976],
         [-5003, -4557, -4101, -3649, -3168, -2715, -2247, -1784, -1331,
           -847,  -395,     5,   256,   789,  1210,  1661,  2229,  2751,
           3267,  3776,  4251,  4726,  5200,  5699,  6105]]),
  'start': 3603866},
 'ZKawakeM72_010_b_3634247': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 347, 3347]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 580.,  573.,  586., ...,  136.,  167.,  182.]),
  'sniff_zero': array([[-5368, -4853, -4310, -3808, -3348, -2966, -2537, -2032, -1541,
          -1006,  -467,     0,   353,   811,  1345,  1844,  2343,  2868,
           3395,  3874,  4333,  4808,  5270,  5788],
         [-5230, -4718, -4172, -3681, -3246, -2852, -2419, -1906, -1407,
           -862,  -327,   133,   450,   923,  1475,  1991,  2483,  3009,
           3541,  4023,  4452,  4942,  5403,  5922]]),
  'start': 3634047},
 'ZKawakeM72_010_b_364036': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 331, 3331]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 996.,  992.,  992., ...,  239.,  252.,  244.]),
  'sniff_zero': array([[-5350, -4840, -4318, -3825, -3362, -2815, -2333, -1829, -1316,
           -869,  -416,    -2,   298,   705,  1134,  1619,  2137,  2689,
           3222,  3702,  4224,  4729,  5295,  5806],
         [-5216, -4691, -4176, -3692, -3222, -2685, -2194, -1696, -1181,
           -744,  -298,   116,   381,   768,  1236,  1732,  2264,  2833,
           3358,  3856,  4381,  4880,  5436,  5951]]),
  'start': 363836},
 'ZKawakeM72_010_b_3661632': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 351, 3351]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  347.,   349.,   347., ..., -1216., -1342., -1462.]),
  'sniff_zero': array([[-5099, -4666, -4209, -3714, -3230, -2742, -2224, -1678, -1124,
           -595,    -2,   332,   872,  1439,  2002,  2488,  3020,  3488,
           3996,  4530,  5022,  5515],
         [-4982, -4537, -4079, -3585, -3098, -2605, -2092, -1531,  -988,
           -454,   131,   434,  1000,  1566,  2138,  2630,  3163,  3636,
           4141,  4669,  5157,  5656]]),
  'start': 3661432},
 'ZKawakeM72_010_b_3686217': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 347, 3347]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 755.,  782.,  790., ...,  544.,  579.,  588.]),
  'sniff_zero': array([[-5085, -4572, -4021, -3424, -2898, -2392, -1919, -1445,  -896,
           -455,     2,   401,   840,  1355,  1790,  2262,  2597,  2898,
           3077,  3523,  3969,  4515,  5008,  5274,  5706],
         [-4952, -4455, -3880, -3287, -2761, -2252, -1789, -1306,  -761,
           -341,   122,   498,   944,  1443,  1897,  2361,  2659,  2951,
           3139,  3606,  4120,  4654,  5088,  5348,  5830]]),
  'start': 3686017},
 'ZKawakeM72_010_b_3704': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.00023700000019744039,
  'odor_t': array([ 337, 2337]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  373.,   390.,   395., ..., -6442., -6337., -6210.]),
  'sniff_zero': array([[-3255, -2706, -2217, -1727, -1154,  -596,   -31,   350,   662,
            840,  1265,  1491,  1615,  1756,  1989,  2153,  2296,  2479,
           2629,  3037,  3295,  3464,  3620,  4007,  4250,  4638,  5106,
           5645],
         [-3137, -2578, -2122, -1605, -1027,  -461,   112,   463,   704,
            883,  1322,  1533,  1655,  1803,  2034,  2188,  2334,  2516,
           2667,  3087,  3349,  3513,  3662,  4046,  4287,  4706,  5226,
           5770]]),
  'start': 3504},
 'ZKawakeM72_010_b_3714366': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 331, 3331]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 954.,  990.,  984., ...,  984.,  972.,  987.]),
  'sniff_zero': array([[-5197, -4760, -4338, -3879, -3488, -3048, -2620, -2190, -1783,
          -1344,  -897,  -449,    -4,   351,   847,  1330,  1818,  2309,
           2775,  3232,  3701,  4148,  4652,  5091,  5540,  5984],
         [-5077, -4645, -4215, -3759, -3376, -2933, -2502, -2079, -1668,
          -1227,  -779,  -330,   123,   451,   959,  1449,  1943,  2444,
           2905,  3366,  3827,  4285,  4786,  5225,  5661,  6110]]),
  'start': 3714166},
 'ZKawakeM72_010_b_3742264': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 214, 3214]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1231.,  1207.,  1202., ...,   935.,   942.,   944.]),
  'sniff_zero': array([[-5399, -4948, -4531, -4091, -3664, -3240, -2792, -2390, -1950,
          -1489,  -980,  -481,  -104,   259,   712,  1200,  1706,  2181,
           2639,  3116,  3578,  4029,  4454,  4882,  5288,  5742],
         [-5276, -4826, -4401, -3977, -3537, -3126, -2662, -2277, -1829,
          -1371,  -866,  -358,     6,   363,   829,  1331,  1847,  2326,
           2784,  3259,  3714,  4160,  4588,  5001,  5402,  5871]]),
  'start': 3742064},
 'ZKawakeM72_010_b_3770713': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 351, 3351]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 393.,  366.,  358., ...,  879.,  868.,  882.]),
  'sniff_zero': array([[-5267, -4798, -4370, -3936, -3472, -3005, -2729, -2391, -1959,
          -1512, -1048,  -538,    -1,   404,   908,  1445,  1934,  2543,
           3136,  3762,  4282,  4736,  5213,  5710],
         [-5139, -4679, -4247, -3827, -3339, -2865, -2664, -2270, -1839,
          -1390,  -918,  -401,   143,   515,  1032,  1572,  2079,  2688,
           3287,  3915,  4430,  4882,  5360,  5860]]),
  'start': 3770513},
 'ZKawakeM72_010_b_3801140': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 326, 3326]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  659.,   676.,   679., ..., -2337., -2378., -2395.]),
  'sniff_zero': array([[-5095, -4585, -4139, -3673, -3351, -3088, -2787, -2553, -2400,
          -2265, -2128, -1938, -1805, -1434,  -993,  -496,    -5,   358,
            859,  1440,  1966,  2457,  3021,  3520,  3867,  4278,  4584,
           4932,  5282,  5616,  5925],
         [-4967, -4447, -4002, -3529, -3265, -2990, -2712, -2486, -2341,
          -2215, -2075, -1882, -1748, -1339,  -882,  -361,   129,   467,
            986,  1575,  2082,  2593,  3162,  3660,  3949,  4398,  4677,
           5034,  5388,  5700,  6009]]),
  'start': 3800940},
 'ZKawakeM72_010_b_3829393': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 325, 3325]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  497.,   498.,   501., ..., -2509., -2625., -2734.]),
  'sniff_zero': array([[-5111, -4612, -4121, -3659, -3273, -2896, -2554, -2191, -1838,
          -1409,  -939,  -518,    -6,   348,   858,  1352,  1895,  2418,
           2889,  3388,  3875,  4322,  4752,  5226,  5660],
         [-4980, -4499, -4012, -3532, -3147, -2783, -2454, -2070, -1728,
          -1293,  -809,  -419,   127,   433,   997,  1493,  2042,  2573,
           3043,  3547,  4025,  4462,  4894,  5357,  5801]]),
  'start': 3829193},
 'ZKawakeM72_010_b_3855554': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 349, 3349]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1436.,  1389.,  1400., ..., -1621., -1667., -1690.]),
  'sniff_zero': array([[-5182, -4743, -4356, -3922, -3428, -2916, -2408, -1894, -1359,
           -918,  -449,    -3,   394,   828,  1362,  1909,  2463,  3075,
           3605,  4056,  4538,  5033,  5545,  5974],
         [-5046, -4622, -4244, -3803, -3294, -2781, -2271, -1751, -1211,
           -785,  -296,   134,   506,   963,  1507,  2058,  2618,  3213,
           3749,  4211,  4692,  5180,  5697,  6118]]),
  'start': 3855354},
 'ZKawakeM72_010_b_3884924': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 300, 3300]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 882.,  901.,  905., ...,  326.,  363.,  382.]),
  'sniff_zero': array([[-5256, -4740, -4282, -3721, -3160, -2660, -2223, -1752, -1319,
           -858,  -398,   -17,   387,   867,  1367,  1836,  2332,  2785,
           3288,  3739,  4172,  4608,  5071,  5511,  5948],
         [-5122, -4607, -4140, -3582, -3018, -2549, -2094, -1631, -1206,
           -730,  -282,    84,   482,   961,  1488,  1974,  2467,  2927,
           3426,  3874,  4302,  4733,  5205,  5643,  6078]]),
  'start': 3884724},
 'ZKawakeM72_010_b_3914788': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 299, 3299]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1870.,  1995.,  2119., ..., -2841., -2801., -2806.]),
  'sniff_zero': array([[-5432, -4931, -4500, -4060, -3660, -3258, -2838, -2431, -1964,
          -1529, -1055,  -609,  -292,    -2,   280,   637,  1110,  1565,
           1983,  2441,  2866,  3272,  3681,  4113,  4532,  5004,  5490,
           5979],
         [-5306, -4799, -4391, -3948, -3545, -3153, -2709, -2299, -1838,
          -1398,  -919,  -487,  -213,   100,   368,   743,  1229,  1653,
           2101,  2578,  3009,  3411,  3829,  4241,  4669,  5145,  5633,
           6116]]),
  'start': 3914588},
 'ZKawakeM72_010_b_393830': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 336, 3336]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 728.,  716.,  710., ...,  107.,  116.,   96.]),
  'sniff_zero': array([[-5416, -4887, -4420, -3937, -3482, -2951, -2450, -1938, -1409,
           -930,  -494,    -6,   389,   874,  1513,  2117,  2736,  3311,
           3858,  4348,  4817,  5296,  5728],
         [-5281, -4754, -4301, -3799, -3343, -2817, -2320, -1802, -1274,
           -816,  -359,   124,   493,  1009,  1657,  2261,  2877,  3458,
           3999,  4494,  4956,  5429,  5846]]),
  'start': 393630},
 'ZKawakeM72_010_b_3941106': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 333, 3333]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 630.,  596.,  563., ...,  744.,  741.,  719.]),
  'sniff_zero': array([[-5050, -4791, -4511, -4037, -3492, -3020, -2544, -2115, -1687,
          -1397,  -920,  -448,    -2,   317,   800,  1291,  1784,  2295,
           2801,  3335,  3805,  4246,  4705,  5179,  5653],
         [-4977, -4724, -4419, -3884, -3377, -2909, -2429, -1999, -1576,
          -1317,  -806,  -336,   114,   401,   912,  1416,  1926,  2434,
           2948,  3477,  3939,  4382,  4842,  5319,  5796]]),
  'start': 3940906},
 'ZKawakeM72_010_b_3967433': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 339, 3339]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1016.,  1016.,  1014., ...,   528.,   547.,   557.]),
  'sniff_zero': array([[-5203, -4813, -4340, -3845, -3346, -2886, -2388, -1904, -1423,
           -959,  -460,    -3,   349,   788,  1331,  1846,  2326,  2834,
           3324,  3804,  4254,  4734,  5196,  5688],
         [-5120, -4705, -4228, -3714, -3219, -2785, -2252, -1775, -1293,
           -826,  -339,   126,   441,   909,  1467,  1983,  2466,  2978,
           3470,  3954,  4396,  4854,  5335,  5821]]),
  'start': 3967233},
 'ZKawakeM72_010_b_3998177': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 339, 3339]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  927.,   946.,   943., ..., -3948., -3952., -3901.]),
  'sniff_zero': array([[-5052, -4552, -4039, -3579, -3063, -2535, -2046, -1521,  -996,
           -487,    -3,   251,   773,  1298,  1834,  2388,  2976,  3569,
           4108,  4682,  5192,  5699],
         [-4941, -4416, -3908, -3462, -2917, -2400, -1911, -1390,  -857,
           -349,   133,   333,   906,  1436,  1983,  2538,  3133,  3720,
           4261,  4828,  5343,  5847]]),
  'start': 3997977},
 'ZKawakeM72_010_b_4023312': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.00023700000019744039,
  'odor_t': array([ 346, 2346]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  18.,   51.,   77., ..., -609., -719., -812.]),
  'sniff_zero': array([[-5346, -4863, -4296, -3744, -3204, -2700, -2470, -1896, -1376,
           -815,  -449,    -5,   344,   871,  1400,  1966,  2499,  2981,
           3487,  4014,  4559,  5075,  5620],
         [-5214, -4717, -4160, -3603, -3071, -2664, -2330, -1773, -1254,
           -668,  -358,   130,   442,   984,  1516,  2094,  2635,  3112,
           3630,  4145,  4703,  5211,  5760]]),
  'start': 4023112},
 'ZKawakeM72_010_b_426392': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 337, 3337]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  460.,   463.,   467., ..., -1084., -1110., -1136.]),
  'sniff_zero': array([[-5048, -4550, -4036, -3482, -2871, -2480, -2018, -1524, -1029,
           -538,    -1,   362,   857,  1415,  1936,  2484,  3030,  3503,
           3964,  4498,  5007,  5526],
         [-4917, -4408, -3897, -3342, -2735, -2363, -1889, -1392,  -895,
           -414,   141,   469,   985,  1542,  2074,  2629,  3178,  3639,
           4107,  4638,  5149,  5666]]),
  'start': 426192},
 'ZKawakeM72_010_b_459677': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 328, 3328]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1328.,  1373.,  1401., ...,  7396.,  7302.,  7218.]),
  'sniff_zero': array([[-5106, -4624, -4138, -3605, -3097, -2674, -2210, -1758, -1312,
           -834,  -407,    -1,   414,   878,  1214,  1705,  2317,  2539,
           2934,  3355,  3611,  3983,  4459,  4970,  5495],
         [-4975, -4493, -4000, -3468, -2963, -2549, -2103, -1637, -1188,
           -701,  -289,   115,   506,   931,  1313,  1922,  2367,  2594,
           3000,  3417,  3693,  4115,  4596,  5119,  5642]]),
  'start': 459477},
 'ZKawakeM72_010_b_492105': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 280, 3280]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1357.,  1369.,  1398., ...,  2580.,  2588.,  2569.]),
  'sniff_zero': array([[-5445, -4912, -4389, -3890, -3373, -2876, -2457, -1998, -1513,
          -1014,  -564,   -82,   305,   832,  1364,  1967,  2606,  3191,
           3801,  4266,  4729,  5212,  5768],
         [-5304, -4777, -4249, -3744, -3222, -2740, -2323, -1865, -1379,
           -883,  -425,    63,   406,   955,  1498,  2108,  2755,  3344,
           3948,  4409,  4873,  5362,  5920]]),
  'start': 491905},
 'ZKawakeM72_010_b_4953856': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.00023700000019744039,
  'odor_t': array([ 355, 2355]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  491.,   500.,   516., ..., -2518., -2548., -2550.]),
  'sniff_zero': array([[-5000, -4670, -4433, -4252, -3917, -3676, -3518, -3194, -3021,
          -2781, -2538, -2386, -2218, -2040, -1872, -1603, -1415, -1181,
           -762,  -441,     2,   454,   887,  1332,  1906,  2453,  3070,
           3663,  4206,  4773,  5352,  5923],
         [-4920, -4605, -4377, -4192, -3852, -3629, -3472, -3148, -2983,
          -2742, -2495, -2341, -2182, -2002, -1834, -1570, -1372, -1135,
           -698,  -355,   103,   549,   930,  1431,  2026,  2585,  3189,
           3783,  4339,  4898,  5466,  6048]]),
  'start': 4953656},
 'ZKawakeM72_010_b_524659': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 328, 3328]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1327.,  1318.,  1375., ...,  1480.,  1454.,  1420.]),
  'sniff_zero': array([[-5270, -4748, -4299, -3820, -3386, -2886, -2380, -1882, -1407,
           -911,  -441,    -2,   396,   813,  1407,  1935,  2521,  3067,
           3546,  3958,  4293,  4527,  4766,  5025,  5360,  5682],
         [-5121, -4598, -4188, -3688, -3260, -2766, -2250, -1744, -1281,
           -769,  -299,   129,   499,   935,  1540,  2078,  2669,  3181,
           3654,  4059,  4335,  4575,  4829,  5116,  5473,  5774]]),
  'start': 524459},
 'ZKawakeM72_010_b_556658': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 309, 3309]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 1134.,  1139.,  1168., ..., -2771., -2789., -2817.]),
  'sniff_zero': array([[-5156, -4697, -4310, -3894, -3466, -3067, -2670, -2207, -1781,
          -1348,  -881,  -430,    -2,   367,   910,  1383,  1891,  2442,
           2981,  3421,  3911,  4391,  4858,  5295,  5772],
         [-5028, -4568, -4202, -3776, -3342, -2947, -2557, -2086, -1670,
          -1229,  -753,  -298,   110,   472,  1049,  1509,  2031,  2588,
           3129,  3569,  4059,  4537,  4999,  5436,  5865]]),
  'start': 556458},
 'ZKawakeM72_010_b_585473': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 348, 3348]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 739.,  774.,  805., ...,  835.,  849.,  808.]),
  'sniff_zero': array([[-5309, -4869, -4389, -4000, -3620, -3205, -2782, -2338, -1866,
          -1393,  -919,  -454,    -1,   313,   796,  1274,  1774,  2258,
           2740,  3262,  3726,  4203,  4652,  5166,  5606],
         [-5191, -4732, -4246, -3875, -3512, -3086, -2651, -2211, -1729,
          -1259,  -791,  -322,   141,   416,   927,  1407,  1909,  2402,
           2888,  3409,  3873,  4347,  4801,  5311,  5735]]),
  'start': 585273},
 'ZKawakeM72_010_b_615460': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 288, 3288]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 791.,  796.,  805., ...,  657.,  637.,  623.]),
  'sniff_zero': array([[-5038, -4575, -4166, -3716, -3228, -2758, -2296, -1810, -1365,
           -941,  -512,   -47,   301,   704,  1226,  1742,  2236,  2801,
           3240,  3660,  4153,  4476,  4717,  4985,  5282,  5577,  5912],
         [-4914, -4447, -4037, -3585, -3091, -2633, -2183, -1695, -1240,
           -825,  -388,    81,   394,   823,  1358,  1859,  2383,  2946,
           3357,  3818,  4288,  4524,  4792,  5075,  5377,  5688,  6021]]),
  'start': 615260},
 'ZKawakeM72_010_b_62619': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 228, 3228]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 254.,  268.,  270., ...,   39.,   42.,   51.]),
  'sniff_zero': array([[-5581, -4965, -4325, -3658, -3018, -2472, -1839, -1197,  -565,
             86,   607,  1085,  1420,  1704,  2309,  2779,  3343,  3723,
           4293,  4553,  5217],
         [-5426, -4822, -4183, -3515, -2860, -2331, -1691, -1050,  -412,
            197,   715,  1174,  1475,  1795,  2442,  2875,  3492,  3821,
           4362,  4660,  5414]]),
  'start': 62419},
 'ZKawakeM72_010_b_648193': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 285, 3285]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([-7333., -7458., -7517., ..., -6819., -6853., -6853.]),
  'sniff_zero': array([[-5311, -4878, -4617, -4233, -3826, -3382, -2969, -2733, -2316,
          -1918, -1593, -1258, -1052,  -849,  -412,  -210,    -1,   282,
            484,   831,  1272,  1546,  1996,  2467,  3329,  3902,  4224,
           4345,  4466,  4772,  5155,  5295,  5698],
         [-5235, -4831, -4521, -4116, -3710, -3258, -2917, -2616, -2183,
          -1801, -1493, -1177,  -992,  -784,  -335,  -160,    79,   324,
            558,   875,  1322,  1589,  2059,  2528,  3401,  3984,  4264,
           4471,  4512,  4858,  5196,  5378,  5809]]),
  'start': 647993},
 'ZKawakeM72_010_b_680181': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 259, 3259]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  937.,   921.,   928., ..., -4086., -4005., -3905.]),
  'sniff_zero': array([[-5107, -4660, -4206, -3735, -3299, -2847, -2369, -1897, -1456,
           -995,  -542,   -83,   341,   854,  1402,  1900,  2428,  2938,
           3434,  3893,  4341,  4808,  5250,  5699],
         [-4966, -4525, -4078, -3593, -3163, -2712, -2234, -1760, -1321,
           -863,  -406,    61,   445,   988,  1536,  2051,  2571,  3078,
           3586,  4038,  4488,  4955,  5389,  5838]]),
  'start': 679981},
 'ZKawakeM72_010_b_708431': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 341, 3341]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  896.,   888.,   878., ..., -5539., -5569., -5606.]),
  'sniff_zero': array([[-5379, -4911, -4505, -4073, -3670, -3255, -2803, -2306, -1867,
          -1452,  -974,  -482,    -2,   355,   824,  1158,  1560,  2003,
           2417,  2923,  3451,  3975,  4443,  4921,  5407,  5897],
         [-5226, -4767, -4350, -3933, -3546, -3121, -2663, -2168, -1725,
          -1308,  -830,  -339,   146,   459,   915,  1246,  1668,  2097,
           2553,  3066,  3598,  4126,  4590,  5075,  5555,  6052]]),
  'start': 708231},
 'ZKawakeM72_010_b_736369': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 268, 3268]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  887.,   889.,   883., ...,  1406.,  1384.,  1366.]),
  'sniff_zero': array([[-5151, -4643, -4248, -3845, -3382, -2889, -2484, -2018, -1505,
          -1029,  -580,   -86,   332,   778,  1348,  1913,  2517,  3082,
           3661,  4105,  4574,  5003,  5483,  5938],
         [-5014, -4492, -4135, -3715, -3234, -2742, -2353, -1876, -1359,
           -893,  -438,    68,   444,   922,  1496,  2061,  2666,  3235,
           3782,  4242,  4718,  5150,  5635,  6092]]),
  'start': 736169},
 'ZKawakeM72_010_b_765409': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 335, 3335]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  784.,   780.,   777., ..., -1672., -1701., -1737.]),
  'sniff_zero': array([[-5233, -4799, -4301, -3779, -3306, -2834, -2398, -1944, -1448,
           -978,  -499,     0,   428,   895,  1411,  1959,  2479,  2991,
           3429,  3885,  4331,  4800,  5327,  5812],
         [-5134, -4684, -4178, -3650, -3170, -2710, -2276, -1816, -1314,
           -839,  -372,   132,   539,  1018,  1547,  2097,  2618,  3135,
           3575,  4021,  4461,  4939,  5464,  5950]]),
  'start': 765209},
 'ZKawakeM72_010_b_794134': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 288, 3288]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  520.,   524.,   528., ..., -4162., -4127., -4088.]),
  'sniff_zero': array([[-5120, -4614, -4119, -3664, -3204, -2669, -2134, -1650, -1170,
           -613,   -65,   319,   830,  1353,  1867,  2381,  2917,  3399,
           3871,  4295,  4761,  5255,  5756],
         [-4976, -4471, -3984, -3540, -3067, -2533, -1988, -1508, -1018,
           -477,    84,   432,   970,  1494,  2009,  2523,  3068,  3550,
           4022,  4434,  4911,  5402,  5873]]),
  'start': 793934},
 'ZKawakeM72_010_b_825320': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 350, 3350]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  779.,   763.,   756., ...,  1038.,  1032.,  1042.]),
  'sniff_zero': array([[-5188, -4691, -4176, -3610, -3106, -2609, -2104, -1549, -1018,
           -489,    -2,   426,   905,  1443,  1986,  2575,  3041,  3577,
           4125,  4670,  5150,  5709],
         [-5042, -4552, -4045, -3466, -2964, -2463, -1965, -1422,  -864,
           -339,   151,   540,  1052,  1578,  2137,  2725,  3185,  3736,
           4277,  4826,  5302,  5870]]),
  'start': 825120},
 'ZKawakeM72_010_b_856267': {'mouse': 'ZKawakeM72',
  'odor': 'menthone',
  'odor_c': 0.0015999999595806003,
  'odor_t': array([ 322, 3322]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ 713.,  701.,  714., ...,  430.,  416.,  407.]),
  'sniff_zero': array([[-5350, -4914, -4452, -3969, -3514, -3014, -2539, -2052, -1545,
          -1038,  -530,   -20,   493,  1007,  1622,  2217,  2860,  3480,
           4051,  4572,  5093,  5651],
         [-5217, -4777, -4317, -3838, -3381, -2887, -2424, -1908, -1427,
           -894,  -388,   125,   640,  1144,  1769,  2370,  3015,  3645,
           4210,  4730,  5248,  5811]]),
  'start': 856067},
 'ZKawakeM72_010_b_888004': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 255, 3255]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  792.,   797.,   797., ..., -3290., -3250., -3201.]),
  'sniff_zero': array([[-5209, -4723, -4266, -3812, -3327, -2829, -2393, -1971, -1504,
          -1000,  -545,   -82,   318,   758,  1327,  1885,  2429,  2970,
           3489,  3951,  4342,  4604,  4804,  5025,  5312,  5784],
         [-5086, -4608, -4143, -3691, -3207, -2705, -2292, -1863, -1388,
           -873,  -422,    49,   414,   863,  1450,  2021,  2567,  3110,
           3610,  4069,  4435,  4656,  4858,  5080,  5410,  5894]]),
  'start': 887804},
 'ZKawakeM72_010_b_89594': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 417, 3417]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  326.,   320.,   305., ..., -2951., -2967., -2961.]),
  'sniff_zero': array([[-5382, -4752, -4117, -3518, -2992, -2467, -1848, -1244,  -626,
             -1,   308,   838,  1326,  1833,  2406,  2996,  3614,  4183,
           4653,  5255,  5891],
         [-5239, -4601, -3971, -3373, -2848, -2325, -1700, -1092,  -465,
            160,   385,   957,  1417,  1951,  2557,  3152,  3770,  4325,
           4795,  5402,  6045]]),
  'start': 89394},
 'ZKawakeM72_010_b_921451': {'mouse': 'ZKawakeM72',
  'odor': '2-hydroxyacetophenone',
  'odor_c': 0.005100000184029341,
  'odor_t': array([ 267, 3267]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([   76.,   135.,   151., ...,  1957.,  2090.,  2230.]),
  'sniff_zero': array([[-5244, -4753, -4308, -3876, -3415, -2947, -2570, -2236, -1981,
          -1846, -1555, -1365, -1027,  -773,  -619,  -479,  -361,  -252,
           -132,    -7,   134,   294,   433,   887,  1417,  1625,  1767,
           2000,  2168,  2519,  2963,  3194,  3460,  3703,  3982,  4201,
           4359,  4713,  4855,  5072,  5274,  5397,  5527,  5653,  5786,
           5917],
         [-5123, -4629, -4187, -3757, -3305, -2844, -2469, -2135, -1931,
          -1798, -1506, -1323,  -989,  -728,  -581,  -435,  -318,  -210,
            -92,    35,   176,   332,   475,   952,  1480,  1684,  1808,
           2047,  2215,  2576,  3074,  3249,  3508,  3761,  4064,  4266,
           4426,  4759,  4929,  5138,  5335,  5445,  5577,  5699,  5832,
           5966]]),
  'start': 921251},
 'ZKawakeM72_010_b_950612': {'mouse': 'ZKawakeM72',
  'odor': 'acetophenone',
  'odor_c': 0.0007900000200606883,
  'odor_t': array([ 275, 3275]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([ -74.,  -87.,  -86., ...,  234.,  246.,  266.]),
  'sniff_zero': array([[-5010, -4885, -4764, -4653, -4537, -3978, -3850, -3712, -3548,
          -3401, -3266, -3157, -3054, -2938, -2829, -2703, -2587, -2486,
          -2369, -2259, -2145, -2031, -1900, -1785, -1666, -1540, -1409,
          -1271, -1153, -1024,  -884,  -740,  -603,  -470,  -345,  -233,
           -120,    -2,   116,   239,   353,   499,   622,   747,   869,
           1010,  1141,  1707,  1907,  2045,  2162,  2274,  2406,  2527,
           2638,  2748,  2867,  2989,  3120,  3247,  3400,  3525,  3673,
           3790,  3911,  4033,  4150,  4262,  4388,  4522,  4634,  4738,
           4880,  4999,  5128,  5241,  5356,  5485,  5601,  5713,  5834,
           5952],
         [-4968, -4846, -4721, -4608, -4497, -3923, -3802, -3667, -3502,
          -3357, -3222, -3114, -3010, -2895, -2789, -2659, -2545, -2445,
          -2324, -2217, -2103, -1988, -1854, -1743, -1624, -1496, -1366,
          -1230, -1110,  -978,  -841,  -696,  -557,  -427,  -305,  -191,
            -77,    42,   159,   282,   394,   544,   664,   788,   910,
           1053,  1179,  1764,  1975,  2087,  2208,  2317,  2449,  2571,
           2682,  2790,  2907,  3032,  3164,  3289,  3444,  3570,  3715,
           3831,  3951,  4075,  4195,  4305,  4428,  4563,  4678,  4781,
           4919,  5039,  5168,  5286,  5400,  5527,  5643,  5751,  5875,
           5994]]),
  'start': 950412},
 'ZKawakeM72_010_b_979474': {'mouse': 'ZKawakeM72',
  'odor': 'ethyl_tiglate',
  'odor_c': 0.00013000000035390258,
  'odor_t': array([ 338, 3338]),
  'rec': 'b',
  'rec_id': 'ZKawakeM72_010_b',
  'sess': 10,
  'sniff_flow': array([  560.,   558.,   556., ..., -3161., -3152., -3150.]),
  'sniff_zero': array([[-5298, -4802, -4321, -3850, -3371, -2880, -2396, -1930, -1456,
           -988,  -499,     0,   377,   865,  1363,  1902,  2444,  2989,
           3524,  4039,  4475,  4941,  5429,  5872],
         [-5172, -4682, -4205, -3722, -3242, -2755, -2267, -1804, -1327,
           -863,  -380,   121,   454,   978,  1483,  2029,  2578,  3125,
           3667,  4173,  4613,  5075,  5562,  6003]]),
  'start': 979274}}

In [201]:
for stim in all_odors.itervalues():
    print stim
    print '--'
    for value in (stim.responses.itervalues()):
            print value.rec['meta'] ['u_id'] + ' - ' + value.rec['meta'] ['id']


<analysis.stimulus.Stimulus instance at 0x7fa535025c20>
--
ZKawakeM72_006_001 - ZKawakeM72_006_a_001
KPawakeM72_016_018 - KPawakeM72_016_a_018
KPawakeM72_016_016 - KPawakeM72_016_a_016
ZKawakeM72_013_011 - ZKawakeM72_013_e_011
ZKawakeM72_013_010 - ZKawakeM72_013_e_010
ZKawakeM72_012_001 - ZKawakeM72_012_a_001
ZKawakeM72_012_002 - ZKawakeM72_012_a_002
KPawakeM72_014_012 - KPawakeM72_014_b_012
ZKawakeM72_011_001 - ZKawakeM72_011_d_001
ZKawakeM72_005_001 - ZKawakeM72_005_a_001
ZKawakeM72_010_001 - ZKawakeM72_010_b_001
<analysis.stimulus.Stimulus instance at 0x7fa534482758>
--
ZKawakeM72_013_010 - ZKawakeM72_013_f_010
ZKawakeM72_006_001 - ZKawakeM72_006_a_001
KPawakeM72_014_012 - KPawakeM72_014_b_012
KPawakeM72_016_018 - KPawakeM72_016_a_018
KPawakeM72_016_016 - KPawakeM72_016_a_016
ZKawakeM72_004_001 - ZKawakeM72_004_i_001
ZKawakeM72_004_002 - ZKawakeM72_004_i_002
<analysis.stimulus.Stimulus instance at 0x7fa525d48830>
--
ZKawakeM72_027_004 - ZKawakeM72_027_d_004
KPawakeM72_817_001 - KPawakeM72_817_f_001
ZKawakeM72_006_001 - ZKawakeM72_006_a_001
ZKawakeM72_020_014 - ZKawakeM72_020_f_014
KPawakeM72_016_016 - KPawakeM72_016_a_016
KPawakeM72_019_002 - KPawakeM72_019_b_002
KPawakeM72_021_001 - KPawakeM72_021_b_001
ZKawakeM72_012_001 - ZKawakeM72_012_a_001
ZKawakeM72_005_001 - ZKawakeM72_005_a_001
ZKawakeM72_012_002 - ZKawakeM72_012_a_002
KPawakeM72_014_012 - KPawakeM72_014_b_012
ZKawakeM72_011_001 - ZKawakeM72_011_d_001
ZKawakeM72_029_002 - ZKawakeM72_029_a_002
KPawakeM72_019_002 - KPawakeM72_019_d_002
ZKawakeM72_020_001 - ZKawakeM72_020_d_001
KPawakeM72_023_005 - KPawakeM72_023_a_005
KPawakeM72_016_018 - KPawakeM72_016_a_018
ZKawakeM72_004_001 - ZKawakeM72_004_h_001
ZKawakeM72_013_011 - ZKawakeM72_013_e_011
ZKawakeM72_013_010 - ZKawakeM72_013_e_010
ZKawakeM72_020_001 - ZKawakeM72_020_g_001
ZKawakeM72_020_001 - ZKawakeM72_020_e_001
ZKawakeM72_015_001 - ZKawakeM72_015_d_001
ZKawakeM72_022_001 - ZKawakeM72_022_d_001
ZKawakeM72_020_001 - ZKawakeM72_020_c_001
ZKawakeM72_004_002 - ZKawakeM72_004_h_002
ZKawakeM72_010_001 - ZKawakeM72_010_b_001
<analysis.stimulus.Stimulus instance at 0x7fa533b49fc8>
--
ZKawakeM72_027_004 - ZKawakeM72_027_d_004
KPawakeM72_817_001 - KPawakeM72_817_f_001
KPawakeM72_023_005 - KPawakeM72_023_a_005
KPawakeM72_024_002 - KPawakeM72_024_c_002
KPawakeM72_019_002 - KPawakeM72_019_b_002
KPawakeM72_021_001 - KPawakeM72_021_b_001
ZKawakeM72_020_001 - ZKawakeM72_020_g_001
KPawakeM72_021_001 - KPawakeM72_021_a_001
ZKawakeM72_015_001 - ZKawakeM72_015_d_001
ZKawakeM72_020_001 - ZKawakeM72_020_d_001
ZKawakeM72_029_002 - ZKawakeM72_029_a_002
<analysis.stimulus.Stimulus instance at 0x7fa5336419e0>
--
ZKawakeM72_006_001 - ZKawakeM72_006_a_001
KPawakeM72_016_018 - KPawakeM72_016_a_018
KPawakeM72_016_016 - KPawakeM72_016_a_016
ZKawakeM72_013_011 - ZKawakeM72_013_e_011
ZKawakeM72_013_010 - ZKawakeM72_013_e_010
ZKawakeM72_012_001 - ZKawakeM72_012_a_001
ZKawakeM72_004_001 - ZKawakeM72_004_h_001
ZKawakeM72_012_002 - ZKawakeM72_012_a_002
KPawakeM72_014_012 - KPawakeM72_014_b_012
ZKawakeM72_011_001 - ZKawakeM72_011_d_001
ZKawakeM72_005_001 - ZKawakeM72_005_a_001
ZKawakeM72_004_002 - ZKawakeM72_004_h_002
ZKawakeM72_010_001 - ZKawakeM72_010_b_001
<analysis.stimulus.Stimulus instance at 0x7fa5353dcb90>
--
ZKawakeM72_013_010 - ZKawakeM72_013_f_010
ZKawakeM72_006_001 - ZKawakeM72_006_a_001
KPawakeM72_014_012 - KPawakeM72_014_b_012
KPawakeM72_016_018 - KPawakeM72_016_a_018
KPawakeM72_016_016 - KPawakeM72_016_a_016
ZKawakeM72_004_001 - ZKawakeM72_004_i_001
ZKawakeM72_004_002 - ZKawakeM72_004_i_002
ZKawakeM72_010_001 - ZKawakeM72_010_c_001
<analysis.stimulus.Stimulus instance at 0x7fa5357ec200>
--
ZKawakeM72_027_004 - ZKawakeM72_027_d_004
KPawakeM72_817_001 - KPawakeM72_817_f_001
KPawakeM72_023_005 - KPawakeM72_023_a_005
ZKawakeM72_020_001 - ZKawakeM72_020_g_001
KPawakeM72_024_002 - KPawakeM72_024_c_002
KPawakeM72_019_002 - KPawakeM72_019_b_002
ZKawakeM72_020_001 - ZKawakeM72_020_d_001
KPawakeM72_021_001 - KPawakeM72_021_b_001
<analysis.stimulus.Stimulus instance at 0x7fa535950cf8>
--
KPawakeM72_019_002 - KPawakeM72_019_d_002
KPawakeM72_021_001 - KPawakeM72_021_a_001
ZKawakeM72_020_001 - ZKawakeM72_020_e_001
KPawakeM72_023_005 - KPawakeM72_023_a_005
ZKawakeM72_027_004 - ZKawakeM72_027_e_004
ZKawakeM72_022_001 - ZKawakeM72_022_d_001
ZKawakeM72_020_001 - ZKawakeM72_020_c_001
KPawakeM72_024_002 - KPawakeM72_024_b_002
KPawakeM72_024_001 - KPawakeM72_024_a_001
<analysis.stimulus.Stimulus instance at 0x7fa530b43b48>
--
KPawakeM72_817_001 - KPawakeM72_817_f_001
ZKawakeM72_006_001 - ZKawakeM72_006_a_001
KPawakeM72_016_018 - KPawakeM72_016_a_018
KPawakeM72_016_016 - KPawakeM72_016_a_016
KPawakeM72_019_002 - KPawakeM72_019_b_002
KPawakeM72_021_001 - KPawakeM72_021_b_001
KPawakeM72_024_001 - KPawakeM72_024_a_001
ZKawakeM72_012_001 - ZKawakeM72_012_a_001
ZKawakeM72_005_001 - ZKawakeM72_005_a_001
KPawakeM72_021_001 - KPawakeM72_021_a_001
ZKawakeM72_012_002 - ZKawakeM72_012_a_002
KPawakeM72_014_012 - KPawakeM72_014_b_012
ZKawakeM72_011_001 - ZKawakeM72_011_d_001
KPawakeM72_024_002 - KPawakeM72_024_b_002
ZKawakeM72_020_001 - ZKawakeM72_020_g_001
KPawakeM72_019_002 - KPawakeM72_019_d_002
ZKawakeM72_020_001 - ZKawakeM72_020_d_001
KPawakeM72_023_005 - KPawakeM72_023_a_005
ZKawakeM72_004_001 - ZKawakeM72_004_i_001
ZKawakeM72_004_002 - ZKawakeM72_004_i_002
ZKawakeM72_004_001 - ZKawakeM72_004_h_001
ZKawakeM72_013_011 - ZKawakeM72_013_e_011
ZKawakeM72_013_010 - ZKawakeM72_013_e_010
ZKawakeM72_013_010 - ZKawakeM72_013_f_010
ZKawakeM72_027_004 - ZKawakeM72_027_e_004
ZKawakeM72_020_001 - ZKawakeM72_020_e_001
ZKawakeM72_015_001 - ZKawakeM72_015_d_001
ZKawakeM72_022_001 - ZKawakeM72_022_d_001
ZKawakeM72_020_001 - ZKawakeM72_020_c_001
ZKawakeM72_004_002 - ZKawakeM72_004_h_002
ZKawakeM72_010_001 - ZKawakeM72_010_b_001
<analysis.stimulus.Stimulus instance at 0x7fa534c2da70>
--
ZKawakeM72_027_004 - ZKawakeM72_027_e_004
KPawakeM72_021_001 - KPawakeM72_021_a_001
ZKawakeM72_020_001 - ZKawakeM72_020_e_001
KPawakeM72_023_005 - KPawakeM72_023_a_005
KPawakeM72_024_002 - KPawakeM72_024_b_002
ZKawakeM72_004_001 - ZKawakeM72_004_h_001
ZKawakeM72_020_001 - ZKawakeM72_020_c_001
ZKawakeM72_004_002 - ZKawakeM72_004_h_002
KPawakeM72_024_001 - KPawakeM72_024_a_001
<analysis.stimulus.Stimulus instance at 0x7fa525cd4a28>
--
ZKawakeM72_013_010 - ZKawakeM72_013_f_010
ZKawakeM72_006_001 - ZKawakeM72_006_a_001
KPawakeM72_014_012 - KPawakeM72_014_b_012
KPawakeM72_016_018 - KPawakeM72_016_a_018
KPawakeM72_016_016 - KPawakeM72_016_a_016
ZKawakeM72_004_001 - ZKawakeM72_004_i_001
ZKawakeM72_004_002 - ZKawakeM72_004_i_002

In [5]:
import statsmodels.robust.scale as stat
import scipy.stats as stat2

def merge_responses(responses):
    new_responses = {}
    cells_set = set([value.rec['meta']['u_id'] for value in responses.itervalues()])
    print cells_set
    
    #for every cell in the set find and merge all the responsive records 
    for u_id in cells_set:
        #get the list of cells with that u_id
        this_set = {u_id : [r for r in responses.itervalues() if r.rec['meta']['u_id']==u_id]}
        new_responses.update(this_set)
    
    return new_responses

t_post = 400
warped = False

def make_raster(cell_response, t_pre=200, t_post=t_post, warped=warped):
    
    raster = cell_response[0].make_raster(t_pre=t_pre, t_post=t_post, warped=warped)
    base_raster = cell_response[0].baseline.make_raster(t_pre=t_pre, t_post=t_post, warped=warped)
    
    for r in cell_response[1:]:
        raster = np.vstack((raster, r.make_raster(t_pre=t_pre, t_post=t_post, warped=warped)))
        base_raster = np.vstack((base_raster, r.baseline.make_raster(t_pre=t_pre, t_post=t_post, warped=warped)))
    return raster, base_raster

def get_sniff_parameters(cell_response):
    nr = len(cell_response)
    stim_stat = np.zeros(nr + 1, dtype=[('id', '|S32'),
                                        ('inh_min','i4'), ('inh_max', 'i4'), ('inh_median', 'i4'),
                                        ('inh_mean', 'i4'), ('inh_sd', 'i4'), ('inh_mad', 'i4'),
                                        ('exh_min','i4'), ('exh_max', 'i4'), ('exh_median', 'i4'),
                                        ('exh_mean', 'i4'), ('exh_sd', 'i4'), ('exh_mad', 'i4'),
                                        ('n','i4')
                                       ]
                       )
    for i, cr in zip(range(nr), cell_response):
        sniff = np.sort(cr.baseline.sniff_data, order=['inh_len', 't_0'])
        print i
        stim_stat[i]['id'] = cr.rec['meta']['id']
        stim_stat[i]['n'] = sniff.shape[0]
        
        stim_stat[i]['inh_min'] = np.nanmin(sniff['inh_len'])
        stim_stat[i]['inh_max'] = np.nanmax(sniff['inh_len'])
        stim_stat[i]['inh_median'] = int(np.nanmedian(sniff['inh_len']))
        stim_stat[i]['inh_mean'] = int(np.nanmean(sniff['inh_len']))
        stim_stat[i]['inh_sd'] = int(np.nanstd(sniff['inh_len']))
        stim_stat[i]['inh_mad'] = int(stat.mad(sniff['inh_len']))
        
        stim_stat[i]['exh_min'] = np.nanmin(sniff['exh_len'])
        stim_stat[i]['exh_max'] = np.nanmax(sniff['exh_len'])
        stim_stat[i]['exh_median'] = int(np.nanmedian(sniff['exh_len']))
        stim_stat[i]['exh_mean'] = int(np.nanmean(sniff['exh_len']))
        stim_stat[i]['exh_sd'] = int(np.nanstd(sniff['exh_len']))
        stim_stat[i]['exh_mad'] = int(stat.mad(sniff['exh_len'], c=1))
    
    stim_stat[nr]['id'] = 'all'
    stim_stat[nr]['inh_min'] = np.min(stim_stat[0:-1]['inh_min'])
    stim_stat[nr]['exh_min'] = np.min(stim_stat[0:-1]['exh_min'])
    
    stim_stat[nr]['inh_max'] = np.min(stim_stat[0:-1]['inh_max'])
    stim_stat[nr]['exh_max'] = np.min(stim_stat[0:-1]['exh_max'])
    
    stim_stat[nr]['inh_median'] = int(np.mean(stim_stat[0:-1]['inh_median']))
    stim_stat[nr]['exh_median'] = int(np.mean(stim_stat[0:-1]['exh_median']))
    stim_stat[nr]['inh_mean'] = int(np.mean(stim_stat[0:-1]['inh_mean']))
    stim_stat[nr]['exh_mean'] = int(np.mean(stim_stat[0:-1]['exh_mean']))
    stim_stat[nr]['inh_sd'] = int(np.mean(stim_stat[0:-1]['inh_sd']))
    stim_stat[nr]['exh_sd'] = int(np.mean(stim_stat[0:-1]['exh_sd']))
    stim_stat[nr]['inh_mad'] = int(np.mean(stim_stat[0:-1]['inh_mad']))
    stim_stat[nr]['exh_mad'] = int(np.mean(stim_stat[0:-1]['exh_mad']))
    return stim_stat

def is_good_sniff(one_sniff, sniff_stats):
    
    if one_sniff is None:
        inh_max = sniff_stats[-1]['inh_median'] + 1.5*sniff_stats[-1]['inh_sd']
        exh_max = sniff_stats[-1]['exh_median'] + 1.5*sniff_stats[-1]['exh_sd']
        return inh_max, exh_max
    
    inh_min = sniff_stats[-1]['inh_median'] - 1.5*sniff_stats[-1]['inh_sd']
    inh_max = sniff_stats[-1]['inh_median'] + 1.5*sniff_stats[-1]['inh_sd']
    is_good = True
    
    if one_sniff['inh_len'] < inh_min or one_sniff['inh_len'] > inh_max:
        is_good = False
    else:
        exh_min = sniff_stats[-1]['exh_median'] - 1.5*sniff_stats[-1]['exh_sd']
        exh_max = sniff_stats[-1]['exh_median'] + 1.5*sniff_stats[-1]['exh_sd']
        if one_sniff['exh_len'] < exh_min or one_sniff['exh_len'] > exh_max:
            is_good = True
            
    return is_good
        
    


cell_responses = merge_responses(stim.responses)
sniff_par = get_sniff_parameters(cell_responses['ZKawakeM72_013_010'])


set(['ZKawakeM72_013_011', 'ZKawakeM72_013_010'])
0
1

In [6]:
stim = all_odor_responses['litral']['2-hydroxy_high']

cell_responses['ZKawakeM72_013_010']


Out[6]:
[<analysis.stimulus.Response instance at 0x7fb8e9cfa200>,
 <analysis.stimulus.Response instance at 0x7fb8e9cfa4d0>]

In [392]:
print sniff_par['inh_median']
print sniff_par['exh_median']


[179 148 163]
[347 325 336]

In [463]:
print sniff[2500]['inh_len']  
print sniff[2500]['exh_len']
is_good_sniff(sniff[2500], sniff_par)


214
391
59.5
266.5
129.0
543.0
391
Out[463]:
True

In [457]:
sniff_par[-1]['exh_sd']


Out[457]:
138

In [401]:
sniff = np.sort(cr.baseline.sniff_data, order=['inh_len', 't_0'])
print np.mean(sniff['inh_len'])
stat.mad(sniff['inh_len'])


125.237698713
Out[401]:
219.4251283388291

In [281]:
rast3, base3 = make_raster(cell_responses['ZKawakeM72_013_010'])
plot_raster(rast3)
plot_raster(rast3, bin_size=10)
plot_raster(base3)
plot_raster(base3, bin_size=10)


Out[281]:
([<matplotlib.lines.Line2D at 0x7fa52459bf90>],
 <matplotlib.axes._axes.Axes at 0x7fa52b012f10>)

In [278]:
r2 = cell_responses['ZKawakeM72_013_010'][0]
r2.baseline.make_raster()


Out[278]:
array([[ 0.,  0.,  0., ...,  0.,  0.,  0.],
       [ 0.,  0.,  0., ...,  0.,  0.,  0.],
       [ 0.,  0.,  0., ...,  0.,  0.,  0.],
       ..., 
       [ 0.,  0.,  0., ...,  0.,  0.,  0.],
       [ 0.,  0.,  0., ...,  0.,  0.,  0.],
       [ 0.,  0.,  0., ...,  1.,  0.,  0.]])

In [319]:
for i, cr in zip(range(2), stim.responses.itervalues()):
    print i
    print cr.rec['meta']['id']


0
KPawakeM72_817_f_001
1
ZKawakeM72_006_a_001

In [310]:
sniff = np.sort(cr.baseline.sniff_data, order=['inh_len', 't_0'])
int(np.nanstd(sniff['inh_len']))


Out[310]:
71

In [308]:
stim_stat = np.zeros(2, dtype=[('rec', '|S32'), ('x', 'i4')])
stim_stat['x']


Out[308]:
array([0, 0], dtype=int32)

In [317]:
stim.responses


Out[317]:
{'KPawakeM72_014_b_012': <analysis.stimulus.Response instance at 0x7fa50048fb48>,
 'KPawakeM72_016_a_016': <analysis.stimulus.Response instance at 0x7fa530b43830>,
 'KPawakeM72_016_a_018': <analysis.stimulus.Response instance at 0x7fa530b43758>,
 'KPawakeM72_019_b_002': <analysis.stimulus.Response instance at 0x7fa530b43488>,
 'KPawakeM72_019_d_002': <analysis.stimulus.Response instance at 0x7fa4fe3ae2d8>,
 'KPawakeM72_021_a_001': <analysis.stimulus.Response instance at 0x7fa50048f5a8>,
 'KPawakeM72_021_b_001': <analysis.stimulus.Response instance at 0x7fa530b43560>,
 'KPawakeM72_023_a_005': <analysis.stimulus.Response instance at 0x7fa4f9abfe60>,
 'KPawakeM72_024_a_001': <analysis.stimulus.Response instance at 0x7fa530b43320>,
 'KPawakeM72_024_b_002': <analysis.stimulus.Response instance at 0x7fa50048f368>,
 'KPawakeM72_817_f_001': <analysis.stimulus.Response instance at 0x7fa530b43f38>,
 'ZKawakeM72_004_h_001': <analysis.stimulus.Response instance at 0x7fa535025878>,
 'ZKawakeM72_004_h_002': <analysis.stimulus.Response instance at 0x7fa5350253b0>,
 'ZKawakeM72_004_i_001': <analysis.stimulus.Response instance at 0x7fa535fa93b0>,
 'ZKawakeM72_004_i_002': <analysis.stimulus.Response instance at 0x7fa535fa9e60>,
 'ZKawakeM72_005_a_001': <analysis.stimulus.Response instance at 0x7fa530b43b00>,
 'ZKawakeM72_006_a_001': <analysis.stimulus.Response instance at 0x7fa530b43a28>,
 'ZKawakeM72_010_b_001': <analysis.stimulus.Response instance at 0x7fa535025a70>,
 'ZKawakeM72_011_d_001': <analysis.stimulus.Response instance at 0x7fa50048f998>,
 'ZKawakeM72_012_a_001': <analysis.stimulus.Response instance at 0x7fa530b43128>,
 'ZKawakeM72_012_a_002': <analysis.stimulus.Response instance at 0x7fa50048f098>,
 'ZKawakeM72_013_e_010': <analysis.stimulus.Response instance at 0x7fa535fa9638>,
 'ZKawakeM72_013_e_011': <analysis.stimulus.Response instance at 0x7fa535fa9cb0>,
 'ZKawakeM72_013_f_010': <analysis.stimulus.Response instance at 0x7fa535fa9710>,
 'ZKawakeM72_015_d_001': <analysis.stimulus.Response instance at 0x7fa535fa9a70>,
 'ZKawakeM72_020_c_001': <analysis.stimulus.Response instance at 0x7fa535025200>,
 'ZKawakeM72_020_d_001': <analysis.stimulus.Response instance at 0x7fa4fe3aec68>,
 'ZKawakeM72_020_e_001': <analysis.stimulus.Response instance at 0x7fa535fa9e18>,
 'ZKawakeM72_020_g_001': <analysis.stimulus.Response instance at 0x7fa4fe3ae248>,
 'ZKawakeM72_022_d_001': <analysis.stimulus.Response instance at 0x7fa50048fbd8>,
 'ZKawakeM72_027_e_004': <analysis.stimulus.Response instance at 0x7fa535fa99e0>}

In [468]:
a=[]
len(a)==0


Out[468]:
True

In [475]:
aux_sniff = np.zeros(1, dtype=[('inh_len', 'i4'), ('exh_len', 'i4')])

In [477]:
aux_sniff[0]['inh_len']


Out[477]:
0

In [ ]: