예제 #1
0
 def test_insert_tdb_timestamp_voevent(self, fixture_db_session):
     """
     Insert Gaia packet
     """
     s = fixture_db_session
     assert len(s.query(Voevent).all()) == 0  # sanity check
     s.add(Voevent.from_etree(gaia_16bsg))
     s.flush()
     assert len(s.query(Voevent).all()) == 1
     positions_parsed = Coord.from_etree(gaia_16bsg)
     assert len(positions_parsed) == 1
     gaia_posn = positions_parsed[0]
     assert gaia_posn.time is not None
예제 #2
0
 def test_insert_tdb_timestamp_voevent(self, fixture_db_session):
     """
     Insert Gaia packet
     """
     s = fixture_db_session
     assert len(s.query(Voevent).all()) == 0  # sanity check
     s.add(Voevent.from_etree(gaia_16bsg))
     s.flush()
     assert len(s.query(Voevent).all()) == 1
     positions_parsed = Coord.from_etree(gaia_16bsg)
     assert len(positions_parsed) == 1
     gaia_posn = positions_parsed[0]
     assert gaia_posn.time is not None
예제 #3
0
 def test_coord_parsing(self):
     positions_parsed = Coord.from_etree(swift_bat_grb_655721)
     assert len(positions_parsed) == 1
예제 #4
0
 def test_coord_parsing(self):
     positions_parsed = Coord.from_etree(swift_bat_grb_655721)
     assert len(positions_parsed) == 1