Commit 3b5204469275911e71176ae6318817dbe147aa2b
1 parent
ef5e6fdf
Exists in
rhitier-dev
and in
1 other branch
Remove debug prints
Showing
2 changed files
with
0 additions
and
11 deletions
Show diff stats
tests/BackendTests.py
@@ -75,9 +75,6 @@ class AmdaTestCase(BaseTestCase): | @@ -75,9 +75,6 @@ class AmdaTestCase(BaseTestCase): | ||
75 | def test_read_nc(self): | 75 | def test_read_nc(self): |
76 | SCRIPT_PATH = os.path.dirname(__file__) | 76 | SCRIPT_PATH = os.path.dirname(__file__) |
77 | PROJECT_DIR = os.path.abspath(os.path.join(SCRIPT_PATH, os.pardir)) | 77 | PROJECT_DIR = os.path.abspath(os.path.join(SCRIPT_PATH, os.pardir)) |
78 | - print("PROJECT_DIR", PROJECT_DIR) | ||
79 | - print("SCRIPT_PATH", SCRIPT_PATH) | ||
80 | - # return | ||
81 | local_netc_file = os.path.join(PROJECT_DIR,'tests-resources', 'amda-irap-omp-eu-ddservice-base-data-omni-hour-omni202107010-nc') | 78 | local_netc_file = os.path.join(PROJECT_DIR,'tests-resources', 'amda-irap-omp-eu-ddservice-base-data-omni-hour-omni202107010-nc') |
82 | cdf_handle = Dataset(local_netc_file, "r", format="NETCDF4") | 79 | cdf_handle = Dataset(local_netc_file, "r", format="NETCDF4") |
83 | default_nc_keys = { | 80 | default_nc_keys = { |
web/run.py
@@ -79,7 +79,6 @@ logHandler.setFormatter(logging.Formatter( | @@ -79,7 +79,6 @@ logHandler.setFormatter(logging.Formatter( | ||
79 | )) | 79 | )) |
80 | log.addHandler(logHandler) | 80 | log.addHandler(logHandler) |
81 | 81 | ||
82 | - | ||
83 | # HARDCODED CONFIGURATION ##################################################### | 82 | # HARDCODED CONFIGURATION ##################################################### |
84 | 83 | ||
85 | ASTRONOMICAL_UNIT_IN_KM = 1.496e8 | 84 | ASTRONOMICAL_UNIT_IN_KM = 1.496e8 |
@@ -507,10 +506,6 @@ ORDER BY time_min, granule_gid | @@ -507,10 +506,6 @@ ORDER BY time_min, granule_gid | ||
507 | 'external_link': row[3].text, | 506 | 'external_link': row[3].text, |
508 | }) | 507 | }) |
509 | 508 | ||
510 | - # print("Auroral emission query") | ||
511 | - # print(query) | ||
512 | - # print("Auroral emission rows") | ||
513 | - # print(rows) | ||
514 | 509 | ||
515 | return rows | 510 | return rows |
516 | except Exception as e: | 511 | except Exception as e: |
@@ -916,7 +911,6 @@ def generate_csv_file_if_needed(target_slug, input_slug, | @@ -916,7 +911,6 @@ def generate_csv_file_if_needed(target_slug, input_slug, | ||
916 | if isfile(local_csv_file): | 911 | if isfile(local_csv_file): |
917 | log.warning("Removing failed CSV '%s'..." % local_csv_file) | 912 | log.warning("Removing failed CSV '%s'..." % local_csv_file) |
918 | removefile(local_csv_file) | 913 | removefile(local_csv_file) |
919 | - # pprint(e) | ||
920 | abort(500, "Failed creating CSV '%s' : %s" % (filename, e)) | 914 | abort(500, "Failed creating CSV '%s' : %s" % (filename, e)) |
921 | 915 | ||
922 | 916 | ||
@@ -1525,7 +1519,6 @@ def download_targets_cdf(targets, inp, started_at, stopped_at): | @@ -1525,7 +1519,6 @@ def download_targets_cdf(targets, inp, started_at, stopped_at): | ||
1525 | 1519 | ||
1526 | for param in params: | 1520 | for param in params: |
1527 | k = "%s_%s" % (target_slug, param) | 1521 | k = "%s_%s" % (target_slug, param) |
1528 | - # print("PARAM %s" % k) | ||
1529 | values = [] | 1522 | values = [] |
1530 | i = available_params.index(param) | 1523 | i = available_params.index(param) |
1531 | has_nones = False | 1524 | has_nones = False |
@@ -1605,7 +1598,6 @@ def download_auroral_catalog_csv(target): | @@ -1605,7 +1598,6 @@ def download_auroral_catalog_csv(target): | ||
1605 | # Filter the emissions | 1598 | # Filter the emissions |
1606 | def _keep_emission(emission): | 1599 | def _keep_emission(emission): |
1607 | ok = thumbnail_url_filter.match(emission['thumbnail_url']) | 1600 | ok = thumbnail_url_filter.match(emission['thumbnail_url']) |
1608 | - # print("ok", ok, emission['thumbnail_url']) | ||
1609 | return bool(ok) | 1601 | return bool(ok) |
1610 | 1602 | ||
1611 | emissions = [e for e in emissions if _keep_emission(e)] | 1603 | emissions = [e for e in emissions if _keep_emission(e)] |