Skip to content

Instantly share code, notes, and snippets.

Anna Woodard annawoodard

View GitHub Profile
View ones.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ones.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View coffea_demo
# only the first time:
git clone git@github.com:annawoodard/coffeandbacon.git
source coffeandbacon/setup_lcg.sh
pip install https://github.com/Parsl/parsl/zipball/master --user
mkdir coffeandbacon/analysis/runinfo
fs sa coffeandbacon/analysis/runinfo nd_campus rlidwk # this is necessary because condor logs will be written here-- otherwise jobs fail for me with a permission denied error
cd coffeandbacon/analysis/
./compile_corrections.py # this step could be automated, I'm just following what's already implemented
./boostedHbbProcessor.py # this step could be automated, I'm just following what's already implemented
View example.py
import parsl
from parsl.providers import SlurmProvider
from parsl.config import Config
from parsl.executors.ipp import IPyParallelExecutor
from parsl.app.app import python_app
config = Config(
executors=[
IPyParallelExecutor(
View example.py
import parsl
from parsl.providers import SlurmProvider
from parsl.config import Config
from parsl.executors.ipp import IPyParallelExecutor
from parsl.app.app import python_app
config = Config(
executors=[
IPyParallelExecutor(
View parsl.json
{
"parsl":{
"tags":["python packages", "parallel scripting"],
"show-in-list":1,
"versions":[
{
"version":"auto",
"source":{
"type":"generic",
"auto-version":[
View serialization.py
"""
Based on https://gist.github.com/CTimmerman/1f328f02ac2740f4c90d
"""
import cloudpickle
import dill
import _pickle
import json
import marshal
import pickle
import random
@annawoodard
annawoodard / higgsproduction.tex
Created Jan 9, 2018
Higgs production feynman diagram
View higgsproduction.tex
% Author: Matthias Wolf
\subfloat[][]{
\feynmandiagram [horizontal=l2 to h] {
g1 -- [gluon] l1 -- [anti fermion,edge label={\Ptop,\Pb}] l2 -- [scalar, edge label=\PH] h,
g2 -- [gluon] l3 -- [fermion] l2,
l3 -- [anti fermion] l1,
g1 -- [draw=none] g2,
};
\label{sfig:ggf}
@annawoodard
annawoodard / beeminder.py
Last active Jun 2, 2017 — forked from matz-e/beeminder.py
Send beeminder word count delta, not cumulative
View beeminder.py
#!/usr/local/bin/python3
import re
import requests
import shlex
import subprocess
# login to beeminder and visit https://www.beeminder.com/api/v1/auth_token.json
auth_token = 'token'
username = 'username'
goal = 'thesis'
View beeminder.py
#!/usr/local/bin/python3
import requests
import shlex
import subprocess
# login to beeminder and visit https://www.beeminder.com/api/v1/auth_token.json
auth_token = 'token'
username = 'username'
goal = 'thesis'
You can’t perform that action at this time.