Skip to content

Commit

Permalink
Merge pull request #91 from PolyPhyHub/cli-fix
Browse files Browse the repository at this point in the history
Added support for configuring domain_margin from CLI
  • Loading branch information
pjflux2001 authored May 22, 2024
2 parents 78347fe + 6f008a1 commit d325f9e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/polyphy/utils/cli_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ def parse_args():
'--window-res-y',
type=int,
help="Y resolution of the main window")
parser.add_argument(
'-m',
'--domain-margin',
type=float,
help="Domain margin parameter")
parser.add_argument(
'-t',
'--trace-res-max',
Expand Down Expand Up @@ -174,6 +179,8 @@ def parse_values(ppConfig):
ppConfig.setter("agent_deposit", args.agent_deposit)
if args.deposit_attenuation:
ppConfig.setter("deposit_attenuation", args.deposit_attenuation)
if args.domain_margin:
ppConfig.setter("DOMAIN_MARGIN", args.domain_margin)
if args.trace_attenuation:
ppConfig.setter("trace_attenuation", args.trace_attenuation)
if args.deposit_visualization:
Expand Down

0 comments on commit d325f9e

Please sign in to comment.