fixed get_phot_groups() in bcd_phot.py