Skip to content

Commit

Permalink
clean code from debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
danangmassandy committed Oct 10, 2024
1 parent 678893e commit e0f7278
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
11 changes: 0 additions & 11 deletions django_project/gap/ingestor/tio_shortterm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
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 e0f7278

Please sign in to comment.