From a6ab8b83546d7fbd379b69a7499de86d29f509ca Mon Sep 17 00:00:00 2001 From: Chris Leaman Date: Tue, 18 Dec 2018 14:45:28 +1100 Subject: [PATCH] Clean up cli --- src/cli.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/cli.py b/src/cli.py index e227868..f617459 100644 --- a/src/cli.py +++ b/src/cli.py @@ -2,18 +2,17 @@ Entry point to run data processing and analysis commands. """ +# Disable numpy warnings +import warnings + import click -import data.parse_mat as parse_mat -import data.parse_shp as profile_features -import data.csv_to_shp as csv_to_shp import analysis.forecast_twl as forecast_twl import analysis.forecasted_storm_impacts as forecasted_storm_impacts import analysis.observed_storm_impacts as observed_storm_impacts import data.apply_manual_overwrites as apply_manual_overwrites - -# Disable numpy warnings -import warnings +import data.csv_to_geojson as csv_to_geojson +import data.parse_mat as parse_mat warnings.simplefilter(action="ignore", category=FutureWarning) @@ -24,14 +23,16 @@ def cli(): if __name__ == "__main__": - cli.add_command(parse_mat.create_waves_csv) - cli.add_command(parse_mat.create_sites_and_profiles_csv) - cli.add_command(parse_mat.create_tides_csv) - cli.add_command(parse_mat.create_profile_features) - # cli.add_command(profile_features.create_profile_features) - cli.add_command(csv_to_shp.sites_csv_to_geojson) + cli.add_command(apply_manual_overwrites.apply_profile_features_overwrite) + cli.add_command(csv_to_geojson.impacts_to_geojson) + cli.add_command(csv_to_geojson.profile_features_to_geojson) + cli.add_command(csv_to_geojson.R_high_to_geojson) + cli.add_command(csv_to_geojson.sites_csv_to_geojson) cli.add_command(forecast_twl.create_twl_forecast) cli.add_command(forecasted_storm_impacts.create_forecasted_impacts) cli.add_command(observed_storm_impacts.create_observed_impacts) - cli.add_command(apply_manual_overwrites.apply_profile_features_overwrite) + cli.add_command(parse_mat.create_profile_features) + cli.add_command(parse_mat.create_sites_and_profiles_csv) + cli.add_command(parse_mat.create_tides_csv) + cli.add_command(parse_mat.create_waves_csv) cli()