8000 Bug when multiplying a masked column with a unit · Issue #2701 · astropy/astropy · GitHub
[go: up one dir, main page]

Skip to content 8000
Bug when multiplying a masked column with a unit #2701
@astrofrog

Description

@astrofrog

Discovered during a live demo at SciPy 2014 ;)

In [13]: t = Table(masked=True)

In [14]: t['a'] = [1,2,3]

In [15]: t['a'].unit = 'deg'

In [16]: t['a'] * u.deg
Out[16]: 
<MaskedColumn name='a' unit=None format=None description=None>
masked_array(data = [<Quantity 1.0 deg> <Quantity 2.0 deg> <Quantity 3.0 deg>],
             mask = [False False False],
       fill_value = 999999)

This should return just a single quantity, as it does for non-masked tables.

cc @taldcroft

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0