Closed yuema137 closed 5 months ago
Pydantic validators are called according to the sequence of the input arguments. In the old code "bind" was behind "partition", so the binding reset for dali https://github.com/XENONnT/utilix/blob/4bf968290ecaa96f8ae6c9cf16f6c9f75add3813/utilix/batchq.py#L211 doesn't actually work, as the bind will be overwritten in the bind validator.
This PR fixes this problem by moving "bind" in front of "partition"
Pydantic validators are called according to the sequence of the input arguments. In the old code "bind" was behind "partition", so the binding reset for dali https://github.com/XENONnT/utilix/blob/4bf968290ecaa96f8ae6c9cf16f6c9f75add3813/utilix/batchq.py#L211 doesn't actually work, as the bind will be overwritten in the bind validator.
This PR fixes this problem by moving "bind" in front of "partition"