Skip to content

Commit

Permalink
Renaming.
Browse files Browse the repository at this point in the history
  • Loading branch information
Smoren committed May 27, 2024
1 parent 26325de commit 5ea7661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/genetic/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export function convertWeightsToSummaryMatrixRow(weights: TotalSummaryWeights, t
].flat(Infinity) as number[];
}

export function convertSummaryToSummaryMatrixRow(summary: TotalSummary): number[] {
export function convertTotalSummaryToSummaryMatrixRow(summary: TotalSummary): number[] {
const compoundsPerAtom = summary.COMPOUNDS.length / summary.WORLD.ATOMS_COUNT[0];
const compoundsPerAtomByTypes = summary.COMPOUNDS.lengthByTypes.map((x) => x / summary.WORLD.ATOMS_COUNT[0]);
const compoundLengthSummary = Object.values(summary.COMPOUNDS.itemLengthSummary);
Expand Down Expand Up @@ -157,7 +157,7 @@ export function testSimulation(worldConfig: WorldConfig, typesConfig: TypesConfi
WORLD: sim.summary,
COMPOUNDS: compounds.summary,
};
const rawMatrix = convertSummaryToSummaryMatrixRow(totalSummary);
const rawMatrix = convertTotalSummaryToSummaryMatrixRow(totalSummary);
summaryMatrix.push(rawMatrix);
}

Expand Down

0 comments on commit 5ea7661

Please sign in to comment.