def correct_iso_set(isoPairA, isoPairE): pathA = list(isoPairA.keys())[0] pathE = list(isoPairE.keys())[0] optA = isoPairA[pathA].x optE = isoPairE[pathE].x funA = isoPairA[pathA].fun funE = isoPairE[pathE].fun isoAFullPath = "../../" / pathA isoEFullPath = "../../" / pathE assert os.path.exists(isoAFullPath) and os.path.exists(isoEFullPath) isoA = read_iso(isoAFullPath) isoE = read_iso(isoEFullPath) isoAAtAge = interp_isochrone_age(isoA, optA[2]) isoEAtAge = interp_isochrone_age(isoE, optE[2]) isoAMags = bc.apparent_mags( 10**isoAAtAge[:, 10], isoAAtAge[:, 12], isoAAtAge[:, 7], mu = optA[0], Av = optA[1], filters = ("WFC3_UVIS_F275W", "WFC3_UVIS_F606W", "WFC3_UVIS_F814W") ) isoEMags = bc.apparent_mags( 10**isoEAtAge[:, 10], isoEAtAge[:, 12], isoEAtAge[:, 7], mu = optE[0], Av = optE[1], filters = ("WFC3_UVIS_F275W", "WFC3_UVIS_F606W", "WFC3_UVIS_F814W") ) return isoAMags, isoEMags, optA, optE, funA, funE, isoA, isoE