Created
January 16, 2019 02:34
-
-
Save GenevieveBuckley/449db6529f2699903afa5f8fe7c722f6 to your computer and use it in GitHub Desktop.
Pickle AdornedImage objects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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