mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14:57:56 -05:00
whitespace
This commit is contained in:
parent
2f227d6ae1
commit
c79433f59b
329 changed files with 2181 additions and 2190 deletions
|
@ -46,7 +46,6 @@ class AlertVizHandler(logging.Handler):
|
|||
self._port = port
|
||||
self._source = source
|
||||
|
||||
|
||||
def emit(self, record):
|
||||
"Implements logging.Handler's interface. Record argument is a logging.LogRecord."
|
||||
priority = None
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
#
|
||||
#
|
||||
|
||||
|
||||
def parseKeyValueFile(fileName):
|
||||
propDict= dict()
|
||||
|
||||
|
|
|
@ -95,6 +95,3 @@ class QpidSubscriber:
|
|||
self.__session.close(timeout=10)
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
|
|
@ -37,7 +37,6 @@ from dynamicserialize.dstypes.com.raytheon.uf.common.serialization import Serial
|
|||
#
|
||||
#
|
||||
|
||||
|
||||
class ThriftClient:
|
||||
|
||||
# How to call this constructor:
|
||||
|
|
|
@ -78,7 +78,6 @@ class ListenThread(threading.Thread):
|
|||
self.qs.close()
|
||||
|
||||
|
||||
|
||||
def main():
|
||||
print "Starting up at", time.strftime('%H:%M:%S')
|
||||
|
||||
|
@ -96,9 +95,5 @@ def main():
|
|||
finally:
|
||||
thread.stop()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -71,13 +71,12 @@ shapely 1.5.9 awips2-python-shapely
|
|||
matplotlib 1.5.1 awips2-python-matplotlib
|
||||
cython 0.23.4 awips2-python-cython
|
||||
pil 1.1.6 awips2-python-pil
|
||||
thrift 20080411p1 awips2-python-thrift
|
||||
thrift 20080411p1 **awips2-python-awips**
|
||||
cartopy 0.13.0 awips2-python-cartopy
|
||||
nose 0.11.1 awips2-python-nose
|
||||
pmw 1.3.2 awips2-python-pmw
|
||||
h5py 1.3.0 awips2-python-h5py
|
||||
tables 2.1.2 awips2-python-tables
|
||||
dynamicserialize 15.1.2 awips2-python-dynamicserialize
|
||||
qpid 0.32 awips2-python-qpid
|
||||
====================== ============== ==============================
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
=====
|
||||
==================================
|
||||
Python AWIPS Data Access Framework
|
||||
=====
|
||||
|
||||
.. raw:: html
|
||||
==================================
|
||||
|
||||
The `python-awips <https://github.com/Unidata/python-awips>`_ package provides a Data Access Framework (DAF) for requesting data from a remote AWIPS II EDEX server.
|
||||
|
||||
|
|
|
@ -34,13 +34,9 @@
|
|||
|
||||
ClassAdapter = ['java.nio.ByteBuffer', 'java.nio.HeapByteBuffer']
|
||||
|
||||
|
||||
def serialize(context, set):
|
||||
raise NotImplementedError("Serialization of ByteBuffers is not supported.")
|
||||
|
||||
def deserialize(context):
|
||||
byteBuf = context.readBinary()
|
||||
return byteBuf
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@ from dynamicserialize.dstypes.java.util import EnumSet
|
|||
|
||||
ClassAdapter = ['java.util.EnumSet', 'java.util.RegularEnumSet']
|
||||
|
||||
|
||||
def serialize(context, set):
|
||||
setSize = len(set)
|
||||
context.writeI32(setSize)
|
||||
|
@ -47,7 +46,6 @@ def serialize(context, set):
|
|||
for val in set:
|
||||
context.writeString(val)
|
||||
|
||||
|
||||
def deserialize(context):
|
||||
setSize = context.readI32()
|
||||
enumClassName = context.readString()
|
||||
|
|
|
@ -34,13 +34,9 @@
|
|||
|
||||
ClassAdapter = ['java.nio.FloatBuffer', 'java.nio.HeapFloatBuffer']
|
||||
|
||||
|
||||
def serialize(context, set):
|
||||
raise NotImplementedError("Serialization of FloatBuffers is not supported.")
|
||||
|
||||
def deserialize(context):
|
||||
floatBuf = context.readFloatArray()
|
||||
return floatBuf
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -52,5 +52,3 @@ def deserialize(context):
|
|||
systemLevel = context.readBool()
|
||||
level = LocalizationLevel(text, order, systemLevel=systemLevel)
|
||||
return level
|
||||
|
||||
|
||||
|
|
|
@ -37,7 +37,6 @@ from dynamicserialize.dstypes.java.lang import StackTraceElement
|
|||
|
||||
ClassAdapter = 'java.lang.StackTraceElement'
|
||||
|
||||
|
||||
def serialize(context, obj):
|
||||
raise dynamicserialize.SerializationException('Not implemented yet')
|
||||
|
||||
|
@ -48,5 +47,3 @@ def deserialize(context):
|
|||
result.setFileName(context.readString())
|
||||
result.setLineNumber(context.readI32())
|
||||
return result
|
||||
|
||||
|
||||
|
|
|
@ -33,13 +33,10 @@
|
|||
#
|
||||
#
|
||||
|
||||
|
||||
|
||||
from dynamicserialize.dstypes.com.raytheon.uf.common.message import WsId
|
||||
|
||||
ClassAdapter = 'com.raytheon.uf.common.message.WsId'
|
||||
|
||||
|
||||
def serialize(context, wsId):
|
||||
context.writeString(wsId.toString())
|
||||
|
||||
|
@ -55,4 +52,3 @@ def deserialize(context):
|
|||
wsId.setThreadId(long(wsIdParts[4]))
|
||||
|
||||
return wsId
|
||||
|
||||
|
|
|
@ -80,6 +80,5 @@ def getAdapterRegistry():
|
|||
raise LookupError('Adapter class ' + x + ' has no ClassAdapter field ' + \
|
||||
'and cannot be registered.')
|
||||
|
||||
|
||||
getAdapterRegistry()
|
||||
|
||||
|
|
|
@ -48,4 +48,3 @@ class DumpActiveTableResponse(object):
|
|||
|
||||
def setMessage(self, message):
|
||||
self.message = message
|
||||
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
# File auto-generated against equivalent DynamicSerialize Java class
|
||||
|
||||
|
||||
from dynamicserialize.dstypes.com.raytheon.uf.common.serialization.comm.response import ServerErrorResponse
|
||||
|
||||
class AuthServerErrorResponse(ServerErrorResponse):
|
||||
|
|
|
@ -29,13 +29,11 @@
|
|||
#
|
||||
#
|
||||
|
||||
|
||||
from awips.dataaccess import IDataRequest
|
||||
|
||||
from dynamicserialize.dstypes.com.vividsolutions.jts.geom import Envelope
|
||||
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.level import Level
|
||||
|
||||
|
||||
class DefaultDataRequest(IDataRequest):
|
||||
|
||||
def __init__(self):
|
||||
|
|
|
@ -31,10 +31,8 @@
|
|||
#
|
||||
#
|
||||
|
||||
|
||||
from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.request import AbstractDataAccessRequest
|
||||
|
||||
|
||||
class GetAvailableTimesRequest(AbstractDataAccessRequest):
|
||||
|
||||
def __init__(self):
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
# File auto-generated against equivalent DynamicSerialize Java class
|
||||
|
||||
|
||||
class GridDataHistory(object):
|
||||
|
||||
def __init__(self):
|
||||
|
|
|
@ -24,7 +24,6 @@ import abc
|
|||
|
||||
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.server.request import GetGridRequest
|
||||
|
||||
|
||||
class GetGridDataRequest(object):
|
||||
__metaclass__ = abc.ABCMeta
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.request import AbstractGfeRequest
|
||||
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import DatabaseID
|
||||
|
||||
|
||||
class GetLatestDbTimeRequest(AbstractGfeRequest):
|
||||
|
||||
def __init__(self, dbId=None):
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
|
||||
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.request import AbstractGfeRequest
|
||||
|
||||
|
||||
class GetLatestModelDbIdRequest(AbstractGfeRequest):
|
||||
|
||||
def __init__(self, siteId=None, modelName=None):
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
import abc
|
||||
|
||||
|
||||
class AbstractGridSlice(object):
|
||||
__metaclass__ = abc.ABCMeta
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.slice import AbstractGridSlice
|
||||
|
||||
|
||||
class DiscreteGridSlice(AbstractGridSlice):
|
||||
|
||||
def __init__(self):
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
import os
|
||||
from dynamicserialize.dstypes.com.raytheon.uf.common.localization.stream import AbstractLocalizationStreamRequest
|
||||
from dynamicserialize.dstypes.com.raytheon.uf.common.plugin.nwsauth.user import User
|
||||
|
||||
class LocalizationStreamGetRequest(AbstractLocalizationStreamRequest):
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue