Skip to content

Commit

Permalink
load_visuals: moved common imports outside of if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jooste committed Oct 6, 2016
1 parent ce2e9ff commit 04aeec4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions bluesky/tools/load_visuals_txt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from ..settings import gui, data_path

import numpy as np
from math import cos, radians, degrees, sqrt, atan2, sin, asin
from zipfile import ZipFile
REARTH_INV = 1.56961231e-7


Expand Down Expand Up @@ -32,6 +34,7 @@ def load_coastline_txt():


if gui == 'qtgl':
import OpenGL.GLU as glu
try:
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QApplication, QProgressDialog
Expand Down Expand Up @@ -66,11 +69,6 @@ def close(self):
if self.dialog:
self.dialog.close()

import OpenGL.GLU as glu
import numpy as np
from math import cos, radians, degrees, sqrt, atan2, sin, asin
from zipfile import ZipFile

tess = glu.gluNewTess()
glu.gluTessCallback(tess, glu.GLU_TESS_VERTEX_DATA, lambda vertex, vbuf: vbuf.extend(vertex[0:2]))
glu.gluTessCallback(tess, glu.GLU_EDGE_FLAG, lambda flag: None)
Expand Down
2 changes: 1 addition & 1 deletion bluesky/traf/adsbmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def SetNoise(self, n):
self.transnoise = n
self.truncated = n
self.transerror = [1, 100, 100 * ft] # [degree,m,m] standard bearing, distance, altitude error
self.trunctime = 5 # [s]
self.trunctime = 0 # [s]

def create(self):
super(ADSB, self).create()
Expand Down

0 comments on commit 04aeec4

Please sign in to comment.