Skip to content

Instantly share code, notes, and snippets.

View JimHokanson's full-sized avatar

Jim Hokanson JimHokanson

View GitHub Profile
@JimHokanson
JimHokanson / deference_hdf5
Created September 3, 2013 06:34
A simple example trying to walk through dereferencing of a Matlab structure array in Python
#ViewWormMovement
import matplotlib.pyplot as plt
import h5py
file_path = u'F:/worm_data/segworm_data/features/798 JU258 on food R_2010_11_25__16_34_17___1___9_features.mat'
h = h5py.File(file_path, 'r')
#dv - Distance Value
@JimHokanson
JimHokanson / load_data_test_v2.py
Created June 25, 2013 06:15
Rough version of FTP calls for retrieving tracker data. Need to add on saving code and check possible change to change directory call.
try:
import cPickle as pickle
except:
import pickle
from ftplib import FTP
import re
import time #For modification time parsing
#For later