Skip to content

Commit

Permalink
Replace deprecated yaml.safe_load calls (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
afonari authored Nov 10, 2023
1 parent 3ce107a commit 0332309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matminer/featurizers/site/fingerprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ def load_cn_motif_op_params():
with open(
os.path.join(os.path.dirname(pymatgen.analysis.local_env.__file__), "cn_opt_params.yaml"),
) as f:
return yaml.safe_load(f)
return yaml.YAML(typ="safe", pure=True).load(f)


def load_cn_target_motif_op():
Expand All @@ -884,4 +884,4 @@ def load_cn_target_motif_op():
(dict)
"""
with open(os.path.join(os.path.dirname(__file__), "cn_target_motif_op.yaml")) as f:
return yaml.safe_load(f)
return yaml.YAML(typ="safe", pure=True).load(f)

0 comments on commit 0332309

Please sign in to comment.