Skip to content

Commit 2259ecc

Browse files
author
bruvio
committed
[skip ci] fix mypy errors [skip ci]
1 parent 850e811 commit 2259ecc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

data_pipeline_api/link.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# type: ignore
2-
31
import logging
42
import os
53
from typing import Any, Tuple
@@ -20,8 +18,8 @@ def resolve_write(
2018
for i in enumerate(handle["yaml"]["write"]):
2119
if i[1]["data_product"] == data_product:
2220
index = i[0]
23-
# if file_type is None:
24-
# file_type = "netcdf"
21+
if file_type is None:
22+
file_type = "netcdf"
2523
# Get metadata from config
2624
write = handle["yaml"]["write"][index]
2725
write_data_product = write["data_product"]
@@ -265,7 +263,7 @@ def read_array(handle: dict, data_product: str, component: str) -> Any:
265263
if data_product not in read_list:
266264
logging.info("Read information for data product not in config")
267265

268-
read_metadata = resolve_read(handle, data_product)
266+
path, read_metadata = resolve_read(handle, data_product)
269267
# Get metadata ------------------------------------------------------------
270268

271269
write_data_product = read_metadata["data_product"] # noqa: F841
@@ -345,7 +343,9 @@ def write_array(
345343
"Error: Write has not been specified in the given config file"
346344
)
347345

348-
write_metadata = resolve_write(handle, data_product, file_type="netcdf")
346+
path, write_metadata = resolve_write(
347+
handle, data_product, file_type="netcdf"
348+
)
349349
# Get metadata ------------------------------------------------------------
350350

351351
write_data_product = write_metadata["data_product"] # noqa: F841

0 commit comments

Comments
 (0)