XENONnT / utilix

Package for XENON members to easily interface with RunDB, Midway batch queue, maybe Rucio (others?).
0 stars 6 forks source link

Fix dali binding #102

Closed yuema137 closed 5 months ago

yuema137 commented 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"