Skip to content
Snippets Groups Projects
Verified Commit 8488287a authored by Owen Graham's avatar Owen Graham
Browse files

Move Flask app into package `visualizer`

parent 40a8f351
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ import matplotlib.pyplot as plt ...@@ -12,7 +12,7 @@ import matplotlib.pyplot as plt
import numpy as np import numpy as np
from pyld import jsonld from pyld import jsonld
import data_spec from . import data_spec
Measurement = make_dataclass('Measurement', ['url_name', 'field', 'title']) Measurement = make_dataclass('Measurement', ['url_name', 'field', 'title'])
measurements = {m.url_name: m for m in ( measurements = {m.url_name: m for m in (
...@@ -335,7 +335,3 @@ def read_data(station, year): ...@@ -335,7 +335,3 @@ def read_data(station, year):
# Sort by date, since monthly URLs will be out of order. # Sort by date, since monthly URLs will be out of order.
data = data[data[:, 0].argsort()] data = data[data[:, 0].argsort()]
return data return data
if __name__ == '__main__':
app.run()
"""Run the visualizer."""
from . import app
if __name__ == '__main__':
app.run()
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment