-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
TimeSeries slicing breaks remove_row() #10732
Comments
There appears to be an issue with the Index of the underlying Table not properly updating. For example:
|
Okay! I see two problems here.
We could fix this by updating the columns of the
If the data isn't unique it will add the row number/ row id (confusingly labeled 'data' in this example) to the This I'm not quite sure what the fix for this one would be... I'll play around with this more and post here if I find anything else EDIT: I'm hoping this explination all makes sense and might be useful. |
Another work around:
Now of course, the problem with this is not all data engines have a 'cols' attribute |
Description
A (row) slice of a
TimeSeries
returns aTimeSeries
object with brokenremove_row()
property: the function can be called just once, on the next call either on the same or a different row in the table it fails with aValueError
.Expected behavior
should remove again the (current) row 2, i.e. the
mjd=1506.0
entry.Actual behavior
Steps to Reproduce
See above for Astropy 4.1rc2 and 4.2.dev591+g5fc518eb8.d20200909 (and per lightkurve/lightkurve#836 on 4.1rc1/Linux)
System Details
The text was updated successfully, but these errors were encountered: