Log entry for EquipmentEverUsed_ByFacilityID
non-deterministic
#1435
Labels
bug
Something isn't working
EquipmentEverUsed_ByFacilityID
non-deterministic
#1435
Somewhat analogous to #1434
In
TLOmodel/src/tlo/methods/equipment.py
Lines 232 to 250 in 625b4d9
a dictionary is constructed for each row of a dataframe
output
and logged under the keyEquipmentEverUsed_ByFacilityID
. In each dictionary theEquipmentEverUsed
key (from the corresponding column in the dataframe) maps to a string representation of a set of the equipment item (codes?) used in the simulation. As sets do not have a fixed iteration order in Python, over multiple runs of the same simulation the ordering of items in the string representations of these sets and so in the log entries will change. We should ideally sort the set entries before logging / converting to a string.The text was updated successfully, but these errors were encountered: