diff --git a/src/spyglass/position/v1/dlc_reader.py b/src/spyglass/position/v1/dlc_reader.py index aed66ac4a..8d6c18c23 100644 --- a/src/spyglass/position/v1/dlc_reader.py +++ b/src/spyglass/position/v1/dlc_reader.py @@ -114,7 +114,8 @@ def pkl(self): def yml(self): if self._yml is None: with open(self.yml_path, "rb") as f: - self._yml = yaml.safe_load(f) + safe_yaml = yaml.YAML(typ="safe", pure=True) + self._yml = safe_yaml.load(f) return self._yml @property