Skip to content

Commit

Permalink
fix(#4): remove unused mwmax_cof argument
Browse files Browse the repository at this point in the history
  • Loading branch information
tduigou committed Feb 24, 2022
1 parent d179f02 commit 06ce8c4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ r_code = retropath2(
dmin=0,
dmax=100,
mwmax_source=1000,
mwmax_cof=1000,
)
```

Expand Down
1 change: 0 additions & 1 deletion retropath2_wrapper/Args.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ def _add_arguments(parser):
parser.add_argument('--dmin' , type=int, default=0)
parser.add_argument('--dmax' , type=int, default=1000)
parser.add_argument('--mwmax_source' , type=int, default=1000)
parser.add_argument('--mwmax_cof' , type=int, default=1000)
parser.add_argument(
'--timeout',
type=int,
Expand Down
4 changes: 1 addition & 3 deletions retropath2_wrapper/RetroPath2.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def retropath2(
max_steps: int = 3,
topx: int = 100,
dmin: int = 0, dmax: int = 100,
mwmax_source: int = 1000, mwmax_cof: int = 1000,
mwmax_source: int = 1000,
timeout: int = DEFAULT_TIMEOUT,
logger: Logger = getLogger(__name__)
) -> Tuple[str, Dict]:
Expand All @@ -151,7 +151,6 @@ def retropath2(
'dmin' : dmin,
'dmax' : dmax,
'mwmax_source' : mwmax_source,
'mwmax_cof' : mwmax_cof
}
logger.debug('rp2_params: ' + str(rp2_params))

Expand Down Expand Up @@ -623,7 +622,6 @@ def call_knime(
+ ' -workflow.variable=input.rulesfile,"' + files['rules'] + '",String' \
+ ' -workflow.variable=input.topx,"' + str(params['topx']) + '",int' \
+ ' -workflow.variable=input.mwmax-source,"' + str(params['mwmax_source']) + '",int' \
+ ' -workflow.variable=input.mwmax-cof,"' + str(params['mwmax_cof']) + '",int' \
+ ' -workflow.variable=output.dir,"' + files['outdir'] + '",String' \
+ ' -workflow.variable=output.solutionfile,"' + files['results'] + '",String' \
+ ' -workflow.variable=output.sourceinsinkfile,"' + files['src-in-sk'] + '",String'
Expand Down
2 changes: 1 addition & 1 deletion retropath2_wrapper/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _cli():
sink_file=args.sink_file, source_file=args.source_file, rules_file=args.rules_file,
outdir=args.outdir,
kvars=kvars,
max_steps=args.max_steps, topx=args.topx, dmin=args.dmin, dmax=args.dmax, mwmax_source=args.mwmax_source, mwmax_cof=args.mwmax_cof,
max_steps=args.max_steps, topx=args.topx, dmin=args.dmin, dmax=args.dmax, mwmax_source=args.mwmax_source,
rp2_version=args.rp2_version,
timeout=args.timeout,
logger=logger
Expand Down

0 comments on commit 06ce8c4

Please sign in to comment.