Dry my eyes

This commit is contained in:
Anders Olsson
2023-10-24 09:50:16 +02:00
parent efa235be59
commit 59c256edad
2 changed files with 20 additions and 100 deletions

View File

@@ -367,17 +367,18 @@ impl History {
agent.message = b.forward_prior_out(a);
}
} else {
let b = Batch::new(composition, results, weights, t, self.p_draw, &self.agents);
let mut batch: Batch = Batch::new(t, self.p_draw);
batch.add_events(composition, results, weights, &self.agents);
self.batches.insert(k, b);
self.batches.insert(k, batch);
let b = &self.batches[k];
let batch = &self.batches[k];
for a in b.skills.keys() {
for a in batch.skills.keys() {
let agent = self.agents.get_mut(a).unwrap();
agent.last_time = if self.time { t } else { i64::MAX };
agent.message = b.forward_prior_out(a);
agent.message = batch.forward_prior_out(a);
}
k += 1;