Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
savente93 committed Mar 29, 2024
1 parent e8e350b commit d7a6e66
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions hydromt/cli/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from typing import Any, Dict, Optional, Union

import click
import yaml

from hydromt._typing.error import DeprecatedError
from hydromt.io import configread
Expand Down Expand Up @@ -105,12 +104,3 @@ def parse_config(
for option, value in opt_cli[section].items():
opt[section].update({option: value})
return opt


def parse_export_config_yaml(ctx, param, value) -> Dict[str, Any]:
if value:
with open(value, "r") as stream:
yml = yaml.load(stream, Loader=yaml.FullLoader)
return yml
else:
return {}
1 change: 0 additions & 1 deletion tests/components/test_kernel_config_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def test_config_dict():
return {
"section1": {
"list": [1, 2, 3],
# "tuple": (1, "b"), # yaml cannot deal with tuple
"bool": True,
"str": "test",
"int": 1,
Expand Down

0 comments on commit d7a6e66

Please sign in to comment.