From e0f7278b918e75a8cb506911555b49c0972dd699 Mon Sep 17 00:00:00 2001 From: Danang Massandy Date: Thu, 10 Oct 2024 10:55:30 +0100 Subject: [PATCH] clean code from debug print --- django_project/gap/ingestor/tio_shortterm.py | 11 ----------- django_project/gap/tests/providers/test_cbam.py | 2 -- 2 files changed, 13 deletions(-) diff --git a/django_project/gap/ingestor/tio_shortterm.py b/django_project/gap/ingestor/tio_shortterm.py index 7d0aed3a..91434d4d 100644 --- a/django_project/gap/ingestor/tio_shortterm.py +++ b/django_project/gap/ingestor/tio_shortterm.py @@ -603,7 +603,6 @@ def _process_tio_shortterm_data( :rtype: dict """ zip_file_list = zip_file.namelist() - print(f'name list {zip_file_list}') count = 0 data_shape = ( 1, @@ -668,13 +667,3 @@ def _process_tio_shortterm_data( del new_data return warnings, count - - def verify(self): - """Verify the resulting zarr file.""" - zarr_url = ( - BaseZarrReader.get_zarr_base_url(self.s3) + - self.datasource_file.name - ) - s3_mapper = fsspec.get_mapper(zarr_url, **self.s3_options) - self.zarr_ds = xr.open_zarr(s3_mapper, consolidated=True) - print(self.zarr_ds) diff --git a/django_project/gap/tests/providers/test_cbam.py b/django_project/gap/tests/providers/test_cbam.py index 29027ae9..f673deb6 100644 --- a/django_project/gap/tests/providers/test_cbam.py +++ b/django_project/gap/tests/providers/test_cbam.py @@ -196,8 +196,6 @@ def test_read_from_points(self): self.xrDataset, ['max_total_temperature'], self.dt1, self.dt2 ) - print(ds) val = ds['max_total_temperature'].values - print(val) self.assertAlmostEqual(val[0][0][0], 0.26790932) self.assertAlmostEqual(val[0][1][1], 0.50810691)