Closed prjemian closed 6 years ago
Turns out that metadatastore and filestore modules have been deprecated.
The database setup is relocated in ~/.config/databroker/*.yml
files.
Such as ~/.config/databroker/mongodb_config.yml
:
description: 'heavyweight shared database'
metadatastore:
module: 'databroker.headersource.mongo'
class: 'MDS'
config:
host: 'otz.aps.anl.gov'
port: 27017
database: 'metadatastore-production-v1'
timezone: 'US/Central'
assets:
module: 'databroker.assets.mongo'
class: 'Registry'
config:
host: 'otz.aps.anl.gov'
port: 27017
database: 'filestore-production-v1'
This is then called from 01-databroker.py
like:
from databroker import Broker
db = Broker.named("mongodb_config")
RE = bluesky.RunEngine()
The YAML file will need additional setup lines in the bash script.
NSLS-II recent hints for ipython setup "best practices": https://github.com/NSLS-II/nsls-ii-tools/blob/master/nsls2tools/csx1/startup/startup.py
Something wrong with the setup still. Perhaps with the metadatabroker?