Skip to content

Commit

Permalink
DAS-2292: removes Logger from unused places
Browse files Browse the repository at this point in the history
  • Loading branch information
flamingbear committed Jan 30, 2025
1 parent e1531f5 commit d42750c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 1 addition & 3 deletions harmony_service/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ def process_item(self, item: Item, source: HarmonySource) -> Item:
asset.href, is_regridded=True, ext='.nc'
)

transform_l2g_input(
input_filepath, working_filename, logger=self.logger
)
transform_l2g_input(input_filepath, working_filename)

# Stage the transformed output:
staged_url = stage(
Expand Down
9 changes: 3 additions & 6 deletions smap_l2_gridder/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"""

from collections.abc import Iterable
from logging import Logger
from pathlib import Path

import numpy as np
Expand All @@ -20,18 +19,16 @@
from .crs import compute_dims, create_crs, parse_gpd_file


def transform_l2g_input(
input_filename: Path, output_filename: Path, logger: Logger
) -> None:
def transform_l2g_input(input_filename: Path, output_filename: Path) -> None:
"""Entrypoint for L2G-Gridding-Service.
Opens input and processes the data to a new output file.
"""
with open_datatree(input_filename, decode_times=False) as in_data:
process_input(in_data, output_filename, logger=logger)
process_input(in_data, output_filename)


def process_input(in_data: DataTree, output_file: Path, logger: None | Logger = None):
def process_input(in_data: DataTree, output_file: Path):
"""Process input file to generate gridded output file."""
out_data = DataTree()

Expand Down

0 comments on commit d42750c

Please sign in to comment.