gym-examples 3.0.130__py3-none-any.whl → 3.0.132__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 +4 -0
- {gym_examples-3.0.130.dist-info → gym_examples-3.0.132.dist-info}/METADATA +1 -1
- gym_examples-3.0.132.dist-info/RECORD +7 -0
- gym_examples-3.0.130.dist-info/RECORD +0 -7
- {gym_examples-3.0.130.dist-info → gym_examples-3.0.132.dist-info}/WHEEL +0 -0
- {gym_examples-3.0.130.dist-info → gym_examples-3.0.132.dist-info}/top_level.txt +0 -0
gym_examples/__init__.py
CHANGED
gym_examples/envs/wsn_env.py
CHANGED
@@ -180,6 +180,10 @@ class WSNRoutingEnv(gym.Env):
|
|
180
180
|
# } for e, p, d in zip(self.remaining_energy, self.sensor_positions, self.number_of_packets)]
|
181
181
|
|
182
182
|
def _get_obs(self):
|
183
|
+
validate_vec = [elt for elt in zip(self.remaining_energy, self.sensor_positions, self.number_of_packets)]
|
184
|
+
print("\n==============================")
|
185
|
+
print(f"validate_vec: {validate_vec}")
|
186
|
+
print("==============================\n")
|
183
187
|
remaining_energy = np.array([e for e, _, _, _ in zip(self.remaining_energy, self.sensor_positions, self.number_of_packets)])
|
184
188
|
consumption_energy = np.array([initial_energy - e for e, _, _, _ in zip(self.remaining_energy, self.sensor_positions, self.number_of_packets)])
|
185
189
|
sensor_positions = np.stack(self.sensor_positions, axis=0)
|
@@ -0,0 +1,7 @@
|
|
1
|
+
gym_examples/__init__.py,sha256=dU8-YolQl-paevg9jiwQvDHFef9CiXOcJwH8ta5MNc8,194
|
2
|
+
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
+
gym_examples/envs/wsn_env.py,sha256=5W5u9zooiRStpvilzRYpm1OhLsN2kB9f7n7tNRaKog0,22551
|
4
|
+
gym_examples-3.0.132.dist-info/METADATA,sha256=xwTGNgMRovwGjacZqazoL43Sq9H2o8YIIKTKjvDqlRU,412
|
5
|
+
gym_examples-3.0.132.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
+
gym_examples-3.0.132.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
+
gym_examples-3.0.132.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
gym_examples/__init__.py,sha256=ephqHG1V21jR1hU69gk7ByNV2lo-xcz__sSSxL0TRiQ,194
|
2
|
-
gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
|
3
|
-
gym_examples/envs/wsn_env.py,sha256=jPME2gvkDL7BfMqYgjpAXna-mTAv3_81HlPs-U5FnTM,22286
|
4
|
-
gym_examples-3.0.130.dist-info/METADATA,sha256=28_KBJf-MOIyD0HgbmzMvu1UlAcH5s-o0az8Qd1pN1Y,412
|
5
|
-
gym_examples-3.0.130.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
-
gym_examples-3.0.130.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
-
gym_examples-3.0.130.dist-info/RECORD,,
|
File without changes
|
File without changes
|