Skip to content

Conversation

@bruno-f-cruz
Copy link
Member

@bruno-f-cruz bruno-f-cruz commented Oct 27, 2025

This PR should be fully backwards compatible due to the custom validator implemented in AllenNeuralDynamics/Aind.Behavior.Services#174.
As a result, any numeric values (e.g. the previously typed float) that are passed to the annotated type distributions.Distribution will be automatically coerced to a Scalar type.

While it is technically a breaking change for analysis code downstream, the "true" stop duration should be extracted from real data anyway,.

In addition, the implementation of the StopDurationOffset was cleaned up by moving the calculation to the point of reward computation instead of site creation. This is in line with other modifiers that are applied on top of the computation and NOT instantiation.

Closes #449

@bruno-f-cruz bruno-f-cruz changed the title Implement stop delay as a distribution instead of scalar value Implement OperantLogic.stop_duration as a distribution instead of scalar value Oct 27, 2025
@bruno-f-cruz bruno-f-cruz changed the base branch from main to update-launcher November 14, 2025 18:52
@bruno-f-cruz bruno-f-cruz merged commit d35b909 into update-launcher Nov 14, 2025
5 checks passed
@bruno-f-cruz bruno-f-cruz deleted the feat-make-delays-distrbution branch November 14, 2025 18: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.

StopDuration should allow a distribution to be passed

2 participants