

# https://www.globalsino.com/ICs/
# Unpickle a pandas DataFrame object to save as images

import pandas as pd

pklPath = r"C:\0Python\wafermap\LSWMDDonut.pkl"

df = pd.read_pickle(pklPath)
print(df)

import matplotlib.pyplot as plt

#print(df["Place"][0])
plt.imshow(df["waferMap"][0])
plt.savefig(r"C:\GlobalSino2\ICs\images2\LSWMDDonut4236_1.png")
plt.show()

#print(df["Place"][1])
plt.imshow(df["waferMap"][1])
plt.savefig(r"C:\GlobalSino2\ICs\images2\LSWMDDonut4236_2.png")
plt.show()

#print(df["Place"][2])
plt.imshow(df["waferMap"][2])
plt.savefig(r"C:\GlobalSino2\ICs\images2\LSWMDDonut4236_3.png")
plt.show()
