diff --git a/acto/post_process/post_diff_test.py b/acto/post_process/post_diff_test.py index a1c81687cf..33f84e96e4 100644 --- a/acto/post_process/post_diff_test.py +++ b/acto/post_process/post_diff_test.py @@ -18,6 +18,7 @@ import pandas as pd import pydantic +import yaml from deepdiff import DeepDiff from deepdiff.helper import CannotCompare from deepdiff.model import DiffLevel, TreeResult @@ -710,7 +711,7 @@ def check(self, workdir: str, num_workers: int = 1): trial_dirs = glob.glob(os.path.join(workdir, "trial-*")) with open(self.config.seed_custom_resource, "r", encoding="utf-8") as f: - seed_cr = json.load(f) + seed_cr = yaml.load(f, Loader=yaml.FullLoader) seed_input_digest = hashlib.md5( json.dumps(seed_cr, sort_keys=True).encode("utf-8") ).hexdigest()