Skip to content

Commit

Permalink
Fix platform check
Browse files Browse the repository at this point in the history
  • Loading branch information
relf committed Dec 5, 2023
1 parent 58d419b commit f11119c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smt/applications/tests/test_ego.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import os
import unittest
import numpy as np
from sys import argv
from sys import argv, platform

try:
import matplotlib
Expand Down Expand Up @@ -1005,7 +1005,7 @@ def f_obj(X):
)
x_opt, y_opt, dnk, x_data, y_data = ego.optimize(fun=f_obj)
if ds.HAS_CONFIG_SPACE: # results differs wrt config_space impl
if os.platform.system() == "Linux": # results differs wrt platform
if platform == "Linux": # results differs wrt platform
self.assertAlmostEqual(np.sum(y_data), 1.0355815090110578, delta=1e-12)
self.assertAlmostEqual(np.sum(x_data), 38.23494224077761, delta=1e-12)
else:
Expand Down

0 comments on commit f11119c

Please sign in to comment.