Skip to content

Commit 1089636

Browse files
committed
Use correct parameter for magntitude in alerce broker
1 parent 8ce0561 commit 1089636

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tom_alerts/brokers/alerce.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def process_reduced_data(self, target, alert=None):
575575
mjd = Time(detection['mjd'], format='mjd', scale='utc')
576576
value = {
577577
'filter': FILTERS[detection['fid']],
578-
'magnitude': detection['diffmaglim'],
578+
'magnitude': detection['magpsf'],
579579
'error': detection['sigmapsf'],
580580
'telescope': 'ZTF',
581581
}

0 commit comments

Comments
 (0)