Closed cwschilly closed 10 months ago
I've found a bug in the code--putting in draft until I fix it
Update: fixed
I am reworking the unit test to use multi-phase data generated by vt
I'm running into an issue with assigning communication dicts to the correct rank. Originally, I was pairing communications with ranks by checking to see which object the comm is from (communications["from"]["id"]
). Then I would compare that id to the ids from rank.get_object_ids()
. If they matched, I would write out that communication on that rank.
However, it seems like a lot of these communications are sent from "home": 0, "id": 0
, but there isn't an object (entity
, in the JSON) that has id: 0
(meaning that there is never a match). Am I misunderstanding something?
Fixes #482
This PR also deprecates the
-1
option (to balance all phases). If no phase is specified, it defaults to balancing phase 0.