with open("../../photometry/HUGS/ngc2808/photometry.pkl", 'rb') as f: photometry = pkl.load(f) color = photometry[1]["F275W"] - photometry[1]["F814W"] mag = photometry[1]["F814W"]