Skip to content

Commit

Permalink
Rename __DEFAULT_MINHEAP
Browse files Browse the repository at this point in the history
Fix #108
  • Loading branch information
caizixian authored Jul 22, 2024
1 parent 10d5d2c commit 9cc2bbb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/running/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import os.path

__DRY_RUN = False
__DEFAULT_MINHEAP = 4096
DEFAULT_MINHEAP = 4096


def is_dry_run():
Expand Down Expand Up @@ -238,11 +238,11 @@ def get_minheap(self, bm: Benchmark) -> int:
name = bm.name
if not self.minheap:
logging.warning("No minheap_value of {} is selected".format(self))
return __DEFAULT_MINHEAP
return DEFAULT_MINHEAP
minheap = self.minheap_values[self.minheap]
if name not in minheap:
logging.warning("Minheap for {} of {} not set".format(name, self))
return __DEFAULT_MINHEAP
return DEFAULT_MINHEAP
return minheap[name]

def is_passed(self, output: bytes) -> bool:
Expand Down Expand Up @@ -395,11 +395,11 @@ def get_minheap(self, bm: Benchmark) -> int:
name = bm.name
if not self.minheap:
logging.warning("No minheap_value of {} is selected".format(self))
return __DEFAULT_MINHEAP
return DEFAULT_MINHEAP
minheap = self.minheap_values[self.minheap]
if name not in minheap:
logging.warning("Minheap for {} of {} not set".format(name, self))
return __DEFAULT_MINHEAP
return DEFAULT_MINHEAP
return minheap[name]

def is_passed(self, output: bytes) -> bool:
Expand Down Expand Up @@ -497,11 +497,11 @@ def get_minheap(self, bm: Benchmark) -> int:
name = bm.name
if not self.minheap:
logging.warning("No minheap_value of {} is selected".format(self))
return __DEFAULT_MINHEAP
return DEFAULT_MINHEAP
minheap = self.minheap_values[self.minheap]
if name not in minheap:
logging.warning("Minheap for {} of {} not set".format(name, self))
return __DEFAULT_MINHEAP
return DEFAULT_MINHEAP
return minheap[name]

def get_benchmark(self, bm_spec: Union[str, Dict[str, Any]]) -> "JuliaBenchmark":
Expand Down

0 comments on commit 9cc2bbb

Please sign in to comment.