NSLS-II / nslsii

NSLS-II related devices
BSD 3-Clause "New" or "Revised" License
11 stars 22 forks source link

updated configure_base for integrating ArchiverEventSources #22

Closed malitsky closed 6 years ago

malitsky commented 6 years ago

updated configure_base for integrating ArchiverEventSources

tacaswell commented 6 years ago

I think we want to merge the base configuration into db.named instead of having a separate lookup system.

Do we want to allow configure_base to make additional PVs to be included? That seems like something that will be in flux for a while ? For now I guess just walking the db.EventSources and checking the type is the easiest way to get the right EventSource? I suspect we want to also include some notion of 'name' in the config when creating the EVentSource objects and have some access to that from the DataBroker, ex db.ES['archiver'] or db.ES['raw'] ?

danielballan commented 6 years ago

:+1: for putting the list of PVs into the databroker configuration file.

malitsky commented 6 years ago

integration is implemented with the Broker API using the databroker configuration file and db.ES as demonstrated by the following script and configuration file:

https://github.com/malitsky/nsls2/blob/master/areventsource/notebooks/archiver-reader.db.5.13.18.ipynb https://github.com/malitsky/nsls2/blob/master/areventsource/notebooks/csx_with_archivers.yml