DaRL-LibSignal / LibSignal

115 stars 22 forks source link

FRAP agent bug #26

Open zhangm269 opened 8 months ago

zhangm269 commented 8 months ago

Describe the bug frap agent file has a bug

To Reproduce Steps to reproduce the behavior:

  1. Go to 'agent' folder
  2. Click on 'frap'
  3. Scroll down to Line 440
  4. See “demand = states[:, i:i+self.demand_shape]”

Expected behavior The expression i: i+demandshape in this code is incorrect when the demandshape is not 1. it should be written as _demand = states[:, i self.demand_shape:(i + 1) self.demandshape]

wingsweihua commented 8 months ago

@ShawLen Please take a look