Skip to content

Conversation

@ryan-odea
Copy link
Member

While building the python version, I noticed

out[(switch) & get(params@treatment) != lag, isExcused := ifelse(get(params@excused.cols[[i]]) == 1, 1, 0)]

would loop over and replace isExcused at each iteration - this has been resolved to using the loop to in-place replacement the memory location only where treatment == treatment level [i]

Updated tests

@ryan-odea ryan-odea requested a review from remlapmot November 26, 2025 16:57
Copy link
Collaborator

@remlapmot remlapmot left a comment

Choose a reason for hiding this comment

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

Looks good Ryan.

I guess worth bumping the package version to a development version and adding a NEWS bullet.

@ryan-odea ryan-odea merged commit 01dfddf into main Nov 28, 2025
7 checks passed
@ryan-odea ryan-odea deleted the fix-excusing-override branch November 28, 2025 08:28
ryan-odea added a commit that referenced this pull request Nov 28, 2025
* fixed isExcused getting overwritten

* update tests

* version bump
remlapmot pushed a commit that referenced this pull request Dec 8, 2025
* fixed isExcused getting overwritten

* update tests

* version bump
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.

3 participants