Skip to content

Instantly share code, notes, and snippets.

@jjhelmus
jjhelmus / example.in
Created April 13, 2012 20:14
pysimpson
# modified example #1 which shows lost of precision in SIMPSON binary format.
spinsys {
channels 13C
nuclei 13C 13C
shift 1 0 6000 1 0 0 0
shift 2 0 6000 0 0 0 0
dipole 1 2 -1500 0 0 0
}
#! /usr/bin/env python
import pyart
import numpy as np
from pyart.testing.sample_objects import make_empty_ppi_radar, \
_EXAMPLE_RAYS_FILE
def pproc(LP_solver, proc=1):
@jjhelmus
jjhelmus / 0001-MAINT-renamed-CyLP-to-cylp.patch
Created January 3, 2014 18:05
PyART CyLP to cylp patch
From b71983c189ebdeb88c1d0f9c4ea6cf286a968d34 Mon Sep 17 00:00:00 2001
From: Jonathan Helmus <[email protected]>
Date: Thu, 19 Dec 2013 16:41:59 -0600
Subject: [PATCH] MAINT: renamed CyLP to cylp
---
pyart/correct/phase_proc.py | 24 ++++++++++++------------
pyart/correct/tests/test_phase_proc.py | 2 +-
2 files changed, 13 insertions(+), 13 deletions(-)
@jjhelmus
jjhelmus / plot_polar_bokeh.py
Created April 14, 2014 02:10
Plotting Polar data with Bokeh
# Plot polar data using Bokeh
# Author: Jonathan J. Helmus
import numpy as np
from bokeh.plotting import *
# Data in polar coordinates
azimuths = np.linspace(0, 2 * np.pi, 20)
ranges = np.array([2, 4, 6, 8])
<!DOCTYPE html>
<!-- Generated by Cython 0.21.2 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body.cython { font-family: courier; font-size: 12; }
.cython.tag { }
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Statistical functions (scipy.stats) &mdash; SciPy v0.16.0 Reference Guide</title>
<link rel="stylesheet" type="text/css" href="_static/css/spc-bootstrap.css">
<link rel="stylesheet" type="text/css" href="_static/css/spc-extend.css">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Statistical functions (scipy.stats) &mdash; SciPy v0.16.0 Reference Guide</title>
<link rel="stylesheet" type="text/css" href="_static/css/spc-bootstrap.css">
<link rel="stylesheet" type="text/css" href="_static/css/spc-extend.css">
@jjhelmus
jjhelmus / python27_win32.log
Last active February 13, 2016 17:54
Test logs from atlas_build wheels
C:\Users\IEUser>python -c "import numpy; numpy.test()
Running unit tests for numpy
NumPy version 1.10.4
NumPy relaxed strides checking option: False
NumPy is installed in C:\Users\IEUser\Miniconda2\lib\site-packages\numpy
Python version 2.7.11 |Continuum Analytics, Inc.| (default, Jan 29 2016, 15:36:5
6) [MSC v.1500 32 bit (Intel)]
nose version 1.3.7
..............................S.................................................
................................................................................
root@65fd037e562e:~# conda create -n py27 python=2.7
Fetching package metadata: ....
Solving package specifications: .........
Package plan for installation in environment /root/miniconda3/envs/py27:
The following NEW packages will be INSTALLED:
openssl: 1.0.2g-0
pip: 8.1.1-py27_1
#! /usr/bin/env python3
""" Find conda packages which use a binary prefix. """
import argparse
import bz2
import json
import os
import tarfile
import urllib.request