Skip to content

Instantly share code, notes, and snippets.

David Shepherd davidshepherd7

Block or report user

Report or block davidshepherd7

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
davidshepherd7 / gist:4666285
Created Jan 29, 2013
example parallel parameter sweep for an oomph-lib driver
View gist:4666285
#!/usr/bin/env python
import subprocess as subp
from multiprocessing import Pool
import itertools
import sys
import numbers
import argparse
davidshepherd7 / gist:4105231
Created Nov 18, 2012
1.31 Velocity Transformation
View gist:4105231
;; Just use the transformation from the example then pull out the velocity from the tuple.
(define (velocity-transform coordinate-transform)
(compose (lambda (tuple) (velocity tuple)) (F->C coordinate-transform)))
;; ;; Or explicitly using Gamma-bar this is:
;; (define (velocity-transform coordinate-transform)
;; (define (f-bar q-prime)
;; (define q (compose coordinate-transform (Gamma q-prime)))
;; (Gamma q))
;; (compose (lambda (x) (velocity x)) (Gamma-bar f-bar)))
You can’t perform that action at this time.