From 81aee2cb2f08f3c0c71479cfc678959df4be4fe9 Mon Sep 17 00:00:00 2001 From: Danang Date: Thu, 10 Oct 2024 12:55:12 +0100 Subject: [PATCH] clean code from debug (#182) * clean code from debug print * fix lint --- django_project/gap/ingestor/tio_shortterm.py | 12 ------------ django_project/gap/tests/providers/test_cbam.py | 2 -- 2 files changed, 14 deletions(-) diff --git a/django_project/gap/ingestor/tio_shortterm.py b/django_project/gap/ingestor/tio_shortterm.py index 7d0aed3..94f9cdd 100644 --- a/django_project/gap/ingestor/tio_shortterm.py +++ b/django_project/gap/ingestor/tio_shortterm.py @@ -11,7 +11,6 @@ import traceback import uuid import zipfile -import fsspec import numpy as np import pandas as pd import xarray as xr @@ -603,7 +602,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 +666,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 29027ae..f673deb 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)