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 | 75 | def test_read_nc(self): |
76 | 76 | SCRIPT_PATH = os.path.dirname(__file__) |
77 | 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 | 78 | local_netc_file = os.path.join(PROJECT_DIR,'tests-resources', 'amda-irap-omp-eu-ddservice-base-data-omni-hour-omni202107010-nc') |
82 | 79 | cdf_handle = Dataset(local_netc_file, "r", format="NETCDF4") |
83 | 80 | default_nc_keys = { | ... | ... |
web/run.py
... | ... | @@ -79,7 +79,6 @@ logHandler.setFormatter(logging.Formatter( |
79 | 79 | )) |
80 | 80 | log.addHandler(logHandler) |
81 | 81 | |
82 | - | |
83 | 82 | # HARDCODED CONFIGURATION ##################################################### |
84 | 83 | |
85 | 84 | ASTRONOMICAL_UNIT_IN_KM = 1.496e8 |
... | ... | @@ -507,10 +506,6 @@ ORDER BY time_min, granule_gid |
507 | 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 | 510 | return rows |
516 | 511 | except Exception as e: |
... | ... | @@ -916,7 +911,6 @@ def generate_csv_file_if_needed(target_slug, input_slug, |
916 | 911 | if isfile(local_csv_file): |
917 | 912 | log.warning("Removing failed CSV '%s'..." % local_csv_file) |
918 | 913 | removefile(local_csv_file) |
919 | - # pprint(e) | |
920 | 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 | 1519 | |
1526 | 1520 | for param in params: |
1527 | 1521 | k = "%s_%s" % (target_slug, param) |
1528 | - # print("PARAM %s" % k) | |
1529 | 1522 | values = [] |
1530 | 1523 | i = available_params.index(param) |
1531 | 1524 | has_nones = False |
... | ... | @@ -1605,7 +1598,6 @@ def download_auroral_catalog_csv(target): |
1605 | 1598 | # Filter the emissions |
1606 | 1599 | def _keep_emission(emission): |
1607 | 1600 | ok = thumbnail_url_filter.match(emission['thumbnail_url']) |
1608 | - # print("ok", ok, emission['thumbnail_url']) | |
1609 | 1601 | return bool(ok) |
1610 | 1602 | |
1611 | 1603 | emissions = [e for e in emissions if _keep_emission(e)] | ... | ... |