Skip to content

Instantly share code, notes, and snippets.

View joefutrelle's full-sized avatar

Joe Futrelle joefutrelle

  • Falmouth, MA
View GitHub Profile
@joefutrelle
joefutrelle / MBVL bacteria vs diatom abundance prototype.ipynb
Created October 19, 2016 15:05
MBVL bacteria vs diatom abundance prototype
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joefutrelle
joefutrelle / MBVL manual diatom abundance.ipynb
Last active September 29, 2016 19:37
MBVL example use case
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joefutrelle
joefutrelle / bwmorph_thin_skel_pep8.diff
Created September 15, 2016 16:35
skimage thin PR pep8 diff
diff --git a/skimage/morphology/_skeletonize.py b/skimage/morphology/_skeletonize.py
index 60bd495..5ea2131 100644
--- a/skimage/morphology/_skeletonize.py
+++ b/skimage/morphology/_skeletonize.py
@@ -9,6 +9,7 @@ from ._skeletonize_cy import _fast_skeletonize, _skeletonize_loop, _table_lookup
# --------- Skeletonization by morphological thinning ---------
+
def skeletonize(image):
@joefutrelle
joefutrelle / multiproc abundance.ipynb
Created August 19, 2016 21:06
Compute abundance time series from IFCB data (prototype)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joefutrelle
joefutrelle / read ml analyzed from Google Drive.ipynb
Created August 12, 2016 20:41
read IFCB ml_analyzed from Google Drive
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joefutrelle
joefutrelle / flow_metric.py
Last active August 12, 2016 20:35
IFCB flow metric
import requests
import csv
import numpy as np
from numpy import random
from numpy.linalg import eig
from scipy import stats, signal, optimize
from scipy.spatial.distance import cdist, euclidean
def get_xy(pid):
pos_url='http://ifcb-data.whoi.edu/mvco/api/plot/x/bottom/y/left/pid/%s' % pid
@joefutrelle
joefutrelle / example pandas plot.ipynb
Created August 12, 2016 14:13
Example Pandas plotting
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joefutrelle
joefutrelle / Vagrantfile.rb
Created August 11, 2016 19:54
example shared folder config from windows to linux in Vagrantfile / VirtualBox
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
vb.memory="2048"
vb.cpus="4"
end
config.vm.synced_folder "d:/work", "/mnt/dwork"
config.vm.provision :shell, inline: <<-SHELL
SHELL
end
@joefutrelle
joefutrelle / basic multiprocessing.ipynb
Created August 10, 2016 15:23
Introduction to multiprocessing in iPython notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.