From e0a7adc7d22aec3211edac9141494965952866c7 Mon Sep 17 00:00:00 2001 From: Elias Fekhari Date: Mon, 8 Jun 2020 17:38:28 +0200 Subject: [PATCH] Add distribution file in otbenchmark rep. --- otbenchmark/BBRCDistribution.py | 2 +- otbenchmark/RequestedBBRCProblem.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/otbenchmark/BBRCDistribution.py b/otbenchmark/BBRCDistribution.py index 1f6eb7b..90c4f5f 100644 --- a/otbenchmark/BBRCDistribution.py +++ b/otbenchmark/BBRCDistribution.py @@ -57,7 +57,7 @@ def switch_build_dist(dist_name, a, b, mean, std): types = ["i4", "i4", "i4", "i4", "U15", "f8", "f8", "f8", "f8", "f8", "f8"] bbrc_dist_table = np.genfromtxt( - "./distributions/probabilistic_models.csv", + "/otbenchmark/distributions/probabilistic_models.csv", dtype=types, delimiter=",", names=True, diff --git a/otbenchmark/RequestedBBRCProblem.py b/otbenchmark/RequestedBBRCProblem.py index 5e7d1b3..f75bc6f 100644 --- a/otbenchmark/RequestedBBRCProblem.py +++ b/otbenchmark/RequestedBBRCProblem.py @@ -50,7 +50,10 @@ def g_fun(x): # BBRCResults types = ["i4", "i4", "i4", "f8"] bbrc_result_table = np.genfromtxt( - "./distributions/beta_results.csv", dtype=types, delimiter=",", names=True + "/otbenchmark/distributions/beta_results.csv", + dtype=types, + delimiter=",", + names=True, ) my_result = bbrc_result_table[ (bbrc_result_table["problem_id"] == self.problem_id)