This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import pandas as pd | |
import numpy as np | |
from bokeh.plotting import figure | |
from bokeh.models import ColumnDataSource | |
from bokeh.io import curdoc | |
from bokeh.layouts import row, widgetbox | |
from bokeh.models.widgets import Select, Slider, TextInput | |
from bokeh.models import HoverTool, CustomJS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import os | |
import sys | |
DIR=sys.argv[1] | |
times = [] | |
for fn in os.listdir(DIR): | |
path = os.path.join(DIR, fn) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [ feavec, feanames ] = roi_features ( roi_url ) | |
[dir, file, ~] = fileparts(roi_url); | |
roi_url = [dir '/' file]; | |
roi_metadata = webread([roi_url '.json']); | |
bin_url = roi_metadata.binID; | |
roi_number = roi_metadata.targetNumber; | |
features_url = [bin_url '_features.csv']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "joefutrelle/ifcb-dashboard" | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory="2048" | |
end | |
config.vm.network :forwarded_port, host: 8888, guest: 8888 | |
config.vm.provision :shell, inline: <<-SHELL | |
SHELL | |
config.vm.provision :shell, run: "always", inline: <<-SHELL | |
curl -s http://localhost:8888/ > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:jessie | |
RUN apt-get update | |
RUN apt-get install -y libnetcdf-dev libssl-dev software-properties-common libcurl4-openssl-dev | |
RUN apt-key adv --keyserver keys.gnupg.net --recv-key 6212B7B7931C4BB16280BA1306F90DE5381BA480 | |
RUN add-apt-repository 'deb http://cran.rstudio.com/bin/linux/debian jessie-cran3/' | |
RUN apt-get update | |
RUN apt-get install -y r-base | |
WORKDIR / | |
ADD installLobstahsDeps.r . | |
RUN R -f installLobstahsDeps.r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import numpy as np | |
import random | |
import pandas as pd | |
# construct fake dataframe | |
then = datetime.datetime.utcnow() | |
n_times = 2 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import numpy as np | |
import pandas as pd | |
import json | |
import datetime | |
from pocean.dsg.timeseries.om import OrthogonalMultidimensionalTimeseries | |
def from_xdata(j): | |
df = pd.DataFrame(j) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:trusty | |
RUN apt-get -y update | |
RUN apt-get -y install python-pip git | |
RUN pip install functools32 | |
RUN apt-get -y install python-scipy python-pandas python-h5py python-requests python-Pillow | |
WORKDIR / | |
RUN git clone https://github.com/joefutrelle/pyifcb.git | |
WORKDIR /pyifcb | |
CMD git pull && python -m unittest discover |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.