mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14:57:56 -05:00
best practice import order; avoid return after else
This commit is contained in:
parent
027d93ac70
commit
21e4795b0c
3 changed files with 4 additions and 5 deletions
|
@ -10,9 +10,9 @@
|
||||||
# 09/07/17 6175 tgurney Override messageReceived
|
# 09/07/17 6175 tgurney Override messageReceived
|
||||||
#
|
#
|
||||||
|
|
||||||
|
import traceback
|
||||||
import dynamicserialize
|
import dynamicserialize
|
||||||
from awips.dataaccess.PyNotification import PyNotification
|
from awips.dataaccess.PyNotification import PyNotification
|
||||||
import traceback
|
|
||||||
|
|
||||||
|
|
||||||
class PyGeometryNotification(PyNotification):
|
class PyGeometryNotification(PyNotification):
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
from thrift.protocol.TProtocol import *
|
|
||||||
from thrift.protocol.TBinaryProtocol import *
|
|
||||||
import struct
|
import struct
|
||||||
import numpy
|
import numpy
|
||||||
|
from thrift.protocol.TProtocol import *
|
||||||
|
from thrift.protocol.TBinaryProtocol import *
|
||||||
|
|
||||||
FLOAT = 64
|
FLOAT = 64
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,7 @@ class GridParmInfo(object):
|
||||||
" RateParm: " + str(self.rateParm) + \
|
" RateParm: " + str(self.rateParm) + \
|
||||||
" GridType: " + self.gridType
|
" GridType: " + self.gridType
|
||||||
return out
|
return out
|
||||||
else:
|
return "<Invalid>"
|
||||||
return "<Invalid>"
|
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
if not isinstance(other, GridParmInfo):
|
if not isinstance(other, GridParmInfo):
|
||||||
|
|
Loading…
Add table
Reference in a new issue