Skip to content

Commit

Permalink
update yaml safe load in dlc_reader
Browse files Browse the repository at this point in the history
  • Loading branch information
sidhulyalkar committed Dec 6, 2023
1 parent 7c8ccdd commit b4a6ae0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 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,7 +145,8 @@ def yml(self):
"""json-structured config.yaml file contents"""
if self._yml is None:
with open(self.yml_path, "rb") as f:
self._yml = yaml.safe_load(f)
yaml = YAML(typ="safe", pure=True)
self._yml = yaml.load(f)
return self._yml

@property
Expand Down

0 comments on commit b4a6ae0

Please sign in to comment.