Module Import alias Import alias Import alias identifier Expr Call AttributeLoad NameLoad attr keyword Str ImportFrom alias ImportFrom alias Import alias identifier Expr Call AttributeLoad NameLoad attr keyword Str Import alias identifier ImportFrom alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Str Str Num Num Num Num ImportFrom alias alias alias ImportFrom alias alias Assign NameStore Call NameLoad ImportFrom alias ImportFrom alias Import alias Expr Call NameLoad AttributeLoad NameLoad attr ImportFrom alias ImportFrom alias alias alias With Call NameLoad Str Str NameStore body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index TupleLoad Num Num attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index TupleLoad Num Num attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index TupleLoad Num Num attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AugAssignSub NameStore Num Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Num AugAssignSub NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Num Num For NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad SubscriptLoad NameLoad Index CompareEq NameLoad NameLoad attr Num Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index CompareEq NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListComp Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr comprehension NameStore NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr AugAssignDiv NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpPow NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore CompareLt NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign TupleStore NameStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index UnaryOpInvert NameLoad SubscriptLoad NameLoad Index UnaryOpInvert NameLoad SubscriptLoad NameLoad Index UnaryOpInvert NameLoad AugAssignSub NameStore NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword Num keyword Num Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword Num Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword Num keyword Num Assign NameStore ListLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad Str Str Str Assign NameStore Num Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Continue Print Str NameLoad Str Assign NameStore Call NameLoad NameLoad keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpSub NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad keyword Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore Call NameLoad ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad keyword TupleLoad Num Num Assign NameStore Call NameLoad NameLoad Num Num Num Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad BinOpDiv BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad BinOpMult Num AttributeLoad NameLoad attr Assign NameStore Num Expr Call AttributeLoad NameLoad attr Call NameLoad TupleLoad SubscriptLoad NameLoad Index TupleLoad NameLoad Num SubscriptLoad NameLoad Index TupleLoad NameLoad Num keyword BinOpAdd Num BinOpMult Num SubscriptLoad NameLoad Index NameLoad keyword NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call NameLoad keyword TupleLoad Num Num Assign NameStore Call NameLoad NameLoad Num Num Num Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpFloorDiv NameLoad Num attr Num Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Call AttributeLoad BinOpSub Num Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Num keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr ListLoad Assign NameStore BinOpMult SubscriptLoad BinOpDiv BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad BinOpMult Num AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad Num Assign NameStore Call NameLoad NameLoad Num Num Num Num Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Num Num Num Num Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr keyword Num keyword Num Assign AttributeStore NameLoad attr ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call NameLoad keyword TupleLoad Num Num Assign NameStore Call NameLoad NameLoad Num Num Num Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpFloorDiv NameLoad Num attr Num Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Num keyword Str keyword Str keyword Num keyword Num Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr ListLoad Assign NameStore BinOpMult SubscriptLoad BinOpDiv BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad BinOpMult Num AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad Num Assign NameStore Call NameLoad NameLoad Num Num Num Num Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Num Num Num Num Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr keyword Num keyword Num Assign AttributeStore NameLoad attr ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpDiv Call AttributeLoad CompareEq NameLoad NameLoad attr NameLoad Assign NameStore Num For NameStore Call NameLoad NameLoad body AugAssignAdd NameStore BinOpMult UnaryOpUSub NameLoad SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore BinOpMult Call AttributeLoad CompareEq NameLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Slice BinOpFloorDiv NameLoad Num Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpAdd UnaryOpUSub Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword TupleLoad Num NameLoad keyword NameLoad Assign NameStore BinOpSub Call NameLoad BinOpDiv BinOpSub NameLoad NameLoad Call NameLoad NameLoad keyword Num Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Print Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword TupleLoad Num Num Assign NameStore Call NameLoad NameLoad Num Num Num Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad NameLoad Num keyword NameLoad attr AttributeLoad NameLoad attr Print NameLoad Assign NameStore Call NameLoad ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore ListComp Call NameLoad BinOpDiv BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index NameLoad BinOpMult Num AttributeLoad NameLoad attr comprehension NameStore NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareNotIn NameLoad NameLoad body Assign NameStore BinOpMult Num Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad NameLoad Num SubscriptLoad NameLoad Index TupleLoad NameLoad Num Str keyword NameLoad keyword NameLoad keyword BinOpAdd Num BinOpMult Num SubscriptLoad NameLoad Index NameLoad keyword Num For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Index Num Index Num Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad NameLoad Num SubscriptLoad NameLoad Index TupleLoad NameLoad Num Str keyword NameLoad keyword NameLoad keyword BinOpAdd Num BinOpMult Num SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Assign NameStore Call NameLoad NameLoad Num Num Num Num For NameStore SubscriptLoad NameLoad Slice Num body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad NameLoad Num SubscriptLoad NameLoad Index TupleLoad NameLoad Num Str keyword NameLoad keyword Str keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call NameLoad keyword TupleLoad Num Num Expr Call AttributeLoad NameLoad attr Num keyword Str Assign NameStore Call NameLoad ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad BinOpDiv BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad BinOpMult Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad NameLoad Num SubscriptLoad NameLoad Index TupleLoad NameLoad Num Str keyword NameLoad keyword NameLoad keyword BinOpAdd Num BinOpMult Num SubscriptLoad NameLoad Index NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num ListLoad Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num ListLoad Expr Call AttributeLoad NameLoad attr Num keyword Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad BinOpDiv BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad BinOpMult Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad NameLoad Num SubscriptLoad NameLoad Index TupleLoad NameLoad Num Str keyword NameLoad keyword NameLoad keyword BinOpAdd Num BinOpMult Num SubscriptLoad NameLoad Index NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body ImportFrom alias Assign NameStore Call NameLoad NameLoad NameLoad Num Num NameLoad ImportFrom alias Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad Num comprehension NameStore AttributeLoad NameLoad attr attr ImportFrom alias Assign NameStore Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword TupleLoad Num Num Expr Call AttributeLoad NameLoad attr Num keyword Str Assign NameStore Call NameLoad ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad BinOpDiv BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad BinOpMult Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad NameLoad Num SubscriptLoad NameLoad Index TupleLoad NameLoad Num Str keyword NameLoad keyword NameLoad keyword BinOpAdd Num BinOpMult Num SubscriptLoad NameLoad Index NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num ListLoad Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num ListLoad Expr Call AttributeLoad NameLoad attr Num keyword Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad BinOpDiv BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad BinOpMult Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad NameLoad Num SubscriptLoad NameLoad Index TupleLoad NameLoad Num Str keyword NameLoad keyword NameLoad keyword BinOpAdd Num BinOpMult Num SubscriptLoad NameLoad Index NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num ListLoad Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num ListLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call NameLoad keyword TupleLoad Num Num Expr Call AttributeLoad NameLoad attr Num keyword Str Assign NameStore Call NameLoad ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad BinOpDiv BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad BinOpMult Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad NameLoad Num SubscriptLoad NameLoad Index TupleLoad NameLoad Num Str keyword NameLoad keyword NameLoad keyword BinOpAdd Num BinOpMult Num SubscriptLoad NameLoad Index NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num ListLoad Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num ListLoad Expr Call AttributeLoad NameLoad attr Num keyword Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad BinOpDiv BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad BinOpMult Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad NameLoad Num SubscriptLoad NameLoad Index TupleLoad NameLoad Num Str keyword NameLoad keyword NameLoad keyword BinOpAdd Num BinOpMult Num SubscriptLoad NameLoad Index NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num ImportFrom alias Assign NameStore Call NameLoad NameLoad NameLoad Num Num NameLoad ImportFrom alias Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad Num comprehension NameStore AttributeLoad NameLoad attr attr ImportFrom alias Assign NameStore Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad keyword TupleLoad Num Num Assign NameStore Call NameLoad NameLoad Num Num Num Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad BinOpDiv BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad BinOpMult Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad NameLoad Num SubscriptLoad NameLoad Index TupleLoad NameLoad Num Str keyword NameLoad keyword NameLoad keyword BinOpAdd Num BinOpMult Num SubscriptLoad NameLoad Index NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call NameLoad NameLoad Num Num Num Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad BinOpDiv BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad BinOpMult Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad NameLoad Num SubscriptLoad NameLoad Index TupleLoad NameLoad Num Str keyword NameLoad keyword NameLoad keyword BinOpAdd Num BinOpMult Num SubscriptLoad NameLoad Index NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr decorator_list Expr Call NameLoad SubscriptLoad NameLoad Index Num
N/A N/A os N/A cPickle N/A numpy np N/A N/A N/A np seterr over raise scipy.io loadmat scipy.misc logsumexp N/A seaborn sns N/A N/A N/A sns set style white N/A matplotlib.pyplot plt matplotlib.patches Circle N/A matplotlib N/A N/A N/A N/A matplotlib rcParams update N/A font.sans-serif axes.labelsize xtick.labelsize ytick.labelsize axes.titlesize Helvetica 9 7 7 9 hips.plotting.layout create_axis_at_location create_figure remove_plot_labels hips.plotting.colormaps harvard_colors gradient_cmap N/A colors N/A harvard_colors graphistician.internals.utils compute_optimal_rotation pybasicbayes.util.text progprint_xrange N/A pyhawkes.models N/A N/A reload N/A pyhawkes models pyhawkes.models ContinuousTimeNetworkHawkesModel pyhawkes.internals.network LatentDistanceAdjacencyModel ErdosRenyiFixedSparsity ErdosRenyiModel N/A N/A open data/hippocampus.mat r f N/A N/A matdata N/A loadmat f N/A S N/A N/A N/A N/A N/A N/A N/A matdata N/A data N/A S N/A N/A 0 0 ravel astype N/A np float N/A C N/A N/A N/A N/A N/A N/A N/A matdata N/A data N/A C N/A N/A 0 0 ravel astype N/A np int N/A X N/A N/A N/A N/A N/A matdata N/A data N/A X N/A N/A 0 0 astype N/A np float N/A M N/A N/A S shape N/A 0 N/A perm N/A N/A np argsort S N/A S N/A S N/A perm N/A C N/A C N/A perm N/A X N/A X N/A perm N/A S N/A N/A S min N/A T N/A N/A np ceil N/A N/A S max N/A C 1 N/A K N/A N/A N/A C max 1 N/A X N/A N/A X mean 0 N/A rad 61 N/A pfs N/A N/A np zeros N/A K 2 N/A pfs_cov N/A N/A np zeros N/A K 2 2 N/A k N/A range K N/A N/A N/A pfs N/A k N/A N/A N/A X N/A N/A C k mean 0 N/A N/A pfs_cov N/A k N/A N/A np cov N/A N/A X N/A N/A C k T N/A pf_size N/A N/A np array N/A N/A N/A N/A N/A N/A np linalg eigvalsh cc max N/A cc pfs_cov N/A pf_size N/A N/A pf_size min N/A pf_size N/A N/A pf_size max N/A pfs_rad N/A N/A np sqrt N/A N/A np sum N/A pfs 2 1 N/A pfs_th N/A N/A np arctan2 N/A pfs N/A N/A N/A 1 N/A pfs N/A N/A N/A 0 N/A node_perm N/A N/A np lexsort N/A pfs_rad pfs_th N/A B 1 N/A dt_max 1.0 N/A train_frac 0.8 N/A T_train N/A train_frac T N/A T_test N/A T T_train N/A train_inds N/A S T_train N/A N/A S_train C_train X_train N/A N/A S N/A train_inds N/A C N/A train_inds N/A X N/A train_inds N/A N/A S_test C_test X_test N/A N/A S N/A N/A train_inds N/A C N/A N/A train_inds N/A X N/A N/A train_inds N/A S_test T_train N/A dense_network N/A ErdosRenyiFixedSparsity K K p 1.0 kappa 1 alpha 1.0 beta 1.0 N/A er_network N/A ErdosRenyiModel K K kappa 1 alpha 1.0 beta 1.0 N/A dist_network N/A LatentDistanceAdjacencyModel K K kappa 1 dim 2 alpha 1.0 beta 1.0 N/A networks N/A dense_network er_network dist_network N/A names N/A Dense ER Distance N/A N_samples 1000 N/A results N/A N/A results_dir N/A N/A N/A os path join results hippocampus run002 N/A N/A network name N/A zip networks names N/A N/A results_file N/A N/A N/A os path join results_dir N/A %s.pkl name N/A N/A N/A N/A os path exists results_file N/A N/A N/A open results_file r f N/A N/A result N/A N/A cPickle load f N/A N/A N/A results append result N/A N/A Fitting model with  name  network. N/A model N/A ContinuousTimeNetworkHawkesModel K dt_max 1.0 network network N/A N/A N/A model add_data S_train C_train T_train N/A N/A N/A model resample_model N/A N/A N/A model add_data S_test C_test N/A T T_train N/A test_data N/A N/A N/A model data_list pop N/A lls N/A N/A N/A model log_likelihood N/A plls N/A N/A N/A model log_likelihood test_data N/A Weffs N/A N/A Ps N/A N/A Ls N/A N/A iter N/A progprint_xrange N_samples perline 25 N/A N/A N/A N/A model resample_model N/A N/A N/A lls append N/A N/A model log_likelihood N/A N/A N/A plls append N/A N/A model log_likelihood test_data N/A N/A N/A Weffs append N/A model W_effective N/A N/A N/A Ps append N/A N/A model network P N/A N/A isinstance network LatentDistanceAdjacencyModel N/A N/A N/A N/A Ls append N/A N/A model network L N/A result N/A lls plls Weffs Ps Ls N/A N/A N/A results append result N/A N/A open results_file w f N/A N/A N/A N/A cPickle dump result f protocol -1 plot_results N/A N/A result N/A N/A N/A N/A lls plls Weffs Ps Ls result N/A wheel_cmap N/A gradient_cmap N/A N/A colors N/A 0 N/A colors N/A 3 N/A colors N/A 2 N/A colors N/A 1 N/A colors N/A 0 N/A fig N/A create_figure figsize N/A 1.8 1.8 N/A ax N/A create_axis_at_location fig 0.6 0.4 1.1 1.1 N/A N/A i k N/A enumerate node_perm N/A N/A color N/A wheel_cmap N/A N/A N/A np pi N/A pfs_th N/A k N/A 2 N/A np pi N/A alpha 0.7 N/A N/A N/A ax add_patch N/A Circle N/A N/A pfs N/A N/A k 0 N/A pfs N/A N/A k 1 radius N/A 3 N/A 4 N/A pf_size N/A k color color ec none alpha alpha N/A N/A N/A plt title True place fields N/A N/A N/A plt xlim -45 45 N/A N/A N/A plt xticks N/A -40 -20 0 20 40 N/A N/A N/A plt xlabel $x$ [cm] N/A N/A N/A plt ylim -45 45 N/A N/A N/A plt yticks N/A -40 -20 0 20 40 N/A N/A N/A plt ylabel $y$ [cm] N/A N/A N/A plt savefig N/A N/A N/A os path join results_dir hipp_colored_locations.pdf N/A fig N/A create_figure figsize N/A 1.8 1.8 N/A ax N/A create_axis_at_location fig 0.4 0.4 1.1 1.1 N/A Weff N/A N/A N/A N/A np array N/A Weffs N/A N/A N_samples 2 mean 0 N/A Weff N/A Weff N/A N/A N/A np ix_ node_perm node_perm N/A lim N/A N/A N/A Weff N/A N/A N/A N/A 1 N/A N/A np eye K astype N/A np bool max N/A im N/A N/A ax imshow N/A N/A np kron Weff N/A N/A np ones N/A 20 20 interpolation none cmap Greys vmax lim N/A N/A N/A ax set_xticks N/A N/A N/A N/A ax set_yticks N/A N/A node_values N/A N/A N/A N/A N/A np pi N/A pfs_th N/A node_perm N/A 2 N/A np pi N/A N/A N/A None N/A N/A np ones N/A K 2 N/A yax N/A create_axis_at_location fig 0.2 0.4 0.3 1.1 N/A N/A remove_plot_labels yax N/A N/A N/A yax imshow node_values interpolation none cmap wheel_cmap N/A N/A N/A yax set_xticks N/A N/A N/A N/A yax set_yticks N/A N/A N/A N/A yax set_ylabel pre N/A xax N/A create_axis_at_location fig 0.4 0.2 1.1 0.3 N/A N/A remove_plot_labels xax N/A N/A N/A xax imshow N/A node_values T interpolation none cmap wheel_cmap N/A N/A N/A xax set_xticks N/A N/A N/A N/A xax set_yticks N/A N/A N/A N/A xax set_xlabel post N/A cbax N/A create_axis_at_location fig 1.55 0.4 0.04 1.1 N/A N/A N/A plt colorbar im cax cbax ticks N/A 0 0.1 0.2 0.3 N/A N/A N/A cbax tick_params labelsize 8 pad 1 N/A N/A cbax set_ticklabels N/A 0 .1 .2 .3 N/A N/A N/A ax set_title Inferred Weights N/A N/A N/A plt savefig N/A N/A N/A os path join results_dir hipp_W.pdf N/A fig N/A create_figure figsize N/A 1.8 1.8 N/A ax N/A create_axis_at_location fig 0.4 0.4 1.1 1.1 N/A P N/A N/A N/A N/A np array N/A Ps N/A N/A N_samples 2 mean 0 N/A P N/A P N/A N/A N/A np ix_ node_perm node_perm N/A im N/A N/A ax imshow N/A N/A np kron P N/A N/A np ones N/A 20 20 interpolation none cmap Greys vmin 0 vmax 1 N/A N/A N/A ax set_xticks N/A N/A N/A N/A ax set_yticks N/A N/A node_values N/A N/A N/A N/A N/A np pi N/A pfs_th N/A node_perm N/A 2 N/A np pi N/A N/A N/A None N/A N/A np ones N/A K 2 N/A yax N/A create_axis_at_location fig 0.2 0.4 0.3 1.1 N/A N/A remove_plot_labels yax N/A N/A N/A yax imshow node_values interpolation none cmap wheel_cmap N/A N/A N/A yax set_xticks N/A N/A N/A N/A yax set_yticks N/A N/A N/A N/A yax set_ylabel pre N/A xax N/A create_axis_at_location fig 0.4 0.2 1.1 0.3 N/A N/A remove_plot_labels xax N/A N/A N/A xax imshow N/A node_values T interpolation none cmap wheel_cmap N/A N/A N/A xax set_xticks N/A N/A N/A N/A xax set_yticks N/A N/A N/A N/A xax set_xlabel post N/A cbax N/A create_axis_at_location fig 1.55 0.4 0.04 1.1 N/A N/A N/A plt colorbar im cax cbax ticks N/A 0 0.5 1 N/A N/A N/A cbax tick_params labelsize 8 pad 1 N/A N/A cbax set_ticklabels N/A 0.0 0.5 1.0 N/A N/A N/A ax set_title Inferred Probability N/A N/A N/A plt savefig N/A N/A N/A os path join results_dir hipp_P.pdf N/A N/A N/A plt show N/A plot_pred_lls N/A N/A results N/A N/A N/A homog_rates N/A N/A np zeros K N/A k N/A range K N/A N/A N/A homog_rates N/A k N/A N/A N/A N/A C_train k sum T_train N/A homog_pll 0 N/A k N/A range K N/A N/A homog_pll N/A N/A T_test N/A homog_rates N/A k N/A homog_pll N/A N/A N/A N/A C_test k sum N/A N/A np log N/A homog_rates N/A k N/A N/A N/A plt figure N/A N/A i result N/A enumerate results N/A N/A N/A lls plls Weffs Ps Ls result N/A plls N/A plls N/A N/A N_samples 2 N/A J N/A len plls N/A avg_pll N/A N/A N/A N/A np log J N/A logsumexp plls N/A avg_pll N/A N/A avg_pll homog_pll N/A len S_test N/A samples N/A N/A N/A np random choice plls size N/A 100 J replace True N/A pll_samples N/A N/A logsumexp N/A N/A samples homog_pll N/A len S_test axis 1 N/A N/A np log J N/A std_hll N/A N/A pll_samples std N/A PLL:  avg_pll  +-  std_hll N/A N/A N/A plt bar i avg_pll N/A N/A N/A plt show N/A plot_locations N/A N/A result offset N/A 0 N/A N/A N/A _ _ _ _ Ls result N/A Ls_rot N/A N/A L Ls N/A N/A R N/A compute_optimal_rotation L pfs scale False N/A N/A N/A Ls_rot append N/A N/A L dot R N/A Ls_rot N/A N/A np array Ls_rot N/A fig N/A create_figure figsize N/A 1.4 2.9 N/A ax N/A create_axis_at_location fig 0.3 1.7 1 1 N/A toplot N/A N/A N/A N/A np linspace offset N/A K offset 4 endpoint False astype N/A np int N/A toplot N/A wheel_cmap N/A gradient_cmap N/A N/A colors N/A 0 N/A colors N/A 3 N/A colors N/A 2 N/A colors N/A 1 N/A colors N/A 0 N/A plot_colors N/A N/A wheel_cmap N/A N/A N/A np pi N/A pfs_th N/A N/A node_perm N/A j N/A 2 N/A np pi N/A j toplot N/A N/A i k N/A enumerate node_perm N/A N/A N/A i toplot N/A N/A color N/A 0.8 N/A N/A np ones 3 N/A N/A N/A plt plot N/A pfs N/A N/A k 0 N/A pfs N/A N/A k 1 o markerfacecolor color markeredgecolor color markersize N/A 4 N/A 4 N/A pf_size N/A k alpha 1.0 N/A N/A i k N/A enumerate node_perm N/A N/A N/A i toplot N/A N/A j N/A N/A N/A N/A np where N/A toplot i N/A 0 N/A 0 N/A color N/A plot_colors N/A j N/A N/A N/A plt plot N/A pfs N/A N/A k 0 N/A pfs N/A N/A k 1 o markerfacecolor color markeredgecolor color markersize N/A 4 N/A 4 N/A pf_size N/A k N/A N/A N/A plt title True Place Fields N/A N/A N/A plt xlim -45 45 N/A N/A N/A plt xticks N/A -40 -20 0 20 40 N/A N/A N/A plt ylim -45 45 N/A N/A N/A plt yticks N/A -40 -20 0 20 40 N/A ax N/A create_axis_at_location fig 0.3 0.2 1 1 N/A L N/A Ls_rot N/A 2 N/A N/A j N/A N/A N/A np random permutation N/A len toplot N/A N/A k N/A N/A node_perm N/A toplot N/A j N/A color N/A plot_colors N/A j N/A N/A N/A plt plot N/A L N/A N/A k 0 N/A L N/A N/A k 1 o markerfacecolor color markeredgecolor none markersize 4 alpha 0.25 N/A N/A N/A plt title Locations Samples N/A N/A N/A plt xlim -3 3 N/A N/A N/A plt xticks N/A -2 0 2 N/A N/A N/A plt ylim -3 3 N/A N/A N/A plt yticks N/A -2 0 2 N/A N/A N/A plt savefig N/A N/A N/A os path join results_dir N/A locations_%d.pdf offset N/A plot_mean_locations N/A N/A N/A N/A N/A N/A _ _ _ _ Ls result N/A Ls_rot N/A N/A L Ls N/A N/A R N/A compute_optimal_rotation L pfs N/A N/A N/A Ls_rot append N/A N/A L dot R N/A Ls_rot N/A N/A np array Ls_rot N/A Ls_mean N/A N/A np mean Ls_rot 0 N/A fig N/A create_figure figsize N/A 1.4 2.5 N/A N/A N/A plt subplot 211 aspect equal N/A wheel_cmap N/A gradient_cmap N/A N/A colors N/A 0 N/A colors N/A 3 N/A colors N/A 2 N/A colors N/A 1 N/A colors N/A 0 N/A N/A i k N/A enumerate node_perm N/A N/A color N/A wheel_cmap N/A N/A N/A np pi N/A pfs_th N/A k N/A 2 N/A np pi N/A N/A N/A plt plot N/A pfs N/A N/A k 0 N/A pfs N/A N/A k 1 o markerfacecolor color markeredgecolor color markersize N/A 4 N/A 4 N/A pf_size N/A k alpha 0.7 N/A N/A N/A plt title True Place Fields N/A N/A N/A plt xlim -45 45 N/A N/A N/A plt xticks N/A -40 -20 0 20 40 N/A N/A N/A N/A plt ylim -45 45 N/A N/A N/A plt yticks N/A -40 -20 0 20 40 N/A N/A N/A N/A plt subplot 212 aspect equal N/A N/A i k N/A enumerate node_perm N/A N/A color N/A wheel_cmap N/A N/A N/A np pi N/A pfs_th N/A k N/A 2 N/A np pi N/A N/A N/A plt plot N/A Ls_mean N/A N/A k 0 N/A Ls_mean N/A N/A k 1 o markerfacecolor color markeredgecolor color markersize N/A 4 N/A 4 N/A pf_size N/A k alpha 0.7 N/A N/A N/A plt title Mean Locations N/A N/A N/A plt xlim -30 30 N/A N/A N/A plt xticks N/A N/A N/A N/A plt ylim -30 30 N/A N/A N/A plt yticks N/A N/A N/A N/A plt tight_layout N/A N/A N/A plt savefig N/A N/A N/A os path join results_dir hipp_mean_locations.pdf N/A N/A N/A plt show N/A plot_pca_locations N/A N/A N/A N/A pyhawkes.utils.utils convert_continuous_to_discrete N/A S_dt N/A convert_continuous_to_discrete S C 0.25 0 T scipy.ndimage.filters gaussian_filter1d N/A S_smooth N/A N/A N/A np array N/A N/A gaussian_filter1d s 4 N/A s N/A S_dt T T sklearn.decomposition PCA N/A pca N/A PCA n_components 2 N/A N/A N/A pca fit S_smooth N/A Z N/A N/A pca components_ T N/A R N/A compute_optimal_rotation Z pfs N/A Z N/A N/A Z dot R N/A fig N/A create_figure figsize N/A 1.4 2.5 N/A N/A N/A plt subplot 211 aspect equal N/A wheel_cmap N/A gradient_cmap N/A N/A colors N/A 0 N/A colors N/A 3 N/A colors N/A 2 N/A colors N/A 1 N/A colors N/A 0 N/A N/A i k N/A enumerate node_perm N/A N/A color N/A wheel_cmap N/A N/A N/A np pi N/A pfs_th N/A k N/A 2 N/A np pi N/A N/A N/A plt plot N/A pfs N/A N/A k 0 N/A pfs N/A N/A k 1 o markerfacecolor color markeredgecolor color markersize N/A 4 N/A 4 N/A pf_size N/A k alpha 0.7 N/A N/A N/A plt title True Place Fields N/A N/A N/A plt xlim -45 45 N/A N/A N/A plt xticks N/A -40 -20 0 20 40 N/A N/A N/A N/A plt ylim -45 45 N/A N/A N/A plt yticks N/A -40 -20 0 20 40 N/A N/A N/A N/A plt subplot 212 aspect equal N/A N/A i k N/A enumerate node_perm N/A N/A color N/A wheel_cmap N/A N/A N/A np pi N/A pfs_th N/A k N/A 2 N/A np pi N/A N/A N/A plt plot N/A Z N/A N/A k 0 N/A Z N/A N/A k 1 o markerfacecolor color markeredgecolor color markersize N/A 4 N/A 4 N/A pf_size N/A k alpha 0.7 N/A N/A N/A plt title PCA Locations N/A N/A N/A plt xlim -25 25 N/A N/A N/A plt xticks N/A -20 0 20 N/A N/A N/A N/A plt ylim -25 25 N/A N/A N/A plt yticks N/A -20 0 20 N/A N/A N/A N/A plt tight_layout N/A N/A N/A plt savefig N/A N/A N/A os path join results_dir hipp_pca_locations.pdf N/A N/A N/A plt show N/A plot_mean_locations N/A N/A N/A N/A N/A N/A _ _ _ _ Ls result N/A Ls_rot N/A N/A L Ls N/A N/A R N/A compute_optimal_rotation L pfs N/A N/A N/A Ls_rot append N/A N/A L dot R N/A Ls_rot N/A N/A np array Ls_rot N/A Ls_mean N/A N/A np mean Ls_rot 0 N/A fig N/A create_figure figsize N/A 1.4 2.5 N/A N/A N/A plt subplot 211 aspect equal N/A wheel_cmap N/A gradient_cmap N/A N/A colors N/A 0 N/A colors N/A 3 N/A colors N/A 2 N/A colors N/A 1 N/A colors N/A 0 N/A N/A i k N/A enumerate node_perm N/A N/A color N/A wheel_cmap N/A N/A N/A np pi N/A pfs_th N/A k N/A 2 N/A np pi N/A N/A N/A plt plot N/A pfs N/A N/A k 0 N/A pfs N/A N/A k 1 o markerfacecolor color markeredgecolor color markersize N/A 4 N/A 4 N/A pf_size N/A k alpha 0.7 N/A N/A N/A plt title True Place Fields N/A N/A N/A plt xlim -45 45 N/A N/A N/A plt xticks N/A -40 -20 0 20 40 N/A N/A N/A N/A plt ylim -45 45 N/A N/A N/A plt yticks N/A -40 -20 0 20 40 N/A N/A N/A N/A plt subplot 212 aspect equal N/A N/A i k N/A enumerate node_perm N/A N/A color N/A wheel_cmap N/A N/A N/A np pi N/A pfs_th N/A k N/A 2 N/A np pi N/A N/A N/A plt plot N/A Ls_mean N/A N/A k 0 N/A Ls_mean N/A N/A k 1 o markerfacecolor color markeredgecolor color markersize N/A 4 N/A 4 N/A pf_size N/A k alpha 0.7 N/A N/A N/A plt title Mean Locations N/A N/A N/A plt xlim -30 30 N/A N/A N/A plt xticks N/A N/A N/A N/A plt ylim -30 30 N/A N/A N/A plt yticks N/A N/A N/A N/A plt tight_layout N/A N/A N/A plt savefig N/A N/A N/A os path join results_dir hipp_mean_locations.pdf N/A N/A N/A plt show N/A plot_mean_and_pca_locations N/A N/A result N/A N/A N/A N/A _ _ _ _ Ls result N/A Ls_rot N/A N/A L Ls N/A N/A R N/A compute_optimal_rotation L pfs scale False N/A N/A N/A Ls_rot append N/A N/A L dot R N/A Ls_rot N/A N/A np array Ls_rot N/A Ls_mean N/A N/A np mean Ls_rot 0 pyhawkes.utils.utils convert_continuous_to_discrete N/A S_dt N/A convert_continuous_to_discrete S C 0.25 0 T scipy.ndimage.filters gaussian_filter1d N/A S_smooth N/A N/A N/A np array N/A N/A gaussian_filter1d s 4 N/A s N/A S_dt T T sklearn.decomposition PCA N/A pca N/A PCA n_components 2 N/A N/A N/A pca fit S_smooth N/A Z N/A N/A pca components_ T N/A R N/A compute_optimal_rotation Z pfs scale False N/A Z N/A N/A Z dot R N/A wheel_cmap N/A gradient_cmap N/A N/A colors N/A 0 N/A colors N/A 3 N/A colors N/A 2 N/A colors N/A 1 N/A colors N/A 0 N/A fig N/A create_figure figsize N/A 1.4 2.9 N/A ax N/A create_axis_at_location fig 0.3 1.7 1 1 N/A N/A i k N/A enumerate node_perm N/A N/A color N/A wheel_cmap N/A N/A N/A np pi N/A pfs_th N/A k N/A 2 N/A np pi N/A N/A N/A plt plot N/A Ls_mean N/A N/A k 0 N/A Ls_mean N/A N/A k 1 o markerfacecolor color markeredgecolor color markersize N/A 4 N/A 4 N/A pf_size N/A k alpha 0.7 N/A N/A N/A plt title Mean Locations N/A N/A N/A plt xlim -3 3 N/A N/A N/A plt xticks N/A -2 0 2 N/A N/A N/A plt ylim -3 3 N/A N/A N/A plt yticks N/A -2 0 2 N/A ax N/A create_axis_at_location fig 0.3 0.2 1 1 N/A N/A i k N/A enumerate node_perm N/A N/A color N/A wheel_cmap N/A N/A N/A np pi N/A pfs_th N/A k N/A 2 N/A np pi N/A N/A N/A plt plot N/A Z N/A N/A k 0 N/A Z N/A N/A k 1 o markerfacecolor color markeredgecolor color markersize N/A 4 N/A 4 N/A pf_size N/A k alpha 0.7 N/A N/A N/A plt title PCA Locations N/A N/A N/A plt xlim -0.5 0.5 N/A N/A N/A plt xticks N/A -0.4 0 0.4 N/A N/A N/A plt ylim -0.5 0.5 N/A N/A N/A plt yticks N/A -0.4 0 0.4 N/A N/A N/A plt savefig N/A N/A N/A os path join results_dir hipp_mean_pca_locations.pdf N/A N/A N/A plt show N/A N/A N/A plot_results N/A results N/A -1