Module Expr Str Import alias identifier ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias alias FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore BinOpDiv Num Num Assign NameStore Num Assign NameStore BinOpDiv BinOpDiv NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpMult NameLoad NameLoad NameLoad Return SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Num Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num BinOpMult Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num Num Assert CompareLtE BinOpSub Call NameLoad NameLoad NameLoad TupleLoad Num Num Num AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assert CompareLtE BinOpSub Call NameLoad NameLoad NameLoad TupleLoad Num Num Num AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore ListLoad TupleLoad Num Num TupleLoad Num Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad ListLoad Num Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Num Expr Call NameLoad NameLoad ListLoad Num Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Num keyword Num Expr Call NameLoad NameLoad ListLoad BinOpMult Num Num Num decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Num Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num BinOpMult Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num Num Assign NameStore BinOpMult Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore TupleLoad Num Num Assign NameStore Call NameLoad BinOpSub Call NameLoad Num Str Call NameLoad Num Str Assign NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assert CompareLtE Call NameLoad BinOpSub Call NameLoad NameLoad NameLoad NameLoad Num NameLoad Assign NameStore Call NameLoad NameLoad NameLoad TupleLoad TupleLoad Num Num TupleLoad Num Num keyword TupleLoad Num Num keyword Num Assert CompareLtE Call NameLoad BinOpSub SubscriptLoad NameLoad Index TupleLoad Num Num Num NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Num Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num BinOpMult Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num Num Assert CompareLtE Call NameLoad BinOpSub Call NameLoad NameLoad NameLoad TupleLoad Num Num Num Num Assert CompareLtE Call NameLoad BinOpSub Call NameLoad NameLoad NameLoad ListLoad TupleLoad Num Num Num Num decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr TupleLoad Num Assign SubscriptStore NameLoad ExtSlice Slice Slice Index Num NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Slice Index Num NameLoad Assign NameStore Call NameLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad TupleLoad Num Num TupleLoad Num Num Assert CompareLtE Call NameLoad BinOpSub Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad Num Num decorator_list
N/A N/A  Unit tests for nmrglue/analysis/integration.py module  N/A numpy np scipy.stats multivariate_normal numpy.testing assert_array_almost_equal N/A nmrglue ng nmrglue.analysis.integration integrate ndintegrate _build_1d_ppm_scale N/A N/A N/A N/A N/A n 500 N/A sw N/A 1 0.001 N/A obs 100 N/A dx N/A N/A sw n obs N/A ppm_scale N/A N/A np arange dx N/A dx n dx N/A N/A ppm_scale N/A -1 N/A test_1d_integrate N/A N/A N/A N/A N/A  Test integration of synthetic 1D data with two peaks. N/A ppm_scale N/A _build_1d_ppm_scale N/A uc N/A N/A N/A N/A ng fileio fileiobase uc_from_freqscale ppm_scale 100 N/A data N/A N/A N/A multivariate_normal pdf ppm_scale mean 5 cov 0.01 N/A N/A N/A multivariate_normal pdf ppm_scale mean 8 cov 0.01 2.0 N/A N/A N/A N/A integrate data uc N/A 4 6 1.0 N/A N/A N/A np finfo float eps N/A N/A N/A N/A integrate data uc N/A 7 9 2.0 N/A N/A N/A np finfo float eps N/A limits N/A N/A 4 6 N/A 7 9 N/A values_1 N/A integrate data uc limits N/A N/A assert_array_almost_equal values_1 N/A 1.0 2.0 N/A values_2 N/A integrate data uc limits norm_to_range 1 N/A N/A assert_array_almost_equal values_2 N/A 0.5 1.0 N/A values_2 N/A integrate data uc limits norm_to_range 1 calibrate 3 N/A N/A assert_array_almost_equal values_2 N/A N/A 0.5 3 3.0 N/A test_1d_integrate_withnoise N/A N/A N/A N/A N/A  Test integration of synthetic 1D data with two peaks and noise N/A N/A N/A N/A np random seed 0 N/A ppm_scale N/A _build_1d_ppm_scale N/A uc N/A N/A N/A N/A ng fileio fileiobase uc_from_freqscale ppm_scale 100 N/A data N/A N/A N/A multivariate_normal pdf ppm_scale mean 5 cov 0.01 N/A N/A N/A multivariate_normal pdf ppm_scale mean 8 cov 0.01 2 N/A noise N/A N/A N/A N/A np random randn N/A data shape 0.01 N/A data N/A data noise N/A limits N/A 4.0 6.0 N/A n N/A abs N/A N/A uc 4.5 ppm N/A uc 5.5 ppm N/A max_error N/A N/A N/A np std noise N/A N/A np sqrt n N/A N/A N/A abs N/A N/A integrate data uc limits 1 max_error N/A resutls N/A integrate data uc N/A N/A 4 6 N/A 7 9 noise_limits N/A 1 2 norm_to_range 1 N/A N/A N/A abs N/A N/A resutls N/A N/A 0 0 0.5 max_error N/A test_1d_ndintegrate N/A N/A N/A N/A N/A  Test integration of synthetic with ndintegrate.
     N/A ppm_scale N/A _build_1d_ppm_scale N/A uc N/A N/A N/A N/A ng fileio fileiobase uc_from_freqscale ppm_scale 100 N/A data N/A N/A N/A multivariate_normal pdf ppm_scale mean 5 cov 0.01 N/A N/A N/A multivariate_normal pdf ppm_scale mean 8 cov 0.01 2.0 N/A N/A N/A abs N/A N/A ndintegrate data uc N/A 4 6 1.0 1e-10 N/A N/A N/A abs N/A N/A ndintegrate data uc N/A N/A 7 9 2.0 1e-10 N/A test_2d_ndintegrate N/A N/A N/A N/A N/A  Test integration of synthetic 2D data with ndintegrate.  N/A ppm_scale N/A _build_1d_ppm_scale N/A uc N/A N/A N/A N/A ng fileio fileiobase uc_from_freqscale ppm_scale 100 N/A N/A x y N/A N/A np meshgrid ppm_scale ppm_scale N/A pos N/A N/A np empty N/A N/A x shape N/A 2 N/A N/A pos N/A N/A N/A N/A 0 x N/A N/A pos N/A N/A N/A N/A 1 y N/A rv N/A multivariate_normal N/A 5 8 N/A 0.01 0.01 N/A data N/A N/A rv pdf pos N/A limits N/A N/A 4 6 N/A 7 9 N/A N/A N/A abs N/A N/A ndintegrate data N/A uc uc limits 1.0 1e-10 N/A