-
Notifications
You must be signed in to change notification settings - Fork 6
Description
@nstarman could you please look at /io/astropy_table.py, specifically lines 142-149. Originally we only had line 149, but a user reported an error when there were no IDs in their table.
I can see that on lines 134 and 135 m and ID are set to None if they aren't in the table, but the error stemmed from a numpy array of [None] getting sent to cluster.add_stars, which is expecting just None if undefined.
I originally tried changing lines 127-135 so the numpy array was defined there. For example:
x = np.array(table[cm.pop("x")])
However unfortunately this triggered an astropy units error in /tests/test_loaders/test_astropy_table.
So I have lines 142-149 for now as a quick fix, but its ugly. Any chance you know how to set the arrays before calling cluster.add_stars?
Thanks