PyConf: Deterministic identity of components and data
- Aug 30, 2022
-
-
Rosen Matev authored
-
Rosen Matev authored
`hash(alg/tool/data_handle)` are non-deterministic since Algorithm, Tool and DataHandle use `hash` to construct their "identity" (which is returned by their `__hash__`). This makes the iteration order of `set`s of objects non-deterministic, which can be a problem since, at least currently, the names of `Algorithm`s depends on instantiation order. This is fixed here by using deterministic hashing.
-