Skip to content

Commit 4e4fb8f

Browse files
sync
1 parent f55ec4b commit 4e4fb8f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ async function main(){
231231
proxy_controller = new ProxyController(new Policy(model))
232232
const l2f = new L2F(sim_container, 10, proxy_controller, seed)
233233

234-
const sim_controls = new SimControls(l2f, proxy_controller)
235234
const parameter_manager = new ParameterManager(l2f)
235+
const sim_controls = new SimControls(l2f, proxy_controller, parameter_manager)
236236
}
237237
window.onload = main
238238

sim_controls.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export class SimControls{
2-
constructor(l2f, policy){
2+
constructor(l2f, policy, parameter_manager){
33
this.policy = policy
44
const num_vehicles_input = document.getElementById("num-vehicles")
55
num_vehicles_input.addEventListener("input", async () => {
@@ -13,7 +13,7 @@ export class SimControls{
1313
}
1414
else{
1515
elements.forEach(el => {
16-
el.original_values = el.original_values.concat(get_values_from_path(el.path).slice(-diff))
16+
el.original_values = el.original_values.concat(parameter_manager.get_values_from_path(el.path).slice(-diff))
1717
})
1818
}
1919
})

0 commit comments

Comments
 (0)