Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#44 closed enhancement (fixed)

Table data should have `columns` attribute

Reported by: stsci_embray Owned by: stsci_embray
Priority: low Milestone: 3.0.0
Version: 2.4 Severity: minor
Keywords: Cc:


It was pointed out to me that when using pyfits.getdata(...) there's no obvious way to get information about the table columns without opening the FITS file separately and looking at the headers.

In fact, the data object already does have the _coldefs attribute, but its meaning is non-obvious and users know instictively to ignore _ attributes if they don't know what they're for.

_coldefs should be changed to simply columns (though an internal _coldefs attribute should still be kept for backwards compatibility).

Also, the string formatting for ColDefs objects is really ugly and needs to be fixed.

Change History (3)

comment:1 Changed 8 years ago by stsci_embray

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r811.

comment:2 Changed 8 years ago by stsci_embray

See also updates in r819 and r820.

comment:3 Changed 8 years ago by stsci_embray

  • Milestone set to 3.0.0
  • Type changed from defect to enhancement
  • Version set to 2.4
Note: See TracTickets for help on using tickets.