From a896b13e2f844eb4400507e5e89f03417080b480 Mon Sep 17 00:00:00 2001 From: Mattia Mancini <mancini@astron.nl> Date: Mon, 4 Jun 2018 08:38:09 +0000 Subject: [PATCH] Story SW-300: removed unimplemented feature --- LCU/Maintenance/MDB_tools/cli/probe_mdb.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/LCU/Maintenance/MDB_tools/cli/probe_mdb.py b/LCU/Maintenance/MDB_tools/cli/probe_mdb.py index 6bcbe8589b2..147e82cdcd9 100644 --- a/LCU/Maintenance/MDB_tools/cli/probe_mdb.py +++ b/LCU/Maintenance/MDB_tools/cli/probe_mdb.py @@ -9,7 +9,6 @@ import beautifultable import blessings from collections import Counter import requests -from pandas.io.json import json_normalize from operator import itemgetter logger = logging.getLogger('probe_mdb') @@ -29,7 +28,8 @@ def setup_argument_parser(): parser.add_argument('--station', help='select a specific station. es. CS001C', default=None) parser.add_argument('--station_type', help='select a specific station type. es. I', choices=['C', 'R', 'I']) parser.add_argument('--last-month', help='select the last month results', action='store_true') - parser.add_argument('--to_csv', help='prints results into a csv file', default=None) + # TODO implement it + #parser.add_argument('--to_csv', help='prints results into a csv file', default=None) return parser @@ -68,12 +68,6 @@ def perform_query(query_string, address, next_url=None): return [] -def result_to_pandas(result): - print(result) - dataframe = json_normalize(result, meta=['start_time', 'end_time', 'station_name', 'resource_type', 'component_id']) - return dataframe - - def get_query_string_for_time_limit(from_date, to_date): """ Create the query string to query the data in a certain time stamp -- GitLab