gym-examples 3.0.9__py3-none-any.whl → 3.0.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gym_examples/__init__.py +1 -1
- gym_examples/envs/wsn_env.py +2 -1
- {gym_examples-3.0.9.dist-info → gym_examples-3.0.10.dist-info}/METADATA +1 -1
- gym_examples-3.0.10.dist-info/RECORD +7 -0
- gym_examples-3.0.9.dist-info/RECORD +0 -7
- {gym_examples-3.0.9.dist-info → gym_examples-3.0.10.dist-info}/WHEEL +0 -0
- {gym_examples-3.0.9.dist-info → gym_examples-3.0.10.dist-info}/top_level.txt +0 -0
gym_examples/__init__.py
CHANGED
gym_examples/envs/wsn_env.py
CHANGED
@@ -173,7 +173,8 @@ class WSNRoutingEnv(gym.Env):
|
|
173
173
|
return [{'remaining_energy': np.array([e]),
|
174
174
|
'consumption_energy': np.array([initial_energy - e]),
|
175
175
|
'sensor_positions': p,
|
176
|
-
'number_of_packets': np.array([d])
|
176
|
+
'number_of_packets': np.array([d]),
|
177
|
+
'statistics': self.get_metrics()} for e, p, d in zip(self.remaining_energy, self.sensor_positions, self.number_of_packets)]
|
177
178
|
|
178
179
|
def _get_observation_space(self):
|
179
180
|
return Dict({
|
@@ -0,0 +1,7 @@
|
|
1
|
+
gym_examples/__init__.py,sha256=RBpA4jzbyv6IceDsSXiR6P-U6Aj3OvlZ7eCOQr7F7j0,193
|
2
|
+
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
+
gym_examples/envs/wsn_env.py,sha256=xg4nJw0EyK3_Vt4vJpyhEIG44FnpFPSOiSsQM1KxDt8,17613
|
4
|
+
gym_examples-3.0.10.dist-info/METADATA,sha256=xmZDjTODWMEFRTJHb9bQPAzvMw9NP7yYRWFIfFKqQCA,411
|
5
|
+
gym_examples-3.0.10.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
+
gym_examples-3.0.10.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
+
gym_examples-3.0.10.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
gym_examples/__init__.py,sha256=wiKwIoaTEvfLiuLBgPa1ublPK01LyRLgkVXk_3ojGIo,192
|
2
|
-
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
-
gym_examples/envs/wsn_env.py,sha256=fRGbJ1P73yX4HCvY0QHKojTzsMjYhWcLpuWybHW7goc,17561
|
4
|
-
gym_examples-3.0.9.dist-info/METADATA,sha256=Jg27W0WT63_5PWOrWyoJ-9XlCMQNfKU8QUivJGDigSM,410
|
5
|
-
gym_examples-3.0.9.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
-
gym_examples-3.0.9.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
-
gym_examples-3.0.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|