Skip to content

Instantly share code, notes, and snippets.

@GenevieveBuckley
Created January 16, 2019 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GenevieveBuckley/449db6529f2699903afa5f8fe7c722f6 to your computer and use it in GitHub Desktop.
Save GenevieveBuckley/449db6529f2699903afa5f8fe7c722f6 to your computer and use it in GitHub Desktop.
Pickle AdornedImage objects
import pickle
from autoscript_sdb_microscope_client import SdbMicroscopeClient
from autoscript_sdb_microscope_client.enumerations import *
from autoscript_sdb_microscope_client.structures import *
microscope = SdbMicroscopeClient()
microscope.connect()
object_to_pickle = microscope.imaging.get_image()
with open("pickled_file.pkl","wb") as f:
pickle.dump(object_to_pickle, f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment