Skip to content

Commit

Permalink
clean code from debug (#182)
Browse files Browse the repository at this point in the history
* clean code from debug print

* fix lint
  • Loading branch information
danangmassandy authored Oct 10, 2024
1 parent 678893e commit 81aee2c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
12 changes: 0 additions & 12 deletions django_project/gap/ingestor/tio_shortterm.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import traceback
import uuid
import zipfile
import fsspec
import numpy as np
import pandas as pd
import xarray as xr
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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)
2 changes: 0 additions & 2 deletions django_project/gap/tests/providers/test_cbam.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 81aee2c

Please sign in to comment.