Skip to content

Commit

Permalink
tests: go back to the original code. Tests should now succeed on ubun…
Browse files Browse the repository at this point in the history
…tu and fail on MacOS
  • Loading branch information
muxator committed Sep 10, 2024
1 parent 65d3dfe commit 3b7c479
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import models.simple_models as md

from black_it.calibrator import Calibrator
from black_it.loss_functions.minkowski import MinkowskiLoss
from black_it.loss_functions.msm import MethodOfMomentsLoss
from black_it.samplers.best_batch import BestBatchSampler
from black_it.samplers.halton import HaltonSampler
from black_it.samplers.random_forest import RandomForestSampler
Expand Down Expand Up @@ -53,7 +53,7 @@
print("Real data:", real_data)

# define a loss
loss = MinkowskiLoss()
loss = MethodOfMomentsLoss()

# define the calibration seed
calibration_seed = 1
Expand Down
2 changes: 1 addition & 1 deletion tests/test_examples/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


TRUE_PARAMETERS_STR = "True parameters: [0.2, 0.2, 0.75]"
BEST_PARAMETERS_STR = "Best parameters found: [0.11 0.13 0.87]"
BEST_PARAMETERS_STR = "Best parameters found: [0.19 0.21 0.68]"


class TestMainExample(BaseMainExampleTestClass):
Expand Down

0 comments on commit 3b7c479

Please sign in to comment.