flit install --pth-file
(or on systems like linux/mac that have symlinks flit install -s
)
yaqd edit-config horiba-micro-hr
will open up notepad (or actually whatever is in $EDITOR) with that file directly
I don’t think we have set up a DOI for the project itself (via e.g. Zenodo). Here is a paper that people cite: https://www.tandfonline.com/doi/full/10.1080/08940886.2019.1608121 (DOI: https://doi.org/10.1080/08940886.2019.1608121)
credit to mrakitin on the slack for answering a similar question a week ago
Hi, Bluesky mates. The following code:
ThetaS = EpicsMotor('31a:DCM:ThetaS', name='ThetaS')
print('ThetaS position', ThetaS.position)
will cause exception DisconnectedError:
Traceback (most recent call last):
File "ztest_ac.py", line 69, in <module>
print('ThetaS position', ThetaS.position)
File "/home/chiang.lc/anaconda3/envs/py37bluesky/lib/python3.7/site-packages/ophyd/utils/epics_pvs.py", line 200, in wrapper
raise DisconnectedError('{} is not connected'.format(self.name))
ophyd.utils.errors.DisconnectedError: ThetaS is not connected
In the same environment, I can use pyepics module ( motor = epics.Motor('31a:DCM:ThetaS') ) to move the motor and to read its position without any problem.
Would you please provide hints for debugging and finding causes?
suitcase.csv.export will raise exception ValueError: I/O operation on closed file.
The 'export' does successfully create and write to a csv file though.
Full code and error message: https://pastebin.com/tCsTZPqj
LivePlot
to be able to deal with 1D vectors or use it as a template and write a new callback that deals with the vectors. It is not clear to me if you got N events each of which had a vector do you want to concatenate them into one line or plot them each as their own line.
Dear all,
I am using bluesky / ophyd for executing measurement scripts on the BESSY II accelerator: e.g. orbit response matrix or beam based alignment measurements.
These scripts need to configure ophyd devices dependent on the state of the machine. Personnaly I find ophyds config variables and configure() method quite convienient as long as one only has to deal with one or two devices.
I'd like to ask if there is a tool that facilitates configuring a lot of ohpyd devices similar to e.g. epics save/restore.
Thanks for any answer!
Pierre
count()
but not with sleep()
.LiveTable()
register all events.# python -m caproto.ioc_examples.thermo_sim
class Thermo(Device):
readback = Component(EpicsSignalRO, 'I')
setpoint = Component(EpicsSignal, 'SP')
thermo = Thermo("thermo:", name="thermo")
thermo.wait_for_connection()
RE = RunEngine({})
cb = bcb.LiveTable([thermo], stream_name="thermo_readback_monitor")
RE.subscribe(cb)
db = dbr.Broker.named("temp")
RE.subscribe(db.insert)
sd = bpp.SupplementalData(monitors=[thermo.readback])
RE.preprocessors.append(sd)
@bpp.run_decorator(md={})
def my_plan():
yield from bps.sleep(5)
RE(my_plan())
h = db[-1]
print(h.table())