Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
danbryce committed Nov 10, 2023
1 parent d1e890a commit 4fb1c5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion resources/cached/068cef77-839d-49be-9191-3502ee6d5240.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@
"num_steps": 2,
"step_size": 1,
"num_initial_boxes": 1,
"save_smtlib": "my.smt2",
"dreal_precision": 0.001,
"dreal_log_level": "off",
"constraint_noise": 0.0,
Expand Down
5 changes: 4 additions & 1 deletion test/test_plot_parameter_space.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import os
import unittest

Expand All @@ -24,7 +25,9 @@ def test_plot(self):
for job in jobs:
results_file = os.path.join(RESOURCES, "cached", f"{job}.json")
with open(results_file, "r") as f:
results: FunmanResults = FunmanResults.model_validate(f)
results: FunmanResults = FunmanResults.model_validate(
json.load(f)
)
ParameterSpacePlotter(
results.parameter_space, plot_points=True
).plot(show=False)
Expand Down

0 comments on commit 4fb1c5f

Please sign in to comment.