Skip to content

Commit

Permalink
Fix reproduce command exception on missing acto namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkintoshZ committed Oct 28, 2023
1 parent ee1acd3 commit af14415
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions acto/reproduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def repro_setup(v):
return None


def reproduce(workdir_path: str, reproduce_dir: str, operator_config: OperatorConfig, acto_namespace: int, **kwargs) -> List[RunResult]:
def reproduce(workdir_path: str, reproduce_dir: str, operator_config: OperatorConfig, **kwargs) -> List[RunResult]:
os.makedirs(workdir_path, exist_ok=True)
# Setting up log infra
logging.basicConfig(
Expand Down Expand Up @@ -169,8 +169,7 @@ def reproduce(workdir_path: str, reproduce_dir: str, operator_config: OperatorCo
is_reproduce=True,
input_model=input_model,
apply_testcase_f=apply_testcase_f,
reproduce_dir=reproduce_dir,
acto_namespace=acto_namespace)
reproduce_dir=reproduce_dir)

errors = acto.run(modes=['normal'])
return [error for error in errors if error is not None]
Expand Down Expand Up @@ -216,4 +215,5 @@ def reproduce_postdiff(workdir_path: str, operator_config: OperatorConfig, acto_
reproduce_dir=args.reproduce_dir,
operator_config=args.config,
cluster_runtime=args.cluster_runtime)
end_time = datetime.now()
end_time = datetime.now()

0 comments on commit af14415

Please sign in to comment.