This file contains hidden or 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
#include <casa/Exceptions/Error.h> | |
#include <casa/iostream.h> | |
#include <synthesis/MeasurementEquations/Imager.h> | |
#include <synthesis/MeasurementComponents/EPJones.h> | |
#include <ms/MeasurementSets/MSHistoryHandler.h> | |
#include <casa/Arrays/Matrix.h> | |
#include <casa/Arrays/ArrayMath.h> | |
#include <casa/Arrays/ArrayLogical.h> |
This file contains hidden or 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
commit e07320d824afcdc19d85104259659b55221b1858 | |
Author: Peter Williams <[email protected]> | |
Date: Mon Oct 18 17:21:07 2010 -0700 | |
Incorporate new SMA files into autotools build. | |
diff --git a/src/prog/sma/Makefile.am b/src/prog/sma/Makefile.am | |
index 916739a..72e906a 100644 | |
--- a/src/prog/sma/Makefile.am | |
+++ b/src/prog/sma/Makefile.am |
This file contains hidden or 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
#! /usr/bin/env python | |
""" | |
Pounce on an open OpenTable reservation. | |
""" | |
import sys, os, time, re, mechanize, gtk, webkit, threading, random | |
rid = 1180 # OpenTable restaurant ID; 1180 = French Laundry | |
people_choices = [3, 3, 3, 4] # number of people to request for; cycles through choices |
This file contains hidden or 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
#! /bin/bash | |
# -*- shell-script -*- | |
margin=4 | |
# XPDF gives its y coordinates in terms of the standard PDF coordinate | |
# system, where (0,0) is the bottom left corner and y increases going | |
# up. But pdftocairo uses Cairo coordinates, in which (0,0) is the top | |
# left corner and y increases going down. We can use pdfinfo to get | |
# the page size to translate between these conventions. |
This file contains hidden or 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
""" | |
The worst possible way to propagate uncertainties. | |
""" | |
import numpy as np | |
from scipy.stats import scoreatpercentile as sap | |
n = 1024 | |
uplaces = 1 # the argument is that you generally only know your uncerts to 1 place | |
udtype = np.double |
This file contains hidden or 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
# PKGW customizations | |
# Greek ambiguities: epsilon/eta, theta/tau, pi/phi/psi, omega/omicron | |
<Multi_key> <backslash> <comma> : " " U202F # thin nonbreaking space | |
<Multi_key> <g> <a> : "α" | |
<Multi_key> <g> <b> : "β" | |
<Multi_key> <g> <g> : "γ" | |
<Multi_key> <g> <d> : "δ" | |
<Multi_key> <g> <3> : "ε" # note! |
This file contains hidden or 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
commit fc673a66958ee26213c4be766b7cfa4858a39754 | |
Author: Peter Williams <[email protected]> | |
Date: Tue Oct 20 09:25:43 2015 -0400 | |
fipy/meshes/uniformGrid3D.py: fix | |
diff --git a/fipy/meshes/uniformGrid3D.py b/fipy/meshes/uniformGrid3D.py | |
index 304bb69..827ca9e 100644 | |
--- a/fipy/meshes/uniformGrid3D.py | |
+++ b/fipy/meshes/uniformGrid3D.py |
This file contains hidden or 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
# Copyright 2015 Peter Williams | |
# Licensed under the MIT License. | |
import numpy as np | |
from scipy.signal import lombscargle | |
from pwkit import lsqmdl | |
twopi = 2 * np.pi | |
ncoarse = 512 |
This file contains hidden or 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
% affils.sty -- automatically number affiliations | |
% Copyright 2016 Peter Williams <[email protected]> | |
% Licensed under the MIT License. | |
% | |
% To use: | |
% | |
% 1. Save this file next to your .tex file and add \usepackage{affils} at its top. | |
% | |
% 2. Before your author list, write: | |
% |
This file contains hidden or 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
# -*- mode: python; coding: utf-8 -*- | |
# Copyright 2016 Peter Williams <[email protected]> and collaborators. | |
# Licensed under the MIT License. | |
"""Framework to call the CIAO chandra_repro program in the context of a Ninja | |
build system. | |
""" | |
from __future__ import absolute_import, division, print_function, unicode_literals |
OlderNewer