Skip to content

Inconsistent interface for data access #7

@mcdittmar

Description

@mcdittmar

The path to the 'leaf' data from columns appears to depend on what sort of value is at the leaf:
Or maybe more to the point, how it is serialized.

  • if has 'unit'(?):
    • see warnings from astropy/table.py:
      • "UserWarning: dropping mask in Quantity column '_color': masked Quantity not supported"
    • column values type is "astropy.units.quantity.Quantity
      • access data via: prop.measure.coord.hardness_ratio.value[row] == float64
      • access data via: prop.measure.coord.hardness_ratio[row] == Quantity
  • otherwise:
    • column values type is "astropy.table.column.MaskedColumn"
      • access data via: prop.measure.coord.hardness_ratio[row] == float64

dmusecases:standard_properties

  • gaia - color is a difference in magnitudes, so has unit='mag'
  • 4xmm - hardness ratio is dimensionless, so no units.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions