Skip to content

Commit

Permalink
Add distribution file in otbenchmark rep.
Browse files Browse the repository at this point in the history
  • Loading branch information
efekhari27 committed Jun 8, 2020
1 parent c0aff65 commit e0a7adc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion otbenchmark/BBRCDistribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion otbenchmark/RequestedBBRCProblem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e0a7adc

Please sign in to comment.