Skip to content

Instantly share code, notes, and snippets.

View CJ-Wright's full-sized avatar

Christopher J. 'CJ' Wright CJ-Wright

View GitHub Profile
import os
from conda_build import api
from conda_build.config import Config
from json import dumps
from rever.tools import hash_url
def pp(jason):
print(dumps(jason, indent=4, sort_keys=True))
def main():
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CJ-Wright
CJ-Wright / customized_per_step.py
Last active July 16, 2018 20:36 — forked from chiahaoliu/customized_per_step.py
customized per_step to collect light and dark frames at each motor point
# ACQ SIDE
# ======================================================
import bluesky.plans as bp
import bluesky.plan_stubs as bps
from bluesky.utils import Msg, short_uid as _short_uid
from bluesky.preprocessors import subs_wrapper
from bluesky.simulators import summarize_plan
from bluesky.callbacks import LiveTable
from xpdacq.xpdacq_conf import xpd_configuration
from xpdacq.xpdacq import glbl, CustomizedRunEngine
from numba import cuda
import numpy as np
@cuda.jit
def foo(arr):
for i in range(arr.size):
arr[i] += i
A = np.arange(10000)
B = np.arange(10000)