Skip to content

Commit

Permalink
Fix CR loading
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Feb 26, 2024
1 parent 296970e commit 98c8e3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion acto/post_process/post_diff_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(

Check warning on line 715 in acto/post_process/post_diff_test.py

View workflow job for this annotation

GitHub Actions / coverage-report

Missing coverage

Missing coverage on lines 713-715
json.dumps(seed_cr, sort_keys=True).encode("utf-8")
).hexdigest()
Expand Down

0 comments on commit 98c8e3f

Please sign in to comment.