From 3b5204469275911e71176ae6318817dbe147aa2b Mon Sep 17 00:00:00 2001 From: Richard Hitier Date: Thu, 2 Jun 2022 15:32:42 +0200 Subject: [PATCH] Remove debug prints --- tests/BackendTests.py | 3 --- web/run.py | 8 -------- 2 files changed, 0 insertions(+), 11 deletions(-) diff --git a/tests/BackendTests.py b/tests/BackendTests.py index d0b3328..755806e 100644 --- a/tests/BackendTests.py +++ b/tests/BackendTests.py @@ -75,9 +75,6 @@ class AmdaTestCase(BaseTestCase): def test_read_nc(self): SCRIPT_PATH = os.path.dirname(__file__) PROJECT_DIR = os.path.abspath(os.path.join(SCRIPT_PATH, os.pardir)) - print("PROJECT_DIR", PROJECT_DIR) - print("SCRIPT_PATH", SCRIPT_PATH) - # return local_netc_file = os.path.join(PROJECT_DIR,'tests-resources', 'amda-irap-omp-eu-ddservice-base-data-omni-hour-omni202107010-nc') cdf_handle = Dataset(local_netc_file, "r", format="NETCDF4") default_nc_keys = { diff --git a/web/run.py b/web/run.py index 8c3dc3e..c0622b9 100644 --- a/web/run.py +++ b/web/run.py @@ -79,7 +79,6 @@ logHandler.setFormatter(logging.Formatter( )) log.addHandler(logHandler) - # HARDCODED CONFIGURATION ##################################################### ASTRONOMICAL_UNIT_IN_KM = 1.496e8 @@ -507,10 +506,6 @@ ORDER BY time_min, granule_gid 'external_link': row[3].text, }) - # print("Auroral emission query") - # print(query) - # print("Auroral emission rows") - # print(rows) return rows except Exception as e: @@ -916,7 +911,6 @@ def generate_csv_file_if_needed(target_slug, input_slug, if isfile(local_csv_file): log.warning("Removing failed CSV '%s'..." % local_csv_file) removefile(local_csv_file) - # pprint(e) abort(500, "Failed creating CSV '%s' : %s" % (filename, e)) @@ -1525,7 +1519,6 @@ def download_targets_cdf(targets, inp, started_at, stopped_at): for param in params: k = "%s_%s" % (target_slug, param) - # print("PARAM %s" % k) values = [] i = available_params.index(param) has_nones = False @@ -1605,7 +1598,6 @@ def download_auroral_catalog_csv(target): # Filter the emissions def _keep_emission(emission): ok = thumbnail_url_filter.match(emission['thumbnail_url']) - # print("ok", ok, emission['thumbnail_url']) return bool(ok) emissions = [e for e in emissions if _keep_emission(e)] -- libgit2 0.21.2