Skip to content

Commit fddfb58

Browse files
committed
Remove config_opts from command line interface
1 parent 29e8645 commit fddfb58

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

bin/pysurfer

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,10 @@ if __name__ == '__main__':
7272

7373
from surfer import Brain
7474

75-
# Get a dict of config override options
76-
confkeys = ["size", "background", "cortex"]
77-
argdict = args.__dict__
78-
config_opts = dict([(k, v) for k, v in argdict.items()
79-
if k in confkeys and v])
80-
views = args.views
81-
8275
# Load up the figure and underlying brain object
8376
b = Brain(args.subject_id, args.hemi, args.surf, args.curv,
84-
args.title, views=views, config_opts=config_opts)
77+
args.title, views=args.views, size=args.size,
78+
background=args.background, cortex=args.cortex)
8579

8680
# Maybe load some morphometry
8781
if args.morphometry is not None:

surfer/_commandline.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@
6060
help="overlay sign")
6161
parser.add_argument("-name",
6262
help="name to use for the overlay")
63-
parser.add_argument("-size",
63+
parser.add_argument("-size", default=800,
6464
help="size of the display window (in pixels)")
65-
parser.add_argument("-background", metavar="COLOR",
65+
parser.add_argument("-background", metavar="COLOR", default="black",
6666
help="background color for display")
67-
parser.add_argument("-cortex", metavar="COLOR",
67+
parser.add_argument("-cortex", metavar="COLOR", default="classic",
6868
help="colormap for binary cortex curvature")
6969
parser.add_argument("-title",
7070
help="title to use for the figure")

0 commit comments

Comments
 (0)