-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix for #884: do not allow stitch()
to change Quantity data type
#891
Bugfix for #884: do not allow stitch()
to change Quantity data type
#891
Conversation
I am unsure about this. I suppose we have to ask if
I feel we have 2 choices:
|
@orionlee I think we can implement option #2 in your list as follows:
|
@barentsen Your suggestion of keeping TimeSeries behavior while adding a
lc.flux = UserCustomColumn(...)
lc.scatter() # the flux column has no .value, being a custom Column |
The concern for custom
|
The
LightCurveCollection.stitch()
is unexpectedly changing the data type of integerQuantity
columns fromint
intofloat
. This is because the underlyingastropy.table.vstack
operation displays this behavior (see astropy/astropy#10958)For example:
![Screen Shot 2020-10-28 at 10 33 37](https://user-images.githubusercontent.com/817669/97474315-38023180-1909-11eb-8e9b-86e99bdb7645.png)
This PR implements a workaround for this behavior in an attempt to fix #884:
However, perhaps an alternative solution would be to always use
Column
instead ofQuantity
for integer columns. (/cc @orionlee)