Skip to content

Instantly share code, notes, and snippets.

View taldcroft's full-sized avatar

Tom Aldcroft taldcroft

View GitHub Profile
# Example - Generating the Dataframe and Panel objects - pulled from pyger_cases.py
#
# The code below was pieced together from snippets in pyger_cases.py and was not fully tested.
# Testing is not entirely possible since some of it is fictitious to simplify the example.
#
# The dictionary values, pitch_set, hot_max, hot90, and cool90 are one dimensional numpy arrays
# representing heating and cooling data for one case (i.e. set of conditions). Each case is designed
# to limit the dwell time for one msid. For example, a set of cases would be used to represent the
# dwell capability for each msid at their current planning limit along with a common number of ACIS
# CCDs (where applicable).
pkg-config is not installed, falling back to pykg-config
/Users/aldcroft/anaconda/envs/test-healpy/lib/python2.7/site-packages/setuptools-11.3.1-py2.7.egg/pkg_resources/__init__.py:2510: PEP440Warning: 'pykg (config-1.2.0)' is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions.
/Users/aldcroft/anaconda/envs/test-healpy/lib/python2.7/site-packages/setuptools-11.3.1-py2.7.egg/pkg_resources/__init__.py:2510: PEP440Warning: 'pykg (config-1.3.0)' is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions.
zip_safe flag not set; analyzing archive contents...
Installed /Users/aldcroft/git/healpy/.eggs/pykg_config-1.3.0-py2.7.egg
running build
running build_py
creating build
creating build/lib.macosx-10.5-x86_64-2.7
@taldcroft
taldcroft / stars_2015_006.ipynb
Last active August 29, 2015 14:13
Course attitude solution
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.
{
"metadata": {
"name": "",
"signature": "sha256:00712bbf2a64d56e5d07362ce693e74ed5bc8e4b44e998b88877b025aa4234d7"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@taldcroft
taldcroft / table-mixin.ipynb
Last active August 29, 2015 14:07
Demo of astropy table mixin columns and Quantity support
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
(astropy)neptune$ asv compare b73ad509 84089dbb --machine=neptune.local
All benchmarks:
before after ratio
[b73ad509] [84089dbb]
- 3.41ms 896.00μs 0.26 time_table.TimeMaskedTable.time_add_column
+ 2.69ms 5.94ms 2.20 time_table.TimeMaskedTable.time_add_row
76.80ms 74.22ms 0.97 time_table.TimeMaskedTable.time_aggregate
75.34ms 74.21ms 0.99 time_table.TimeMaskedTable.time_aggregate_noreduceat
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.