suever / pydicom-experimental

pydicom test
0 stars 1 forks source link

Dataset.__dir__() doesn't list instance methods #95

Closed suever closed 9 years ago

suever commented 9 years ago

From njv...@gmail.com on December 03, 2010 13:54:44

For exploring, it'd be really nice if:

d = dicom.read_file("foo.dcm") dir(d)

listed methods like data_element() and pixel_array(). Currently, it only lists tag names.

Somehow, though, IPython's tab completion finds pixel_array() and other methods, despite trait_names() returning dir(). Maybe IPython does its own inspection now?

Original issue: http://code.google.com/p/pydicom/issues/detail?id=95

suever commented 9 years ago

From darcymason@gmail.com on December 03, 2010 17:17:29

Agreed. I had thought the method names were somehow returned by python. Evidently not. But this may differ by python version -- needs a little investigation.

One other disturbing finding. Typing something like:

d.data_element which should return '' instead returns a list of the data elements, as if one had type "d". This is also true of inherited methods from the parent dict object.

Status: Accepted

suever commented 9 years ago

From darcymason@gmail.com on December 18, 2011 11:36:40

This issue was closed by revision a0bbac406d1a .

Status: Fixed