Skip to content

Fixes #82 and #83#84

Open
rsenne wants to merge 4 commits into
time_change_inhomogeneous_from
history_fixes_
Open

Fixes #82 and #83#84
rsenne wants to merge 4 commits into
time_change_inhomogeneous_from
history_fixes_

Conversation

@rsenne
Copy link
Copy Markdown
Collaborator

@rsenne rsenne commented May 11, 2026

This PR switches the default behavior of History, push!, and append! to no longer coerce the time of arrivals to be sorted.

This in theory will prevent two pathological cases where 1.) a user has data issues they don't know about or 2.) or they merely havent sorted their data. Ideally, this removes the layer of reasoning about the user and their data.

We however, still retain the ability to set check_args=false in the event minor numerical errors occur where we may expect them in th ebackend and handle them ourselves.

I also tacked on the propsoed chackge to time_change using cumsum which as better design.

Also bumps the version of the project. Resolves #82 and resolves #83.

rsenne and others added 2 commits May 10, 2026 21:11
…on). Also switched inhomogeneous tiem_change to be cumsummed.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@rsenne rsenne requested a review from JoseKling May 11, 2026 01:20
@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

i in 1:(length(edges) - 1)
]
T = eltype(deltas)
deltas .= max.(zero(T), deltas)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This actually does not guard against errors. If any delta is 0, then we have repeated events.
I guess we should use max(eps(T), deltas) instead. A warning could be useful, maybe?

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.

2 participants