<commit_before>"""
The dataset is here http://www.kampff-lab.org/validating-electrodes/

You have to download 2015_09_03_Cell9.0 and put files
somewhere on your machine.

Them change working_dir = ... to the correct path

"""
from tridesclous import *
import pyqtgraph as pg

import os
from urllib.request import urlretrieve
import time

from matplotlib import pyplot


# !!!!!!!! change the working dir here
#working_dir = '/home/samuel/Documents/projet/DataSpikeSorting/kampff/'
working_dir = '/media/samuel/SamCNRS/DataSpikeSorting/kampff/'


dirname= working_dir+'tdc_2015_09_09_Pair_6_0'


 
def initialize_catalogueconstructor():
    #setup file source
    filename = working_dir+'2015_09_09_Pair_6_0/'+'amplifier2015-09-09T17_46_43.bin'
    print(filename)
    dataio = DataIO(dirname=dirname)
    dataio.set_data_source(type='RawData', filenames=[filename], dtype='uint16',<commit_msg>Minor touchup in a sample example I opened<commit_after>"""
The dataset is here http://www.kampff-lab.org/validating-electrodes/

You have to download 2015_09_03_Cell9.0 and put files
somewhere on your machine.

Then change working_dir = ... to the correct path

"""
from tridesclous import *
import pyqtgraph as pg

import os
from urllib.request import urlretrieve
import time

from matplotlib import pyplot


# !!!!!!!! change the working dir here
#working_dir = '/home/samuel/Documents/projet/DataSpikeSorting/kampff/'
working_dir = '/media/samuel/SamCNRS/DataSpikeSorting/kampff/'


dirname = working_dir+'tdc_2015_09_09_Pair_6_0'


 
def initialize_catalogueconstructor():
    #setup file source
    filename = working_dir+'2015_09_09_Pair_6_0/'+'amplifier2015-09-09T17_46_43.bin'
    print(filename)
    dataio = DataIO(dirname=dirname)
    dataio.set_data_source(type='RawData', filenames=[filename], dtype='uint16',
{'fraction_non_alphanumeric': 0.10352422907488987, 'fraction_numerical': 0.05066079295154185, 'mean_word_length': 5.201365187713311, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4718317', 'n_tokens_mistral': 675, 'n_tokens_neox': 614, 'n_words': 142}