Skip to content

Commit

Permalink
export efficiency denominator
Browse files Browse the repository at this point in the history
  • Loading branch information
baltzell committed Jan 6, 2025
1 parent de53f81 commit ed968cc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,19 @@ public String toTable() {
public JsonObject toJson() {
JsonObject effs = new JsonObject();
JsonArray pids = new JsonArray();
JsonObject gens = new JsonObject();
for (int i=0; i<validPids.size(); ++i) {
pids.add(validPids.get(i));
JsonArray a = new JsonArray();
for (int j=0; j<validPids.size(); ++j)
a.add(get(validPids.get(i),validPids.get(j)));
effs.add(Integer.toString(validPids.get(i)),a);
gens.add(Integer.toString(validPids.get(i)), mcTallies[validPids.indexOf(i)]);
}
JsonObject ret = new JsonObject();
ret.add("pids", pids);
ret.add("effs", effs);
ret.add("gens", gens);
return ret;
}
}

0 comments on commit ed968cc

Please sign in to comment.