Open rafe-sh opened 1 year ago
Hi, I replaced mags_tot = {b: (addmags(props_A[b], props_B[b]), unc[b]) for b in bands} with mags_tot = {b: (addmags(props_A[b+'_mag'], props_B[b'_mag']), unc[b]) for b in bands}
the DataFrame returned by mist.track.generate() has such keys as 'J_mag', 'G_mag', etc.
I encountered a
KeyError
when attempting to calculate magnitudes for binary stars using the isochrones package. The error occurs specifically when accessing the key'J'
in theprops_A
orprops_B
dictionaries. ThisKeyError
prevents the successful calculation of magnitudes for the J-band.Steps to Reproduce:
mist.track.generate
function from the isochrones package to generate synthetic magnitudes for a binary starprops_A
orprops_B
dictionaries.Expected Behavior:
The isochrones package should generate the synthetic magnitudes for the specified bands without any KeyError.
Actual Behavior:
A
KeyError
is raised for the key 'J' when trying to access theprops_A['J']
orprops_B['J']
values.Additional Information:
I have verified that the MIST evolutionary tracks are properly installed and up to date. I have also confirmed that the 'J' band is included in the bands list, matching the available bands in the MIST tracks.
PS: Here is the code snippet I am using:
Please let me know if you need any further information or if there are any suggested workarounds for this issue. Thank you for your attention to this matter