HERA-Team / simple-dashboard

Quick and dirty dashboard setup
0 stars 0 forks source link

node and pam numbers for node8 showing up as "-1" #4

Closed dannyjacobs closed 5 years ago

dannyjacobs commented 5 years ago

image image This appears to be a result of dropping into this line, https://github.com/HERA-Team/simple-dashboard/blob/9472b6dc73a41486c1c6027d34115e6c45fd62f5/generator/hex_amp.py#L232.

But why is it dropping there? Recreated in ipython against sqlite

In [24]: for ant in ants:
    ...:     pam_info = hsession.get_part_at_station_from_type('HH{ant}'.format(ant=int(ant)), latest, 'p
    ...: ost-amp')
    ...:     print(pam_info.keys()[0],pam_info[list(pam_info.keys())[0]]['e'])
    ...:     
(u'HH0:A', 'PAM022')
(u'HH1:A', 'PAM024')
(u'HH2:A', 'PAM048')
(u'HH11:A', 'PAM052')
(u'HH12:A', 'PAM050')
(u'HH13:A', 'PAM027')
(u'HH14:A', 'PAM047')
(u'HH23:A', 'PAM029')
(u'HH24:A', 'PAM030')
(u'HH25:A', 'PAM051')
(u'HH26:A', 'PAM032')
(u'HH39:A', 'PAM033')
(u'HH84:A', 'PAM019')
(u'HH85:A', 'PAM011')
(u'HH86:A', 'PAM012')
(u'HH87:A', 'PAM016')
(u'HH89:A', 'PAM043')
(u'HH101:A', 'PAM017')
(u'HH102:A', 'PAM010')
(u'HH103:A', 'PAM015')
(u'HH104:A', 'PAM014')
(u'HH106:A', 'PAM044')
(u'HH107:A', 'PAM035')
(u'HH108:A', 'PAM039')
(u'HH120:A', 'PAM013')
(u'HH121:A', 'PAM021')
(u'HH122:A', 'PAM018')
(u'HH124:A', 'PAM042')
(u'HH125:A', 'PAM046')
(u'HH126:A', 'PAM045')
dannyjacobs commented 5 years ago

I think I know! Its because we're querying the database for the hookup at the time of the last correlator observation! This made sense when the correlator was regularly observing, but I think what we really want is to let the data drive the most recent time, thus our display of data timestamps in the tooltips.

dannyjacobs commented 5 years ago

Fixed in dbccbf224d42003d2f286335eae0ff4e5565d487