You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parser.add_argument('-nogui', action='store_true', help="Just load file, don't show GUI")
72
-
parser.add_argument('-s', '--suppress_automatic_generation', action='store_true', help='Suppress the automatic generation of a perimeter which would be computed from the midline of the worm. If (px, py) is not specified in the WCON, a perimeter will not be shown.')
73
-
parser.add_argument('-i', '--ignore_wcon_perimeter', action='store_true', help='Ignore (px, py) values in the WCON. Instead, a perimeter is automatically generated based on the midline of the worm.')
74
-
parser.add_argument('-r', '--minor_radius', type=float, default=40e-3, help='Minor radius of the worm in millimeters (default: 40e-3)', required=False)
69
+
# Default behavior is to use (px, py) if it exists, and if it doesn’t then automatically generate the perimeter from the midline.
70
+
parser=argparse.ArgumentParser(
71
+
description="Open a player for the worm behaviour."
"-nogui", action="store_true", help="Just load file, don't show GUI"
78
+
)
79
+
parser.add_argument(
80
+
"-s",
81
+
"--suppress_automatic_generation",
82
+
action="store_true",
83
+
help="Suppress the automatic generation of a perimeter which would be computed from the midline of the worm. If (px, py) is not specified in the WCON, a perimeter will not be shown.",
84
+
)
85
+
parser.add_argument(
86
+
"-i",
87
+
"--ignore_wcon_perimeter",
88
+
action="store_true",
89
+
help="Ignore (px, py) values in the WCON. Instead, a perimeter is automatically generated based on the midline of the worm.",
90
+
)
91
+
parser.add_argument(
92
+
"-r",
93
+
"--minor_radius",
94
+
type=float,
95
+
default=40e-3,
96
+
help="Minor radius of the worm in millimeters (default: 40e-3)",
# TODO WormViewCSV and WormViewWCON - should WormViewCSV just be the original WormView? That's what it initially did.
158
-
# TODO Could take out Player and WormViewWCON into separate repo - Taking out Player could be ugly. It is quite coupled with WormView due to the update function.
194
+
# TODO WormViewCSV and WormViewWCON - should WormViewCSV just be the original WormView? That's what it initially did.
195
+
# TODO Could take out Player and WormViewWCON into separate repo - Taking out Player could be ugly. It is quite coupled with WormView due to the update function.
159
196
160
197
ifnotargs.nogui:
161
198
plt.show()
199
+
else:
200
+
print("GUI suppressed, exiting without showing %s."%anim)
0 commit comments