Closed jrmlhermitte closed 6 years ago
I provided a hook for CMS and CHX to pass in their logbook_cb_factory
directly, which I slightly prefer because it minimizes the interface between these two components and allows for other possible customizations, all wrapped into logbook_cb_factory
.
so configure_olog(..., logboo_cb_factory=partial(logbook_cb_factory(**kwargs)))
correct?
Yes, that should be passed to configure_olog
's callback
argument.
So many layers in Olog!! hahah
Yeah partial not necessary. I overthought this one lol
Some beamlines use templating for olog, example: https://github.com/NSLS-II-CMS/profile_collection/blob/master/startup/45-olog.py#L90
@danielballan