Skip to content

Commit

Permalink
connection: updated parsing config from yaml, test passes
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Sep 20, 2024
1 parent d6bc1a5 commit 18e0c70
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions omnipath_metabo/schema/_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(
self._parse_param()


def parse_param(self) -> None:
def _parse_param(self) -> None:

self._from_file()

Expand All @@ -25,10 +25,9 @@ def _from_file(self) -> None:

if isinstance(self._param, str) and os.path.exists(self._param):

self._param = yaml.load(
closing(open(self._param, 'r')),
Loader = yaml.FullLoader,
)
with closing(open(self._param, 'r')) as fp:

self._param = yaml.load(fp, Loader = yaml.FullLoader)

def _uri(self) -> str:

Expand Down

0 comments on commit 18e0c70

Please sign in to comment.