Skip to content
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

tseg and tstart not being updated after lc.truncate? #751

Closed
andresgur opened this issue Aug 30, 2023 · 1 comment · Fixed by #753
Closed

tseg and tstart not being updated after lc.truncate? #751

andresgur opened this issue Aug 30, 2023 · 1 comment · Fixed by #753

Comments

@andresgur
Copy link

lc = Lightcurve(np.arange(100), np.arange(100)) lc_cut = lc.truncate(2, 10) print(lc.tstart==lc_cut.tstart) print(lc.tseg==lc_cut.tseg)

Both give True even if the other attributes (e.g. times, number of datapoints) are correctly truncated

print(lc_cut.time)
[2 3 4 5 6 7 8 9]

Same results if using the truncate method="time". Hope I'm not missing anything here...

@matteobachetti
Copy link
Member

@andresgur this should now be fixed. Thanks for your report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants