bnl / pub-ML_examples

Publication describing 3 ML examples at NSLS-II and interfacing into Bluesky
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Make deploy_supervised.py work standalone #4

Open stuartcampbell opened 2 years ago

stuartcampbell commented 2 years ago

My current plan is to remove the dependencies on the BMM profile. For reading data, I am going to read from our tiled demo server (https://tiled-demo.nsls2.bnl.gov)

stuartcampbell commented 2 years ago

So, faking the data reading seems straightward by using Tiled. It's pretty much just this:

from tiled.client import from_url
c = from_uri("https://tiled-demo.blueskyproject.io")
this = c["bmm"]["raw"]["78b80120-c7b6-4a59-9548-861405f2dd3d"

At this point this can be used in the same way as the this = user_ns["db"].v2[uid] is used in the BMM scripts.