Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tethys4 upgrade #1

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
EricJJones marked this conversation as resolved.
Show resolved Hide resolved
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#b86877",
"activityBar.activeBorder": "#315729",
"activityBar.background": "#b86877",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#315729",
"activityBarBadge.foreground": "#e7e7e7",
"sash.hoverBorder": "#b86877",
"statusBar.background": "#a14c5c",
"statusBar.foreground": "#e7e7e7",
"statusBarItem.hoverBackground": "#b86877",
"statusBarItem.remoteBackground": "#a14c5c",
"statusBarItem.remoteForeground": "#e7e7e7",
"titleBar.activeBackground": "#a14c5c",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#a14c5c99",
"titleBar.inactiveForeground": "#e7e7e799"
},
"peacock.remoteColor": "#a14c5c"
}
111 changes: 1 addition & 110 deletions tethysapp/historical_validation_tool_colombia/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class HistoricalValidationToolColombia(TethysAppBase):
"""

name = 'Historical Validation Tool Colombia'
index = 'historical_validation_tool_colombia:home'
index = 'home'
icon = 'historical_validation_tool_colombia/images/historic_validation_colombia_logo.png'
package = 'historical_validation_tool_colombia'
root_url = 'historical-validation-tool-colombia'
Expand All @@ -30,115 +30,6 @@ def spatial_dataset_service_settings(self):
),
)

def url_maps(self):
"""
Add controllers
"""
UrlMap = url_map_maker(self.root_url)

url_maps = (
UrlMap(
name='home',
url='historical-validation-tool-colombia',
controller='historical_validation_tool_colombia.controllers.home'
),
UrlMap(
name='get_popup_response',
url='get-request-data',
controller='historical_validation_tool_colombia.controllers.get_popup_response'
),
UrlMap(
name='get_hydrographs',
url='get-hydrographs',
controller='historical_validation_tool_colombia.controllers.get_hydrographs'
),
UrlMap(
name='get_dailyAverages',
url='get-dailyAverages',
controller='historical_validation_tool_colombia.controllers.get_dailyAverages'
),
UrlMap(
name='get_monthlyAverages',
url='get-monthlyAverages',
controller='historical_validation_tool_colombia.controllers.get_monthlyAverages'
),
UrlMap(
name='get_scatterPlot',
url='get-scatterPlot',
controller='historical_validation_tool_colombia.controllers.get_scatterPlot'
),
UrlMap(
name='get_scatterPlotLogScale',
url='get-scatterPlotLogScale',
controller='historical_validation_tool_colombia.controllers.get_scatterPlotLogScale'
),
UrlMap(
name='get_volumeAnalysis',
url='get-volumeAnalysis',
controller='historical_validation_tool_colombia.controllers.get_volumeAnalysis'
),
UrlMap(
name='volume_table_ajax',
url='volume-table-ajax',
controller='historical_validation_tool_colombia.controllers.volume_table_ajax'
),
UrlMap(
name='make_table_ajax',
url='make-table-ajax',
controller='historical_validation_tool_colombia.controllers.make_table_ajax'
),
UrlMap(
name='get-available-dates',
url='ecmwf-rapid/get-available-dates',
controller='historical_validation_tool_colombia.controllers.get_available_dates'
),
UrlMap(
name='get-time-series',
url='get-time-series',
controller='historical_validation_tool_colombia.controllers.get_time_series'),
UrlMap(
name='get-time-series-bc',
url='get-time-series-bc',
controller='historical_validation_tool_colombia.controllers.get_time_series_bc'),
UrlMap(
name='get_observed_discharge_csv',
url='get-observed-discharge-csv',
controller='historical_validation_tool_colombia.controllers.get_observed_discharge_csv'
),
UrlMap(
name='get_simulated_discharge_csv',
url='get-simulated-discharge-csv',
controller='historical_validation_tool_colombia.controllers.get_simulated_discharge_csv'
),
UrlMap(
name='get_simulated_bc_discharge_csv',
url='get-simulated-bc-discharge-csv',
controller='historical_validation_tool_colombia.controllers.get_simulated_bc_discharge_csv'
),
UrlMap(
name='get_forecast_data_csv',
url='get-forecast-data-csv',
controller='historical_validation_tool_colombia.controllers.get_forecast_data_csv'
),
UrlMap(
name='get_forecast_bc_data_csv',
url='get-forecast-bc-data-csv',
controller='historical_validation_tool_colombia.controllers.get_forecast_bc_data_csv'
),
UrlMap(
name='get_forecast_ensemble_data_csv',
url='get-forecast-ensemble-data-csv',
controller='historical_validation_tool_colombia.controllers.get_forecast_ensemble_data_csv'
),
UrlMap(
name='get_forecast_ensemble_bc_data_csv',
url='get-forecast-ensemble-bc-data-csv',
controller='historical_validation_tool_colombia.controllers.get_forecast_ensemble_bc_data_csv'
),
)

return url_maps

def custom_settings(self):
return (
CustomSetting(
Expand Down
Loading