Skip to content

Instantly share code, notes, and snippets.

View michaelaye's full-sized avatar

Michael Aye michaelaye

View GitHub Profile
@michaelaye
michaelaye / status_checker.py
Created July 16, 2013 06:22
Little script to find out how many of my hour files have been processed to create updated calibrated files, per channel.
#!/usr/bin/env python
from __future__ import division, print_function
from diviner.divtweet import * # imports api handle
import os, glob, sys
from diviner import file_utils as fu
import time
def get_percent_done(timestr, mode):
"""check how many files have been processed and tweet status regularly.
@michaelaye
michaelaye / KML generate notebook
Last active December 20, 2015 05:09
Notebook showing how I generate a KML polygon with pykml and some self-coded pds label tools.
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "store closing buggy"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@michaelaye
michaelaye / gist:7149023
Created October 25, 2013 03:26
Showing a problem storing a 2 column pandas DataFrame into a HDFstore by appending it.
{
"metadata": {
"name": "search for stowed"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@michaelaye
michaelaye / gist:7208717
Created October 29, 2013 03:18
Showing some weird DataFrame.head() behavior.
{
"metadata": {
"name": "T to Rad data import"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@michaelaye
michaelaye / correlation.ipynb
Last active December 27, 2015 13:09
IPython notebook analyzing the efficacy and efficiency of correlation calculations for identifying simultaneous noise events.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@michaelaye
michaelaye / kmaplot.py
Last active December 28, 2015 04:09
Putting things I learned from Jake about interactive MPL into action. Combining line, color, marker-size and -edgewidth control with picking events to restrain the control to the picked artist.
import matplotlib.pyplot as plt
import sys
class Plotter(object):
"""MPL Interactivity wrapper.
* Linewidths and markersize can be controlled by digits
* Colors can be controlled with 'rGbcymK' letters. (Both learned from Jake
VanderPlas' MPL tutorial) Capital letters to avoid clash with MPL built-in
interactivity ('g' for grid toggle, 'k' for log-x toggle)
@michaelaye
michaelaye / brew_doctor_out.txt
Created November 25, 2013 19:03
homebrew glibmm update link failure
Your system is ready to brew.
@michaelaye
michaelaye / sensor_data.ipynb
Created November 25, 2013 20:08
BELA sensor data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@michaelaye
michaelaye / gist:7685834
Created November 28, 2013 01:12
pandas set_index bug
{
"metadata": {
"name": "set_index bug"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{