Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Mar 5, 2024
1 parent 0241f63 commit 6152ec1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions seal5/pass_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,6 @@ def collect_operand_types(
**kwargs,
):
assert inplace
# print("input_file", input_file)
# input(">")
input_file = settings.models_dir / f"{input_model}.seal5model"
assert input_file.is_file(), f"File not found: {input_file}"
name = input_file.name
Expand Down Expand Up @@ -573,7 +571,6 @@ def write_yaml(
print_func=logger.info if verbose else logger.debug,
live=True,
)
# print(settings.temp_dir / new_name)
new_settings: Seal5Settings = Seal5Settings.from_yaml_file(settings.temp_dir / new_name)
settings.merge(new_settings, overwrite=False)

Expand Down
4 changes: 0 additions & 4 deletions seal5/passes.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ class PassResult:


def check_filter(name, skip, only):
print("check_filter", name, skip, only)
if skip is None:
skip = []
if only is None:
Expand Down Expand Up @@ -109,13 +108,10 @@ def run(self, inputs: List[str], *args, settings: Optional[Seal5Settings] = None
with ThreadPoolExecutor(max_workers=parallel) as executor:
futures = []
for input_model in inputs:
print("input_model", input_model)
kwargs__ = kwargs_.copy()
per_model = passes_settings.per_model.get(input_model, None)
print("per_model", per_model)
if per_model:
if check_filter(self.name, per_model.skip, per_model.only):
print("SKIP")
logger.info("Skipped pass %s for model %s", self.name, input_model)
continue
if per_model.overrides:
Expand Down

0 comments on commit 6152ec1

Please sign in to comment.