Skip to content
Snippets Groups Projects
Commit 13b80690 authored by Bruce Flynn's avatar Bruce Flynn
Browse files

Use interface for model from MetObsCommon

parent b67c3e5a
No related branches found
No related tags found
No related merge requests found
...@@ -5,9 +5,10 @@ from datetime import datetime, timedelta ...@@ -5,9 +5,10 @@ from datetime import datetime, timedelta
import rrdtool import rrdtool
import numpy as np import numpy as np
from zope.interface import implementer
from metobs.data import wind_vector_degrees, to_unix_timestamp from metobs.data import wind_vector_degrees, to_unix_timestamp
from aosstower import meta from metobscommon import interface
class ModelError(Exception): class ModelError(Exception):
...@@ -76,6 +77,7 @@ def initialize(filepath, start=None, days=365, data_interval=5): ...@@ -76,6 +77,7 @@ def initialize(filepath, start=None, days=365, data_interval=5):
@WrapErrors(rrdtool.error) @WrapErrors(rrdtool.error)
@implementer(interface.Model)
class RrdModel(object): class RrdModel(object):
"""Model for storing the Level0 uncalibrated data for non-scientific """Model for storing the Level0 uncalibrated data for non-scientific
purposes, such as web-widgets. purposes, such as web-widgets.
......
...@@ -13,7 +13,8 @@ setup( ...@@ -13,7 +13,8 @@ setup(
install_requires=[ install_requires=[
'python-rrdtool', 'python-rrdtool',
'numpy', 'numpy',
'metobs.data>=0.4a' 'metobs.data>=0.4a',
'MetObsCommon>=0.1dev'
], ],
dependency_links=['http://larch.ssec.wisc.edu/cgi-bin/repos.cgi'], dependency_links=['http://larch.ssec.wisc.edu/cgi-bin/repos.cgi'],
packages=find_packages(exclude=['aosstower.tests']), packages=find_packages(exclude=['aosstower.tests']),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment