Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoding DataVault parameters #413

Open
zibrov-zlobin opened this issue May 6, 2017 · 1 comment
Open

Decoding DataVault parameters #413

zibrov-zlobin opened this issue May 6, 2017 · 1 comment

Comments

@zibrov-zlobin
Copy link

I was wondering if it is possible to decode the parameters saved in a datafile without using labrad with, say, just plain python tools?
We sometimes end up sending our datasets to collaborators who dont use labrad.

It seems like it is not trivial -- I need to unflatten labrad type and decode from base64? Maybe I am missing something and it is possible to do this without using labrad types?

@maffoo
Copy link
Contributor

maffoo commented May 8, 2017

The parameters are encoded by flattening a labrad data value to bytes, and then base64 encoding. To decode you have to do the reverse. I suspect that the easiest way to have a collaborator access the data is to just send them the code snippet of the decoder and have them pip install pylabrad. They don't need a full labrad installation of course, just the pylabrad library. Otherwise they'd have to write their own code to understand the labrad pyte format, type tags, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants