Skip to content

Instantly share code, notes, and snippets.

View taldcroft's full-sized avatar

Tom Aldcroft taldcroft

View GitHub Profile
@taldcroft
taldcroft / curve_fit.ipynb
Last active June 7, 2018 14:24
Investigating `scipy.optimize.curve_fit` covariance output
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taldcroft
taldcroft / calc_agn.ipynb
Last active December 12, 2015 09:29
Calculate contaminating AGN in CygOB2 survey
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taldcroft
taldcroft / test_asciitable_format.ipynb
Last active December 12, 2015 08:09
Example of writing a Table object to an ASCII file and reading it back with no loss of metadata
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taldcroft
taldcroft / ACE_ratios.ipynb
Last active December 12, 2015 05:48
Ratio of ACE channels investigation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taldcroft
taldcroft / test_new_col.ipynb
Created February 4, 2013 22:08
Test auto-creation of new columns in astropy.table
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taldcroft
taldcroft / binop.py
Created January 25, 2013 15:13
Expression evaluation
import operator
class Query(object):
def __init__(self, name, val=None, left=None, right=None, op=None):
self.name = name
self.val = val
self.left = left
self.right = right
self.op = op
@taldcroft
taldcroft / idl_python_jug.ipynb
Last active December 11, 2015 10:29
IDL Python Jugalbandi
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taldcroft
taldcroft / header_chars.py
Created July 30, 2012 18:32
Find header character sets used in a list of RST files
#!/usr/bin/env python
"""
Find the sets of characters used in RST section headers. For input like
::
##########
header
##########
Section
@taldcroft
taldcroft / embed_gtk.py
Created May 21, 2012 01:47
embed gtk in matplotlib example
import gtk
import numpy as np
from matplotlib.figure import Figure
from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg
win = gtk.Window()
win.connect("destroy", lambda x: gtk.main_quit())
win.set_default_size(400,300)