Commit 197b3184 authored by Takhir Fakhrutdinov's avatar Takhir Fakhrutdinov

Уменьшили точность eop-json

parent d448cf93
......@@ -8,15 +8,17 @@ from collections import namedtuple
logger = logging.getLogger()
track_list = {'sigma':float,'distrust':bool,'fake':bool}
bind_list = {'time':float,'id':int,'along':float,'across':float,'dmag':float}
real = lambda x: round(float(x),6)
track_list = {'sigma':real,'distrust':bool,'fake':bool}
bind_list = {'time':real,'id':int,'along':real,'across':real,'dmag':real}
meas_list = {'ra_j2000':float,'dec_j2000':float,'mag':float,'ra_j2000_full_error':float,'dec_j2000_full_error':float,'mag_error':float,}
eop_list = {'ra_j2000_error':float,'dec_j2000_error':float,'x':float,'x_error':float,'y':float,'y_error':float,
'fwhm_x':float,'fwhm_x_error':float,'fwhm_y':float,'fwhm_y_error':float,
'rot':float,'snr':float,'peak_snr':float,'flux':float,'ins_mag':float,'aper_width':float,'aper_height':float,
'channel':float,'filter':str,
eop_list = {'ra_j2000_error':real,'dec_j2000_error':real,'x':real,'x_error':real,'y':real,'y_error':real,
'fwhm_x':real,'fwhm_x_error':real,'fwhm_y':real,'fwhm_y_error':real,
'rot':real,'snr':real,'peak_snr':real,'flux':real,'ins_mag':real,'aper_width':real,'aper_height':real,
'channel':int,'filter':str,
}
def _hms(_angle):
""" Метод. Преобразование угла из градусной меры в часовую.
......
......@@ -258,6 +258,8 @@ class measFile(baseFile):
await self.execute("select * from template.partition_table('xd.t_binds'::regclass,$1)",self.tend)
await self.execute("select * from template.partition_table('xd.t_trackextra'::regclass,$1)",self.tbeg)
await self.execute("select * from template.partition_table('xd.t_trackextra'::regclass,$1)",self.tend)
await self.execute("select * from template.partition_table('xd.t_nfstank'::regclass,$1)",self.tbeg)
await self.execute("select * from template.partition_table('xd.t_nfstank'::regclass,$1)",self.tend)
async def get_db_tracks_crc(self,dev):
_crc = await self.fetchval("""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment