Skip to content

Commit

Permalink
Fix bug that caused W5 VO Table to not be read in correctly with rece…
Browse files Browse the repository at this point in the history
…nt versions of Numpy and Astropy
  • Loading branch information
astrofrog committed Dec 20, 2018
1 parent 06ad71c commit ac1a453
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGES.md
Expand Up @@ -6,6 +6,12 @@ v0.15.0 (unreleased)

* No changes yet.

v0.14.2 (unreleased)
--------------------

* Fix bug that caused demo VO Table to not be read in correctly with
recent versions of Numpy and Astropy. [#1911]

v0.14.1 (unreleased)
--------------------

Expand Down
2 changes: 1 addition & 1 deletion glue/core/data_factories/astropy_table.py
Expand Up @@ -76,7 +76,7 @@ def astropy_tabular_data(*args, **kwargs):
# fill array for now
try:
c = c.filled(fill_value=np.nan)
except ValueError: # assigning nan to integer dtype
except (ValueError, TypeError): # assigning nan to integer dtype
c = c.filled(fill_value=-1)

nc = Component.autotyped(c, units=u)
Expand Down

0 comments on commit ac1a453

Please sign in to comment.