Skip to content

Commit

Permalink
replace deprecated yaml.safe_load function
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelbray32 committed Feb 19, 2024
1 parent 4d33438 commit 7ecc7d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spyglass/position/v1/dlc_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ecc7d8

Please sign in to comment.