Skip to content

Instantly share code, notes, and snippets.

View danielballan's full-sized avatar

Dan Allan danielballan

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from dataportal.broker.simple_broker import fill_event
from metadatastore.api import find_events
def events_generator(header):
"Return a generator of Events. Large (nonscalar) data is lazy-loaded."
descriptors = header.event_descriptors
if len(descriptors) > 1:
raise NotImplmementedError
descriptor, = descriptors
"""This adds a new function for performing a dscan
with all detectors using the same integration time.
It was deployed in HXN 03id on 2015-04-06 in their
IPython profile under `50-scans.py`."""
def synchronize(detectors, integration_time):
# EpicsScaler calls it preset_time;
# AreaDetector calls it exposure_time.
attrs = ['preset_time', 'exposure_time']
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.