Skip to content

Instantly share code, notes, and snippets.

View tacaswell's full-sized avatar

Thomas A Caswell tacaswell

View GitHub Profile
@tacaswell
tacaswell / 2015-05-26_pydata_awj.ipynb
Last active June 9, 2016 14:11
2016-05-26_pydata_awj
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from tqdm import tqdm
import ipyparallel as ipp
def main():
target = 'hxn_migration'
rc = ipp.Client()
dview = rc[:]
@tacaswell
tacaswell / install-mongodb.sh
Created April 29, 2016 13:17 — forked from w0rldart/install-mongodb.sh
Installing MongoDB on Ubuntu 15.04
#!/bin/sh
##
## Bash install script for mongo 3.2 for Ubuntu 15.04, because of
## the replacement of upstart with systemd
##
## - AUTHOR: Alexandru Budurovici <https://w0rldart.com>
## - VERSION: 1.0
##
@tacaswell
tacaswell / README.md
Last active September 22, 2017 21:15
multimodal mpl tutorial
tcaswell@xf23id1-srv2:~/bnl_source/conda-prescriptions$ conda create -n dl_test matplotlib=1.3.1
Fetching package metadata: /home/tcaswell/mc3/lib/python3.5/site-packages/requests/packages/urllib3/connection.py:266: SubjectAltNameWarning: Certificate for pergamon.cs.nsls2.local has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
SubjectAltNameWarning
....
Solving package specifications: ....................
Package plan for installation in environment /home/tcaswell/mc3/envs/dl_test:
The following packages will be downloaded:
package | build
from ophyd import SimDetector
from ophyd.areadetector.plugins import ProcessPlugin, TIFFPlugin
from ophyd.areadetector.filestore_mixins import FileStoreBase
from ophyd.areadetector.trigger_mixins import SingleTrigger
from ophyd.device import (Component as C)
prefix = 'XF:31IDA-BI{Cam:Tbl}'
class LocalTiff(TIFFPlugin, FileStoreBase):
pass
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
class Document(dict):
def __init__(self, name, *args, **kwargs):
self._name = name
super(Document, self).__init__(*args, **kwargs)
def __getattr__(self, key):
return self[key]
def __setattr__(self, key, value):
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.