Skip to content

Commit cb5c600

Browse files
committed
fix a bug
1 parent 3c61815 commit cb5c600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

environments/var_voltage_control/voltage_control_env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def get_obs(self):
260260
# transform the voltage phase to radian
261261
obs += list(zone_buses.loc[:, "va_degree"].to_numpy(copy=True) * np.pi / 180)
262262
obs_sgen_dict[f"'{list(clusters.keys())[i]}'"] = np.array(obs)
263-
obs_len_list.append(obs_sgen_dict[f"'{list(clusters.keys())[i]}'"].shape[0]
263+
obs_len_list.append(obs_sgen_dict[f"'{list(clusters.keys())[i]}'"].shape[0])
264264
agents_obs = list()
265265
obs_max_len = max(obs_len_list)
266266
for sgen in sgen_list:

0 commit comments

Comments
 (0)