gym-examples 2.0.36__py3-none-any.whl → 2.0.37__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__ = "2.0.36"
9
+ __version__ = "2.0.37"
@@ -132,6 +132,15 @@ class WSNRoutingEnv(gym.Env):
132
132
  return self._get_obs(), rewards, dones, {}
133
133
 
134
134
  def _get_obs(self):
135
+ output = [{'remaining_energy': np.array([e]),
136
+ 'sensor_positions': p,
137
+ 'consumption_energy': np.array([c]),
138
+ 'number_of_packets': np.array([d])} for e, p, c, d in zip(self.remaining_energy, self.sensor_positions, self.consumption_energy, self.number_of_packets)]
139
+ print("\n=====================================")
140
+ print("length of observations: ", len(output))
141
+ print("here are the observations: ", output)
142
+ print("=====================================\n")
143
+ raise ValueError("Stop here")
135
144
  return [{'remaining_energy': np.array([e]),
136
145
  'sensor_positions': p,
137
146
  'consumption_energy': np.array([c]),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gym-examples
3
- Version: 2.0.36
3
+ Version: 2.0.37
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=O8HQ2YNVWl5ASepiOCXSsdKtwSul1cIlefZ3vVhY3iw,193
2
+ gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
+ gym_examples/envs/wsn_env.py,sha256=fzUIypT3KCwtf61gV9d5246uoP8ufzl_w1kHTF1nMsE,15316
4
+ gym_examples-2.0.37.dist-info/METADATA,sha256=PcqRM9O8w1-eO6qVcmxBsEuHX7h3S3jMf1-pdXPrToc,411
5
+ gym_examples-2.0.37.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ gym_examples-2.0.37.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
+ gym_examples-2.0.37.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- gym_examples/__init__.py,sha256=Wrib5JtxnXTgB1yIBiy2fzIG-o3ITZUgiCYKD9wE19w,193
2
- gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
- gym_examples/envs/wsn_env.py,sha256=IDKtyh3S9VDWh9bF7YJkdZCeY2kOfbREjEWFnApetOI,14727
4
- gym_examples-2.0.36.dist-info/METADATA,sha256=t6-CqcGCcxTcXsnj6LTBr4F-fqOTLPhgjfgBzd5MTtY,411
5
- gym_examples-2.0.36.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- gym_examples-2.0.36.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
- gym_examples-2.0.36.dist-info/RECORD,,