Skip to content

Instantly share code, notes, and snippets.

@lukecampbell
Created August 2, 2012 13:14
Show Gist options
  • Save lukecampbell/3237025 to your computer and use it in GitHub Desktop.
Save lukecampbell/3237025 to your computer and use it in GitHub Desktop.
diff --git a/ion/processes/data/transforms/viz/google_dt.py b/ion/processes/data/transforms/viz/google_dt.py
index ae75be0..1deb71d 100644
--- a/ion/processes/data/transforms/viz/google_dt.py
+++ b/ion/processes/data/transforms/viz/google_dt.py
@@ -6,7 +6,7 @@
'''
-from pyon.ion.transform import TransformFunction
+from pyon.ion.transforma import TransformAlgorithm
from pyon.service.service import BaseService
from pyon.core.exception import BadRequest
from pyon.public import IonObject, RT, log
@@ -27,7 +27,7 @@ tx = TaxyTool()
tx.add_taxonomy_set('google_dt_components','Google datatable')
-class VizTransformGoogleDT(TransformFunction):
+class VizTransformGoogleDT(TransformAlgorithm):
"""
This class is used for converting incoming data from CDM format to JSON style Google DataTables
@@ -53,8 +53,8 @@ class VizTransformGoogleDT(TransformFunction):
def on_start(self):
super(VizTransformGoogleDT,self).on_start()
-
- def execute(self, granule):
+ @staticmethod
+ def execute(granule):
log.debug('(Google DT transform): Received Viz Data Packet' )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment