Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias identifier ImportFrom alias Import alias identifier ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Expr Call NameLoad Str Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body If CompareNotEq SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad body Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assert CompareEq SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad NameLoad Assert Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assert Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Num Assert CompareEq Call NameLoad SubscriptLoad NameLoad Index Str Num Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assert Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assert Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assert CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Assert CompareEq Call NameLoad SubscriptLoad NameLoad Index Str Num Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assert Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assert CompareEq SubscriptLoad NameLoad Index Str Num Assert CompareEq AttributeLoad NameLoad attr TupleLoad Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index Num attr Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index Num attr Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index Num attr Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index Num attr Num Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assert CompareEq SubscriptLoad NameLoad Index Str Num Assert CompareEq AttributeLoad NameLoad attr TupleLoad Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num attr Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num attr Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num attr Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num attr Num Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assert CompareEq SubscriptLoad NameLoad Index Str Num Assert CompareEq AttributeLoad NameLoad attr TupleLoad Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num attr Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num attr Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num attr Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num attr Num Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assert CompareEq SubscriptLoad NameLoad Index Str Num Assert CompareEq AttributeLoad NameLoad attr TupleLoad Num Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num Num attr Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num Num attr Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num Num attr Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num Num attr Num Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assert CompareEq SubscriptLoad NameLoad Index Str Num Assert CompareEq AttributeLoad NameLoad attr TupleLoad Num Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num Num attr Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num Num attr Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num Num attr Num Num Assert CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num Num attr Num Num Expr Call NameLoad NameLoad NameLoad decorator_list
N/A N/A  Tests for the fileio.bruker submodule  __future__ print_function N/A tempfile N/A os N/A shutil N/A numpy np numpy.testing assert_array_equal N/A nmrglue ng setup DATA_DIR dic_similar N/A N/A dic1 dic2 N/A N/A N/A  Compared two Bruker parameter dictionaries N/A N/A N/A N/A dic1 keys N/A N/A dic2 keys N/A N/A N/A print Not same keys! N/A N/A N/A N/A dic1 keys N/A N/A dic2 keys N/A key N/A N/A dic1 keys N/A N/A N/A N/A dic1 N/A key N/A dic2 N/A key N/A N/A N/A print key N/A dic1 N/A key N/A dic2 N/A key N/A N/A N/A dic1 N/A key N/A dic2 N/A key N/A True N/A write_readback N/A N/A dic data N/A N/A N/A  Write out and readback a Bruker directory  N/A td N/A N/A tempfile mkdtemp dir . N/A N/A N/A N/A ng bruker write td dic data N/A N/A rdic rdata N/A N/A N/A ng bruker read td N/A N/A assert_array_equal data rdata N/A N/A dic_similar dic rdic N/A N/A N/A shutil rmtree td N/A lowmem_write_readback N/A N/A dic data N/A N/A N/A  Lowmemory write out and readback of a Bruker directory  N/A td N/A N/A tempfile mkdtemp dir . N/A N/A N/A N/A ng bruker write_lowmem td dic data N/A N/A rdic rdata N/A N/A N/A ng bruker read_lowmem td N/A tup N/A tuple N/A range N/A data ndim N/A N/A assert_array_equal N/A data N/A tup N/A rdata N/A tup N/A N/A dic_similar dic rdic N/A N/A N/A shutil rmtree td N/A test_jcamp1 N/A N/A N/A N/A N/A  reading/writing of JCAMP file 1 N/A dic N/A N/A N/A ng bruker read_jcamp N/A N/A N/A os path join DATA_DIR bruker_1d acqus N/A N/A N/A dic N/A LFILTER 200 N/A N/A N/A len N/A dic N/A PRECHAN 16 N/A tf N/A N/A tempfile mktemp dir . N/A N/A N/A N/A ng bruker write_jcamp dic tf N/A ndic N/A N/A N/A ng bruker read_jcamp tf N/A N/A dic_similar dic ndic N/A N/A N/A os remove tf N/A test_jcamp2 N/A N/A N/A N/A N/A  reading/writing of JCAMP file 2 N/A dic N/A N/A N/A ng bruker read_jcamp N/A N/A N/A os path join DATA_DIR bruker_2d acqu2s N/A tf N/A N/A tempfile mktemp dir . N/A N/A N/A N/A ng bruker write_jcamp dic tf N/A ndic N/A N/A N/A ng bruker read_jcamp tf N/A N/A dic_similar dic ndic N/A N/A N/A os remove tf N/A test_pprog N/A N/A N/A N/A N/A  reading/writing of pulse program N/A dic N/A N/A N/A ng bruker read_pprog N/A N/A N/A os path join DATA_DIR bruker_3d pulseprogram N/A N/A N/A N/A dic N/A var N/A LOOPC 58 N/A N/A N/A len N/A dic N/A incr 4 N/A tf N/A N/A tempfile mktemp dir . N/A N/A N/A N/A ng bruker write_pprog tf dic N/A ndic N/A N/A N/A ng bruker read_pprog tf N/A N/A dic_similar dic ndic N/A N/A N/A os remove tf N/A test_1d N/A N/A N/A N/A N/A  reading/writing of 1D bruker data N/A N/A dic data N/A N/A N/A ng bruker read N/A N/A N/A os path join DATA_DIR bruker_1d N/A N/A N/A dic N/A FILE_SIZE 16384 N/A N/A N/A data shape N/A 2048 N/A N/A N/A N/A np abs N/A N/A N/A data N/A 20 real -282.0 0.01 N/A N/A N/A N/A np abs N/A N/A N/A data N/A 20 imag 14.0 0.01 N/A N/A N/A N/A np abs N/A N/A N/A data N/A 91 real -840842.0 0.01 N/A N/A N/A N/A np abs N/A N/A N/A data N/A 91 imag -1116591.0 0.01 N/A N/A write_readback dic data N/A test_2d N/A N/A N/A N/A N/A  reading/writing of 2D bruker data N/A N/A dic data N/A N/A N/A ng bruker read N/A N/A N/A os path join DATA_DIR bruker_2d N/A N/A N/A dic N/A FILE_SIZE 3686400 N/A N/A N/A data shape N/A 600 768 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 0 40 real 28.0 0.01 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 0 40 imag -286.0 0.01 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 13 91 real -7279.0 0.01 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 13 91 imag -17680.0 0.01 N/A N/A write_readback dic data N/A test_2d_lowmem N/A N/A N/A N/A N/A  lowmemory reading/writing of 2D bruker data N/A N/A dic data N/A N/A N/A ng bruker read_lowmem N/A N/A N/A os path join DATA_DIR bruker_2d N/A N/A N/A dic N/A FILE_SIZE 3686400 N/A N/A N/A data shape N/A 600 768 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 0 40 real 28.0 0.01 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 0 40 imag -286.0 0.01 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 13 91 real -7279.0 0.01 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 13 91 imag -17680.0 0.01 N/A N/A lowmem_write_readback dic data N/A test_3d N/A N/A N/A N/A N/A  reading/writing of 3D bruker data N/A N/A dic data N/A N/A N/A ng bruker read N/A N/A N/A os path join DATA_DIR bruker_3d N/A N/A N/A dic N/A FILE_SIZE 91226112 N/A N/A N/A data shape N/A 116 128 768 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 0 0 40 real 18.0 0.01 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 0 0 40 imag -66.0 0.01 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 5 13 91 real 1138.0 0.01 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 5 13 91 imag 3482.0 0.01 N/A N/A write_readback dic data N/A test_3d_lowmem N/A N/A N/A N/A N/A  low memory reading/writing of 3D bruker data N/A N/A dic data N/A N/A N/A ng bruker read_lowmem N/A N/A N/A os path join DATA_DIR bruker_3d N/A N/A N/A dic N/A FILE_SIZE 91226112 N/A N/A N/A data shape N/A 116 128 768 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 0 0 40 real 18.0 0.01 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 0 0 40 imag -66.0 0.01 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 5 13 91 real 1138.0 0.01 N/A N/A N/A N/A np abs N/A N/A N/A data N/A N/A 5 13 91 imag 3482.0 0.01 N/A N/A lowmem_write_readback dic data N/A