Skip to content

Conversation

@willGraham01
Copy link
Collaborator

@willGraham01 willGraham01 commented Aug 18, 2025

Resolves #86 |

The _CPComponent base class now implements the __call__ method, which is inherited by the CausalEstimand and Constraint classes. In turn, this just simply evaluates the hidden _do_with_samples method, though it expands the dictionary provided to __call__ into keyword arguments so the individual sample values can be

Also fixes a bug in how apply_effect_handlers works, discovered whilst adding test coverage for _CPComponent.

@willGraham01 willGraham01 requested a review from mscroggs August 18, 2025 14:24
@willGraham01 willGraham01 merged commit c66f37b into main Aug 19, 2025
5 checks passed
@willGraham01 willGraham01 deleted the wgraham/make-ce-con-callables branch August 19, 2025 10:52
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.

Make CausalEstimand and Constraint Callables

3 participants