usnistgov / PyHyperScattering

Tools for hyperspectral x-ray and neutron scattering data loading, reduction, slicing, and visualization.
Other
6 stars 8 forks source link

feat: Natively support remote Tiled connections to BNL #116

Closed pbeaucage closed 3 months ago

pbeaucage commented 4 months ago

It's been possible for the last... little bit... to connect to tiled.nsls2.bnl.gov and remotely beam data down. Performance? not super well measured. Access controls? Finicky on the best of days. But liberation from externally managed software environments? Priceless.

The prototype for how to do this by hand is as follows:

from tiled.client import from_uri
catalog = from_uri('https://tiled.nsls2.bnl.gov') # prompts for login
catalog = catalog['rsoxs']['raw']

load = PyHyperScattering.load.SST1RSoXSDB(catalog=catalog)

SST1RSoXSDB should just check if a profile called rsoxs exists on the machine and get a network catalog if it doesn't.