Dry my eyes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user