Module Expr Str Import alias ImportFrom alias identifier alias ImportFrom alias ImportFrom alias Import alias identifier With Call NameLoad body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias Assign TupleStore NameStore NameStore NameStore Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr UnaryOpNot NameLoad Str Assign NameStore Call NameLoad Call NameLoad NameLoad Str FunctionDef arguments args defaults body If CompareEq AttributeLoad NameLoad attr Str body Raise Call NameLoad Str If UnaryOpNot NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad NameLoad Num Expr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Num Assign NameStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Index Num Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Index Num attr Expr Call NameLoad Call NameLoad NameLoad Num Expr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Num Expr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Num Expr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Str decorator_list FunctionDef arguments args defaults body Pass decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Index Num attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad Num Num decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Index Num attr Expr Call NameLoad Call NameLoad NameLoad BinOpAdd Num BinOpMult BinOpMult BinOpMult Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Expr Call NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Num Num decorator_list
N/A N/A  Testing dft
 N/A os os.path join pjoin dirname externals.six BytesIO testing suppress_warnings N/A numpy np N/A N/A suppress_warnings N/A N/A dft N/A nifti1 nose SkipTest nose.tools assert_true assert_false assert_equal assert_raises optpkg optional_package nibabel.pydicom_compat have_dicom N/A N/A PImage have_pil _ N/A optional_package PIL.Image N/A pil_test N/A N/A N/A N/A np testing dec skipif N/A have_pil could not import PIL.Image N/A data_dir N/A pjoin N/A dirname __file__ data setup_module N/A N/A N/A N/A N/A N/A N/A os name nt N/A N/A N/A SkipTest FUSE not available for windows, skipping dft tests N/A N/A have_dicom N/A N/A N/A SkipTest Need pydicom for dft tests, skipping N/A test_init N/A N/A N/A N/A N/A N/A N/A dft clear_cache N/A N/A N/A dft update_cache data_dir N/A test_study N/A N/A N/A N/A N/A studies N/A N/A dft get_studies data_dir N/A N/A assert_equal N/A len studies 1 N/A N/A assert_equal N/A N/A studies N/A 0 uid 1.3.12.2.1107.5.2.32.35119.30000010011408520750000000022 N/A N/A assert_equal N/A N/A studies N/A 0 date 20100114 N/A N/A assert_equal N/A N/A studies N/A 0 time 121314.000000 N/A N/A assert_equal N/A N/A studies N/A 0 comments dft study comments N/A N/A assert_equal N/A N/A studies N/A 0 patient_name dft patient name N/A N/A assert_equal N/A N/A studies N/A 0 patient_id 1234 N/A N/A assert_equal N/A N/A studies N/A 0 patient_birth_date 19800102 N/A N/A assert_equal N/A N/A studies N/A 0 patient_sex F N/A test_series N/A N/A N/A N/A N/A studies N/A N/A dft get_studies data_dir N/A N/A assert_equal N/A len N/A N/A studies N/A 0 series 1 N/A ser N/A N/A N/A studies N/A 0 series N/A 0 N/A N/A assert_equal N/A ser uid 1.3.12.2.1107.5.2.32.35119.2010011420292594820699190.0.0.0 N/A N/A assert_equal N/A ser number 12 N/A N/A assert_equal N/A ser description CBU_DTI_64D_1A N/A N/A assert_equal N/A ser rows 256 N/A N/A assert_equal N/A ser columns 256 N/A N/A assert_equal N/A ser bits_allocated 16 N/A N/A assert_equal N/A ser bits_stored 12 N/A test_storage_instances N/A N/A N/A N/A N/A studies N/A N/A dft get_studies data_dir N/A sis N/A N/A N/A N/A studies N/A 0 series N/A 0 storage_instances N/A N/A assert_equal N/A len sis 2 N/A N/A assert_equal N/A N/A sis N/A 0 instance_number 1 N/A N/A assert_equal N/A N/A sis N/A 1 instance_number 2 N/A N/A assert_equal N/A N/A sis N/A 0 uid 1.3.12.2.1107.5.2.32.35119.2010011420300180088599504.0 N/A N/A assert_equal N/A N/A sis N/A 1 uid 1.3.12.2.1107.5.2.32.35119.2010011420300180088599504.1 N/A test_storage_instance N/A N/A N/A N/A N/A N/A test_png N/A N/A N/A N/A N/A studies N/A N/A dft get_studies data_dir N/A data N/A N/A N/A N/A N/A studies N/A 0 series N/A 0 as_png N/A im N/A N/A PImage open N/A BytesIO data N/A N/A assert_equal N/A im size N/A 256 256 N/A pil_test test_nifti N/A N/A N/A N/A N/A studies N/A N/A dft get_studies data_dir N/A data N/A N/A N/A N/A N/A studies N/A 0 series N/A 0 as_nifti N/A N/A assert_equal N/A len data N/A 352 N/A N/A N/A 2 256 256 2 N/A h N/A N/A nifti1 Nifti1Header N/A data N/A 348 N/A N/A assert_equal N/A N/A h get_data_shape N/A 256 256 2 N/A