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._port = port
|
||||||
self._source = source
|
self._source = source
|
||||||
|
|
||||||
|
|
||||||
def emit(self, record):
|
def emit(self, record):
|
||||||
"Implements logging.Handler's interface. Record argument is a logging.LogRecord."
|
"Implements logging.Handler's interface. Record argument is a logging.LogRecord."
|
||||||
priority = None
|
priority = None
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
def parseKeyValueFile(fileName):
|
def parseKeyValueFile(fileName):
|
||||||
propDict= dict()
|
propDict= dict()
|
||||||
|
|
||||||
|
|
|
@ -95,6 +95,3 @@ class QpidSubscriber:
|
||||||
self.__session.close(timeout=10)
|
self.__session.close(timeout=10)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,6 @@ from dynamicserialize.dstypes.com.raytheon.uf.common.serialization import Serial
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
class ThriftClient:
|
class ThriftClient:
|
||||||
|
|
||||||
# How to call this constructor:
|
# How to call this constructor:
|
||||||
|
|
|
@ -78,7 +78,6 @@ class ListenThread(threading.Thread):
|
||||||
self.qs.close()
|
self.qs.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
print "Starting up at", time.strftime('%H:%M:%S')
|
print "Starting up at", time.strftime('%H:%M:%S')
|
||||||
|
|
||||||
|
@ -96,9 +95,5 @@ def main():
|
||||||
finally:
|
finally:
|
||||||
thread.stop()
|
thread.stop()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -71,13 +71,12 @@ shapely 1.5.9 awips2-python-shapely
|
||||||
matplotlib 1.5.1 awips2-python-matplotlib
|
matplotlib 1.5.1 awips2-python-matplotlib
|
||||||
cython 0.23.4 awips2-python-cython
|
cython 0.23.4 awips2-python-cython
|
||||||
pil 1.1.6 awips2-python-pil
|
pil 1.1.6 awips2-python-pil
|
||||||
thrift 20080411p1 awips2-python-thrift
|
thrift 20080411p1 **awips2-python-awips**
|
||||||
cartopy 0.13.0 awips2-python-cartopy
|
cartopy 0.13.0 awips2-python-cartopy
|
||||||
nose 0.11.1 awips2-python-nose
|
nose 0.11.1 awips2-python-nose
|
||||||
pmw 1.3.2 awips2-python-pmw
|
pmw 1.3.2 awips2-python-pmw
|
||||||
h5py 1.3.0 awips2-python-h5py
|
h5py 1.3.0 awips2-python-h5py
|
||||||
tables 2.1.2 awips2-python-tables
|
tables 2.1.2 awips2-python-tables
|
||||||
dynamicserialize 15.1.2 awips2-python-dynamicserialize
|
|
||||||
qpid 0.32 awips2-python-qpid
|
qpid 0.32 awips2-python-qpid
|
||||||
====================== ============== ==============================
|
====================== ============== ==============================
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
=====
|
==================================
|
||||||
Python AWIPS Data Access Framework
|
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.
|
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']
|
ClassAdapter = ['java.nio.ByteBuffer', 'java.nio.HeapByteBuffer']
|
||||||
|
|
||||||
|
|
||||||
def serialize(context, set):
|
def serialize(context, set):
|
||||||
raise NotImplementedError("Serialization of ByteBuffers is not supported.")
|
raise NotImplementedError("Serialization of ByteBuffers is not supported.")
|
||||||
|
|
||||||
def deserialize(context):
|
def deserialize(context):
|
||||||
byteBuf = context.readBinary()
|
byteBuf = context.readBinary()
|
||||||
return byteBuf
|
return byteBuf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,6 @@ from dynamicserialize.dstypes.java.util import EnumSet
|
||||||
|
|
||||||
ClassAdapter = ['java.util.EnumSet', 'java.util.RegularEnumSet']
|
ClassAdapter = ['java.util.EnumSet', 'java.util.RegularEnumSet']
|
||||||
|
|
||||||
|
|
||||||
def serialize(context, set):
|
def serialize(context, set):
|
||||||
setSize = len(set)
|
setSize = len(set)
|
||||||
context.writeI32(setSize)
|
context.writeI32(setSize)
|
||||||
|
@ -47,7 +46,6 @@ def serialize(context, set):
|
||||||
for val in set:
|
for val in set:
|
||||||
context.writeString(val)
|
context.writeString(val)
|
||||||
|
|
||||||
|
|
||||||
def deserialize(context):
|
def deserialize(context):
|
||||||
setSize = context.readI32()
|
setSize = context.readI32()
|
||||||
enumClassName = context.readString()
|
enumClassName = context.readString()
|
||||||
|
|
|
@ -34,13 +34,9 @@
|
||||||
|
|
||||||
ClassAdapter = ['java.nio.FloatBuffer', 'java.nio.HeapFloatBuffer']
|
ClassAdapter = ['java.nio.FloatBuffer', 'java.nio.HeapFloatBuffer']
|
||||||
|
|
||||||
|
|
||||||
def serialize(context, set):
|
def serialize(context, set):
|
||||||
raise NotImplementedError("Serialization of FloatBuffers is not supported.")
|
raise NotImplementedError("Serialization of FloatBuffers is not supported.")
|
||||||
|
|
||||||
def deserialize(context):
|
def deserialize(context):
|
||||||
floatBuf = context.readFloatArray()
|
floatBuf = context.readFloatArray()
|
||||||
return floatBuf
|
return floatBuf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -52,5 +52,3 @@ def deserialize(context):
|
||||||
systemLevel = context.readBool()
|
systemLevel = context.readBool()
|
||||||
level = LocalizationLevel(text, order, systemLevel=systemLevel)
|
level = LocalizationLevel(text, order, systemLevel=systemLevel)
|
||||||
return level
|
return level
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,6 @@ from dynamicserialize.dstypes.java.lang import StackTraceElement
|
||||||
|
|
||||||
ClassAdapter = 'java.lang.StackTraceElement'
|
ClassAdapter = 'java.lang.StackTraceElement'
|
||||||
|
|
||||||
|
|
||||||
def serialize(context, obj):
|
def serialize(context, obj):
|
||||||
raise dynamicserialize.SerializationException('Not implemented yet')
|
raise dynamicserialize.SerializationException('Not implemented yet')
|
||||||
|
|
||||||
|
@ -48,5 +47,3 @@ def deserialize(context):
|
||||||
result.setFileName(context.readString())
|
result.setFileName(context.readString())
|
||||||
result.setLineNumber(context.readI32())
|
result.setLineNumber(context.readI32())
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,13 +33,10 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
from dynamicserialize.dstypes.com.raytheon.uf.common.message import WsId
|
from dynamicserialize.dstypes.com.raytheon.uf.common.message import WsId
|
||||||
|
|
||||||
ClassAdapter = 'com.raytheon.uf.common.message.WsId'
|
ClassAdapter = 'com.raytheon.uf.common.message.WsId'
|
||||||
|
|
||||||
|
|
||||||
def serialize(context, wsId):
|
def serialize(context, wsId):
|
||||||
context.writeString(wsId.toString())
|
context.writeString(wsId.toString())
|
||||||
|
|
||||||
|
@ -55,4 +52,3 @@ def deserialize(context):
|
||||||
wsId.setThreadId(long(wsIdParts[4]))
|
wsId.setThreadId(long(wsIdParts[4]))
|
||||||
|
|
||||||
return wsId
|
return wsId
|
||||||
|
|
||||||
|
|
|
@ -80,6 +80,5 @@ def getAdapterRegistry():
|
||||||
raise LookupError('Adapter class ' + x + ' has no ClassAdapter field ' + \
|
raise LookupError('Adapter class ' + x + ' has no ClassAdapter field ' + \
|
||||||
'and cannot be registered.')
|
'and cannot be registered.')
|
||||||
|
|
||||||
|
|
||||||
getAdapterRegistry()
|
getAdapterRegistry()
|
||||||
|
|
||||||
|
|
|
@ -48,4 +48,3 @@ class DumpActiveTableResponse(object):
|
||||||
|
|
||||||
def setMessage(self, message):
|
def setMessage(self, message):
|
||||||
self.message = message
|
self.message = message
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
|
|
||||||
# File auto-generated against equivalent DynamicSerialize Java class
|
# File auto-generated against equivalent DynamicSerialize Java class
|
||||||
|
|
||||||
|
|
||||||
from dynamicserialize.dstypes.com.raytheon.uf.common.serialization.comm.response import ServerErrorResponse
|
from dynamicserialize.dstypes.com.raytheon.uf.common.serialization.comm.response import ServerErrorResponse
|
||||||
|
|
||||||
class AuthServerErrorResponse(ServerErrorResponse):
|
class AuthServerErrorResponse(ServerErrorResponse):
|
||||||
|
|
|
@ -29,13 +29,11 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
from awips.dataaccess import IDataRequest
|
from awips.dataaccess import IDataRequest
|
||||||
|
|
||||||
from dynamicserialize.dstypes.com.vividsolutions.jts.geom import Envelope
|
from dynamicserialize.dstypes.com.vividsolutions.jts.geom import Envelope
|
||||||
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.level import Level
|
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.level import Level
|
||||||
|
|
||||||
|
|
||||||
class DefaultDataRequest(IDataRequest):
|
class DefaultDataRequest(IDataRequest):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -31,10 +31,8 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.request import AbstractDataAccessRequest
|
from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.request import AbstractDataAccessRequest
|
||||||
|
|
||||||
|
|
||||||
class GetAvailableTimesRequest(AbstractDataAccessRequest):
|
class GetAvailableTimesRequest(AbstractDataAccessRequest):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
|
|
||||||
# File auto-generated against equivalent DynamicSerialize Java class
|
# File auto-generated against equivalent DynamicSerialize Java class
|
||||||
|
|
||||||
|
|
||||||
class GridDataHistory(object):
|
class GridDataHistory(object):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -24,7 +24,6 @@ import abc
|
||||||
|
|
||||||
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.server.request import GetGridRequest
|
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.server.request import GetGridRequest
|
||||||
|
|
||||||
|
|
||||||
class GetGridDataRequest(object):
|
class GetGridDataRequest(object):
|
||||||
__metaclass__ = abc.ABCMeta
|
__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.request import AbstractGfeRequest
|
||||||
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import DatabaseID
|
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import DatabaseID
|
||||||
|
|
||||||
|
|
||||||
class GetLatestDbTimeRequest(AbstractGfeRequest):
|
class GetLatestDbTimeRequest(AbstractGfeRequest):
|
||||||
|
|
||||||
def __init__(self, dbId=None):
|
def __init__(self, dbId=None):
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
|
|
||||||
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.request import AbstractGfeRequest
|
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.request import AbstractGfeRequest
|
||||||
|
|
||||||
|
|
||||||
class GetLatestModelDbIdRequest(AbstractGfeRequest):
|
class GetLatestModelDbIdRequest(AbstractGfeRequest):
|
||||||
|
|
||||||
def __init__(self, siteId=None, modelName=None):
|
def __init__(self, siteId=None, modelName=None):
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
|
|
||||||
import abc
|
import abc
|
||||||
|
|
||||||
|
|
||||||
class AbstractGridSlice(object):
|
class AbstractGridSlice(object):
|
||||||
__metaclass__ = abc.ABCMeta
|
__metaclass__ = abc.ABCMeta
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
|
|
||||||
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.slice import AbstractGridSlice
|
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.slice import AbstractGridSlice
|
||||||
|
|
||||||
|
|
||||||
class DiscreteGridSlice(AbstractGridSlice):
|
class DiscreteGridSlice(AbstractGridSlice):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from dynamicserialize.dstypes.com.raytheon.uf.common.localization.stream import AbstractLocalizationStreamRequest
|
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):
|
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