Skip to content

Commit

Permalink
Refactor YAML loader instant. for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
MilagrosMarin committed Jan 4, 2024
1 parent cd358eb commit abc10df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions element_deeplabcut/readers/dlc_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pandas as pd
from pathlib import Path
import pickle
import ruamel.yaml as yaml
from ruamel.yaml import YAML
from element_interface.utils import find_root_directory, dict_to_uuid
from .. import model
from ..model import get_dlc_root_data_dir
Expand Down Expand Up @@ -145,8 +145,8 @@ def yml(self):
"""json-structured config.yaml file contents"""
if self._yml is None:
with open(self.yml_path, "rb") as f:
yaml_loader = yaml.YAML(typ="safe", pure=True)
self._yml = yaml_loader.load(f)
yaml = YAML(typ="safe", pure=True)
self._yml = yaml.load(f)
return self._yml

@property
Expand Down

0 comments on commit abc10df

Please sign in to comment.