Replies: 1 comment 5 replies
-
import json
from qcodes.utils import NumpyJSONEncoder
snapshot = myinstr.snapshot()
with open("pathtofileiwanttowriteto")" as f
json.dump(snapshot, cls=NumpyJSONEncoder) The NumpyJSONEncoder is required to enable us to write numpy arrays to the json file as regular arrays |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Is there a current method to save the current state of my parameters and values that are shown in the
print_readable_snapshot
call and then make it able to load later? I've looked into databases but that seems like too much since i'm not really taking measurements and I only have one instrument.This is what I get from the
print_readable_snapshot
. I simply want the ability to save the current state of those parameters and values, preferably as a JSON or YAML file and also the ability to load them in later as an experiment.Beta Was this translation helpful? Give feedback.
All reactions