AD-SDL / polybot-web-service

A server to control robotic synthesis of thin-film polymeric materials
Apache License 2.0
0 stars 2 forks source link

Switch to using ADC for receiving samples, events #15

Open WardLT opened 3 years ago

WardLT commented 3 years ago

This Issue is our initial step for tracking how we integrate with the Argonne Data Cloud (ADC). Future issues will be created as the ADC and it's SDK emerge.

Issues we'll need to solve:

laaraujo-dnt commented 3 years ago

Implement "get all samples" utility function

I think the following should be enough, at least for the raw response dict from the API which you can later iterate through:

from adc.client import ADCClient

token = <token you get from adc>
client = ADCClient(token)
studies = client.get_studies()
WardLT commented 3 years ago

Thanks! I added that logic (along with some auto-populate token from env variables) to that with 6f8a58e