Module Expr Str Import alias identifier Assign NameStore Num Assign NameStore ListLoad Num Num Assign NameStore Num Assign NameStore Str Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Assign NameStore BinOpMult BinOpMult BinOpDiv Call AttributeLoad NameLoad attr Num NameLoad NameLoad NameLoad Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMult SubscriptLoad NameLoad ExtSlice Index AttributeLoad NameLoad attr Slice SubscriptLoad NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad Num NameLoad keyword Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Num Assign SubscriptStore NameLoad ExtSlice Slice Index Num Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index TupleLoad CompareLt NameLoad Num Num Num Assign NameStore BinOpDiv SubscriptLoad NameLoad ExtSlice Slice Index Num Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num Assign NameStore BinOpDiv BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index Num AttributeLoad NameLoad attr Num Assign NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpMult BinOpDiv BinOpDiv Num BinOpDiv BinOpMult NameLoad Num NameLoad NameLoad Num Assign NameStore BinOpDiv BinOpMult BinOpMult BinOpMult BinOpMult Num AttributeLoad NameLoad attr Num NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num ListLoad Num Assign NameStore Dict Str Str Str Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num ListLoad Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num ListLoad Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num ListLoad Num If CompareIn Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr ListLoad ListLoad Call AttributeLoad NameLoad attr NameLoad Num Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num Num ListLoad UnaryOpUSub Call AttributeLoad NameLoad attr NameLoad Num Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr ListLoad ListLoad Call AttributeLoad NameLoad attr NameLoad UnaryOpUSub Call AttributeLoad NameLoad attr NameLoad Num ListLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Num ListLoad Num Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr Call NameLoad UnaryOpUSub NameLoad Call NameLoad UnaryOpUSub NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Call NameLoad NameLoad Assign NameStore NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpDiv SubscriptLoad NameLoad Index NameLoad NameLoad Assign NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr BinOpAdd BinOpPow NameLoad Num BinOpPow BinOpDiv SubscriptLoad NameLoad Index NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Num For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Index NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad ExtSlice Slice Index Num Return NameLoad decorator_list ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad
N/A N/A 
NMR Pulse propagation 
From http://themodernscientist.com/posts/2013/2013-06-09-simulation_of_nmr_shaped_pulses/
 N/A numpy np N/A pulseLength 1000.0 N/A offset N/A -5000.0 5000.0 N/A n_freq 500 N/A inputMagnetization Mz N/A deltaomega N/A N/A N/A np abs N/A N/A offset N/A 1 N/A offset N/A 0 n_freq N/A relativeomega N/A N/A np arange N/A N/A np min offset N/A N/A np max offset deltaomega N/A n_pulse 1000 N/A totalRotation 180.0 N/A fourierCoeffA N/A N/A np array N/A 0.49 -1.02 1.11 -1.57 0.83 -0.42 0.26 -0.16 0.1 -0.07 0.04 -0.03 0.01 -0.02 0.0 -0.01 N/A x N/A N/A N/A N/A N/A np linspace 1 n_pulse n_pulse n_pulse 2.0 N/A np pi N/A nCosCoef N/A N/A np arange 1 N/A len fourierCoeffA N/A cosMat N/A N/A np cos N/A N/A nCosCoef N/A N/A N/A np newaxis N/A N/A x N/A N/A N/A N/A np newaxis N/A cosMat N/A N/A N/A np append N/A N/A np ones N/A n_pulse 1 cosMat axis 1 fourierCoeffA N/A sumMat N/A N/A np sum cosMat axis 1 N/A pulseShapeArray N/A N/A np zeros N/A n_pulse 2 N/A N/A pulseShapeArray N/A N/A N/A 0 N/A N/A np abs sumMat N/A N/A pulseShapeArray N/A N/A N/A sumMat 0 1 180.0 N/A pulseShapeInten N/A N/A pulseShapeArray N/A N/A N/A 0 N/A N/A np max N/A N/A np abs N/A pulseShapeArray N/A N/A N/A 0 N/A pulseShapePhase N/A N/A N/A pulseShapeArray N/A N/A N/A 1 N/A np pi 180 N/A xPulseShape N/A pulseShapeInten N/A N/A np cos pulseShapePhase N/A yPulseShape N/A pulseShapeInten N/A N/A np sin pulseShapePhase N/A scalingFactor N/A N/A N/A np sum xPulseShape n_pulse N/A gammaB1max N/A N/A N/A 1.0 N/A N/A pulseLength 360.0 totalRotation scalingFactor 1000000.0 N/A nu1maxdt N/A N/A N/A N/A N/A 2 N/A np pi 1e-06 gammaB1max pulseLength n_pulse N/A inputVector N/A N/A np array N/A N/A 0 N/A 0 N/A 1 N/A inputMagnetizationDict N/A mx my mz N/A N/A np array N/A N/A 1 N/A 0 N/A 0 N/A N/A np array N/A N/A 0 N/A 1 N/A 0 N/A N/A np array N/A N/A 0 N/A 0 N/A 1 N/A N/A N/A N/A inputMagnetization lower N/A N/A inputMagnetizationDict keys N/A N/A inputVector N/A inputMagnetizationDict N/A N/A N/A inputMagnetization lower N/A vectorComponent N/A N/A inputVector argmax pulseprop N/A N/A relativeomega pulseShapeInten pulseShapePhase gammaB1max nu1maxdt inputVector n_pulse n_freq N/A N/A yrotation N/A N/A beta N/A N/A N/A N/A N/A np array N/A N/A N/A N/A np cos beta 0 N/A N/A np sin beta N/A 0 1 0 N/A N/A N/A N/A np sin beta 0 N/A N/A np cos beta N/A zrotation N/A N/A beta N/A N/A N/A N/A N/A np array N/A N/A N/A N/A np cos beta N/A N/A N/A np sin beta 0 N/A N/A N/A np sin beta N/A N/A np cos beta 0 N/A 0 0 1 N/A grotation N/A N/A alpha theta phi N/A N/A N/A N/A N/A np dot N/A zrotation phi N/A N/A np dot N/A yrotation theta N/A N/A np dot N/A zrotation alpha N/A N/A np dot N/A yrotation N/A theta N/A zrotation N/A phi N/A N/A xyzdata N/A N/A np zeros N/A 3 N/A len relativeomega N/A phi pulseShapePhase N/A ind N/A range N/A len relativeomega N/A N/A theta N/A N/A np arctan2 pulseShapeInten N/A N/A relativeomega N/A ind gammaB1max N/A alpha N/A nu1maxdt N/A N/A np sqrt N/A N/A pulseShapeInten 2 N/A N/A N/A relativeomega N/A ind gammaB1max 2 N/A prop N/A N/A np eye 3 N/A pulseindex N/A range n_pulse N/A N/A r N/A grotation N/A alpha N/A pulseindex N/A theta N/A pulseindex N/A phi N/A pulseindex N/A prop N/A N/A np dot r prop N/A res N/A N/A np dot prop inputVector N/A N/A xyzdata N/A N/A N/A ind N/A N/A N/A np dot prop inputVector N/A N/A N/A 0 N/A xyzdata N/A compare_perf compare_perf parakeet jit N/A f N/A jit pulseprop N/A N/A f relativeomega pulseShapeInten pulseShapePhase gammaB1max nu1maxdt inputVector n_pulse n_freq