Skip to content

Update 'tstart' in 'shift' method if present and unit test#971

Merged
matteobachetti merged 3 commits intoStingraySoftware:mainfrom
swapsha96:fix/911
Mar 16, 2026
Merged

Update 'tstart' in 'shift' method if present and unit test#971
matteobachetti merged 3 commits intoStingraySoftware:mainfrom
swapsha96:fix/911

Conversation

@swapsha96
Copy link
Copy Markdown
Contributor

Relevant Issue(s)/PR(s)

Fixes #911

Provide an overview of the implemented solution or the fix and elaborate on the modifications.

When timeseries is shifted (Github issue takes example of Lightcurve), time and GTIs are shifted however shifting tstart is missed which is address by this PR.
I've also updated existing unit test as well

Is there a new dependency introduced by your contribution? If so, please specify.

No

Any other comments?

No

@swapsha96 swapsha96 marked this pull request as draft March 7, 2026 09:33
@swapsha96 swapsha96 closed this Mar 7, 2026
@swapsha96 swapsha96 reopened this Mar 7, 2026
@swapsha96 swapsha96 marked this pull request as ready for review March 7, 2026 10:02
Copy link
Copy Markdown
Member

@matteobachetti matteobachetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @swapsha96

@matteobachetti matteobachetti added this pull request to the merge queue Mar 16, 2026
Merged via the queue into StingraySoftware:main with commit 989e62f Mar 16, 2026
5 checks passed
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 this pull request may close these issues.

lc.shift() does not update tstart Lightcurve attribute

2 participants