Module Import alias identifier Import alias identifier ImportFrom alias alias ImportFrom alias Import alias Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Num keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str FunctionDef arguments args NameParam defaults body Global identifier identifier identifier Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Num For NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpDiv Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice Num NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Expr Call AttributeLoad NameLoad attr NameLoad UnaryOpUSub NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Global identifier identifier identifier Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd Num BinOpMult NameLoad Num Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpDiv Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice Num NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign TupleStore NameStore Call AttributeLoad NameLoad attr NameLoad UnaryOpUSub NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMult ListLoad Num NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr ListLoad Num BinOpAdd Num BinOpMult Num BinOpSub BinOpSub NameLoad NameLoad Num Num Num keyword NameLoad BinOpAdd Str Call NameLoad BinOpAdd NameLoad Num BinOpMult Num SubscriptLoad NameLoad Index NameLoad BinOpMult Num SubscriptLoad NameLoad Index NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Assign NameStore Call NameLoad NameLoad Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Import alias Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd NameLoad Str NameLoad Str If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Num keyword NameLoad Return NameLoad decorator_list Assign NameStore NameLoad Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad
N/A N/A numpy np N/A matplotlib.pyplot plt matplotlib.widgets Slider Button shape_learning.shape_modeler ShapeModeler N/A argparse N/A parser N/A N/A argparse ArgumentParser description Displays the effect of the parameters in a shape model N/A N/A N/A parser add_argument shape action store help The shape to be visualised N/A N/A N/A parser add_argument num_params action store nargs ? default 3 type int help The number of parameters for which to have their effect visualised N/A N/A N/A parser add_argument dataset_directory action store nargs ? help The directory of the dataset to find the shape dataset update N/A N/A val N/A N/A N/A sliders mainPlot fig N/A params N/A N/A np zeros N/A numParams 1 N/A i N/A range numParams N/A N/A N/A params N/A i N/A N/A sliders N/A i val N/A shape N/A N/A shapeModeler makeShape params N/A shape N/A N/A ShapeModeler normaliseShape shape N/A numPointsInShape N/A N/A len shape 2 N/A x_shape N/A shape N/A 0 numPointsInShape N/A y_shape N/A shape N/A numPointsInShape N/A N/A N/A mainPlot set_data x_shape N/A y_shape N/A N/A N/A N/A fig canvas draw_idle N/A reset N/A N/A event N/A N/A N/A i N/A range numParams N/A N/A N/A N/A N/A sliders N/A i reset N/A preparePlot N/A N/A shapeModeler N/A N/A N/A sliders mainPlot fig N/A N/A fig ax N/A N/A plt subplots N/A whiteSpace N/A 0.15 N/A numParams 0.05 N/A N/A N/A plt subplots_adjust bottom whiteSpace N/A N/A N/A plt axis equal N/A params N/A N/A np zeros N/A numParams 1 N/A shape N/A N/A shapeModeler makeShape params N/A shape N/A N/A ShapeModeler normaliseShape shape N/A numPointsInShape N/A N/A len shape 2 N/A x_shape N/A shape N/A 0 numPointsInShape N/A y_shape N/A shape N/A numPointsInShape N/A N/A mainPlot N/A N/A plt plot x_shape N/A y_shape N/A N/A N/A plt axis N/A -1 1 -1 1 autoscale_on False aspect equal N/A parameterVariances N/A N/A shapeModeler getParameterVariances N/A sliders N/A N/A 0 numParams N/A i N/A range numParams N/A N/A slider N/A Slider N/A N/A plt axes N/A 0.25 N/A 0.1 N/A 0.05 N/A N/A numParams i 1 0.65 0.03 axisbg axcolor N/A Parameter  N/A str N/A i 1 N/A -5 N/A parameterVariances N/A i N/A 5 N/A parameterVariances N/A i valinit 0 N/A N/A N/A slider on_changed update N/A N/A sliders N/A i slider N/A resetax N/A N/A plt axes N/A 0.8 0.025 0.1 0.04 N/A button N/A Button resetax Reset color axcolor hovercolor 0.975 N/A N/A N/A button on_clicked reset N/A N/A N/A plt show N/A prepareShapeModel N/A N/A datasetDirectory shape N/A N/A N/A glob N/A datasetFiles_shape N/A N/A glob glob N/A N/A N/A datasetDirectory / shape .dat N/A N/A N/A len datasetFiles_shape 1 N/A N/A N/A Exception N/A N/A N/A Dataset not available at  datasetDirectory  for shape  shape N/A shapeModeler N/A ShapeModeler filename N/A datasetFiles_shape N/A 0 num_principle_components numParams N/A shapeModeler N/A N/A shapeModeler None N/A axcolor lightgoldenrodyellow N/A sliders None N/A mainPlot None N/A fig None N/A N/A __name__ __main__ N/A N/A args N/A N/A parser parse_args N/A numParams N/A args num_params N/A shape N/A args shape N/A datasetDirectory N/A args dataset_directory N/A N/A datasetDirectory N/A N/A inspect N/A fileName N/A N/A inspect getsourcefile ShapeModeler N/A installDirectory N/A N/A N/A fileName split /lib N/A 0 N/A datasetDirectory N/A installDirectory /share/shape_learning/letter_model_datasets/alexis_set_for_children N/A shapeModeler N/A prepareShapeModel datasetDirectory shape N/A N/A preparePlot shapeModeler