-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path__init__.py
41 lines (33 loc) · 1.34 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""WhiskiWrap provides tools for efficiently running whisk.
This module contains the following sub-modules:
base - The basic functions for interacting with whisk. Everything is
imported from base into the main WhiskiWrap namespace.
tests - Benchmarks for running whiski
utils - utility functions for dealing with files and programs on the
system
video_utils - functions for dealing with video files, usually via
system calls to ffmpeg
To read Photonfocus double-rate files, you need to install libpfdoublerate
This requires libboost_thread 1.50 to be installed to /usr/local/lib
And the libpfDoubleRate.so in this module's directory
Here is an example workflow:
import WhiskiWrap
import tables
# Run the benchmarks
test_results, durations = WhiskiWrap.tests.run_standard_benchmarks()
# Run on data
WhiskiWrap.pipeline_trace(
input_video_filename='my_input_video.mp4',
output_hdf5_filename='traced_whiskers.hdf5',
chunk_sz_frames=300, epoch_sz_frames=3000, frame_start=0, frame_stop=6000,
n_trace_processes=4)
# Load the results of that analysis
with tables.open_file('traced_whiskers.hdf5') as fi:
test_results = pandas.DataFrame.from_records(fi.root.summary.read())
"""
from __future__ import absolute_import
from . import base
from . import tests
#import video_utils
from . import utils
from .base import *