Skip to content

Commit

Permalink
#56: fixed usage of max_... in stats
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-biasion committed Jul 8, 2024
1 parent 98d4dc7 commit a9b358d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions sxpat/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,11 @@ class Grid:
def __init__(self, spec_obj: TemplateSpecs):
self.__exact_name: str = spec_obj.exact_benchmark
self.__approximate_name: str = spec_obj.benchmark_name
self.__lpp: int = spec_obj.lpp
self.__lpp: int = spec_obj.max_lpp
if spec_obj.shared:
self.__ppo: int = spec_obj.pit
self.__ppo: int = spec_obj.max_pit
else:
self.__ppo: int = spec_obj.ppo
self.__ppo: int = spec_obj.max_ppo
self.__et: int = spec_obj.et

# Todo: pap is deprecated
Expand Down Expand Up @@ -354,13 +354,13 @@ def __init__(self, spec_obj: TemplateSpecs):
self.__template_name = spec_obj.template_name
self.__exact_name: str = spec_obj.exact_benchmark
self.__approximate_name: str = spec_obj.benchmark_name
self.__lpp: int = spec_obj.lpp
self.__lpp: int = spec_obj.max_lpp

self.__pit: int = spec_obj.pit
self.__pit: int = spec_obj.max_pit
if spec_obj.shared:
self.__ppo: int = spec_obj.pit
self.__ppo: int = spec_obj.max_pit
else:
self.__ppo: int = spec_obj.ppo
self.__ppo: int = spec_obj.max_ppo
self.__et: int = spec_obj.et
self.__shared: bool = spec_obj.shared
self.__subxpat: bool = spec_obj.subxpat
Expand Down
2 changes: 1 addition & 1 deletion sxpat/xplore.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def explore_grid(specs_obj: TemplateSpecs):

# todo:wip:marco: export subgraph
folder = 'output/gv/subgraphs'
graph_path = f'{folder}/{specs_obj.benchmark_name}_lpp{specs_obj.lpp}_ppo{specs_obj.ppo}_et{specs_obj.et}_mode{specs_obj.mode}_omax{specs_obj.omax}_serr{specs_obj.sub_error_function}.gv'
graph_path = f'{folder}/{specs_obj.benchmark_name}_et{specs_obj.et}_mode{specs_obj.mode}_omax{specs_obj.omax}_serr{specs_obj.sub_error_function}.gv'
FS.mkdir(folder)
current_graph.export_annotated_graph(graph_path)
print(f'subgraph exported at {graph_path}')
Expand Down

0 comments on commit a9b358d

Please sign in to comment.