Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AossTower
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MetObs
AossTower
Commits
13b80690
Commit
13b80690
authored
10 years ago
by
Bruce Flynn
Browse files
Options
Downloads
Patches
Plain Diff
Use interface for model from MetObsCommon
parent
b67c3e5a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aosstower/model.py
+3
-1
3 additions, 1 deletion
aosstower/model.py
setup.py
+2
-1
2 additions, 1 deletion
setup.py
with
5 additions
and
2 deletions
aosstower/model.py
+
3
−
1
View file @
13b80690
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
2
−
1
View file @
13b80690
...
@@ -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
'
]),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment