gym-examples 3.0.132__py3-none-any.whl → 3.0.133__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 CHANGED
@@ -6,4 +6,4 @@ register(
6
6
  max_episode_steps=50,
7
7
  )
8
8
 
9
- __version__ = "3.0.132"
9
+ __version__ = "3.0.133"
@@ -180,14 +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")
187
- remaining_energy = np.array([e for e, _, _, _ in zip(self.remaining_energy, self.sensor_positions, self.number_of_packets)])
188
- consumption_energy = np.array([initial_energy - e for e, _, _, _ in zip(self.remaining_energy, self.sensor_positions, self.number_of_packets)])
183
+ remaining_energy = np.array([e for e, _, _ in zip(self.remaining_energy, self.sensor_positions, self.number_of_packets)])
184
+ consumption_energy = np.array([initial_energy - e for e, _, _ in zip(self.remaining_energy, self.sensor_positions, self.number_of_packets)])
189
185
  sensor_positions = np.stack(self.sensor_positions, axis=0)
190
- number_of_packets = np.array([d for _, _, _, d in zip(self.remaining_energy, self.sensor_positions, self.number_of_packets)])
186
+ number_of_packets = np.array([d for _, _, d in zip(self.remaining_energy, self.sensor_positions, self.number_of_packets)])
191
187
 
192
188
  return {
193
189
  'remaining_energy': remaining_energy,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gym-examples
3
- Version: 3.0.132
3
+ Version: 3.0.133
4
4
  Summary: A custom environment for multi-agent reinforcement learning focused on WSN routing.
5
5
  Home-page: https://github.com/gedji/CODES.git
6
6
  Author: Georges Djimefo
@@ -0,0 +1,7 @@
1
+ gym_examples/__init__.py,sha256=31q77oyVfUPqhF9_jOEky-D3Zs6aIBDa-xeXPR1tMws,194
2
+ gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
+ gym_examples/envs/wsn_env.py,sha256=uiL4qIvGQBErxITIN5shoVinf_XxKpkVf1xQzjOt9wA,22277
4
+ gym_examples-3.0.133.dist-info/METADATA,sha256=4yvoNgX-zLOio9dYCw1eqN2SEU9tBYsXn-gnTqUUFwc,412
5
+ gym_examples-3.0.133.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ gym_examples-3.0.133.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
+ gym_examples-3.0.133.dist-info/RECORD,,
@@ -1,7 +0,0 @@
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,,