<jupyter_start><jupyter_text>Klystron example<jupyter_code># Useful for debugging
%load_ext autoreload
%autoreload 2
from lcls_live.epics import epics_proxy
from lcls_live import Klystron,  Magnet, BPM
import os
epics = epics_proxy('data/epics_snapshot_2018-03-06T15:21:15.000000-08:00.json', verbose=True)
k = Klystron(sector=21,station=2, epics=epics, verbose=True)
# Base PV name
k.name
# Basic attributes are listed in
k.attributes
# and thes attributes are held as
k.enld, k.phase, k.pdes, k.swrd, k.stat, k.hdsc, k.dsta, k.acc_trigger_status
# Summary methods
k.is_usable(), k.is_accelerating(), k.has_faults()
# Here are the faults
k.faults<jupyter_output><empty_output><jupyter_text>Collimator example<jupyter_code>from lcls_live import Collimator
coll = Collimator(name='COLL:LI21:235', epics=epics)
print(coll)
coll.attributes<jupyter_output><empty_output><jupyter_text>Magnet example<jupyter_code>from lcls_live import Magnet
m = Magnet(name='QUAD:LI30:301', epics=epics, verbose=True)
m.attributes, m.type<jupyter_output>caget_many on ['QUAD:LI30:301:BACT']
{'fraction_non_alphanumeric': 0.11693171188026193, 'fraction_numerical': 0.040224508886810104, 'mean_word_length': 8.145299145299145, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '82253', 'license': 'Apache-2.0', 'n_tokens_mistral': 463, 'n_tokens_neox': 425, 'n_words': 83, 'path': 'examples/classic/device_examples.ipynb', 'repo_name': 'slaclab/lcls2-live', 'size': '1069'}