gym-examples 3.0.191__py3-none-any.whl → 3.0.193__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.191"
9
+ __version__ = "3.0.193"
@@ -108,7 +108,6 @@ class WSNRoutingEnv(gym.Env):
108
108
  self.distance_to_base = np.linalg.norm(self.sensor_positions - base_station_position, axis=1)
109
109
  self.remaining_energy = np.ones(self.n_sensors) * initial_energy
110
110
  self.number_of_packets = np.ones(self.n_sensors, dtype=int) * initial_number_of_packets # number of packets to transmit
111
- self.episode_count += 1
112
111
 
113
112
  self.packets_delivered = 0
114
113
  self.total_energy_consumed = 0
@@ -124,6 +123,8 @@ class WSNRoutingEnv(gym.Env):
124
123
  self.network_lifetime = None
125
124
  self.average_latency = None
126
125
 
126
+ self.episode_count += 1
127
+
127
128
  return self._get_obs()
128
129
 
129
130
  def step(self, actions):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gym-examples
3
- Version: 3.0.191
3
+ Version: 3.0.193
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=gGwxXCqmkHcPVnSRMjjjsXKx1pgI2By6QxmEpsLcBMM,194
2
+ gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
+ gym_examples/envs/wsn_env.py,sha256=qHRGU7dVaA0QYPjwZ8MevHwa7ALvDSAgP5EsEczO32A,25749
4
+ gym_examples-3.0.193.dist-info/METADATA,sha256=hMs-sicYXwNz3uPqubal3pe_wO-QhlAKjpMIF3mvejs,412
5
+ gym_examples-3.0.193.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
+ gym_examples-3.0.193.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
+ gym_examples-3.0.193.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- gym_examples/__init__.py,sha256=5p5-8XnOSIHF4u8UVV1Dck-ijxLqfe6YATs6EauYmlk,194
2
- gym_examples/envs/__init__.py,sha256=lgMe4pyOuUTgTBUddM0iwMlETsYTwFShny6ifm8PGM8,53
3
- gym_examples/envs/wsn_env.py,sha256=tuJVbaSxXsO94sHXMucBOzEnwMqh7um5Vs5L6MktQPc,25747
4
- gym_examples-3.0.191.dist-info/METADATA,sha256=KQ0ncPYcGsriRN1vxG2KOXOVjxe5SdqDUje8qkBL2QI,412
5
- gym_examples-3.0.191.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
6
- gym_examples-3.0.191.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
7
- gym_examples-3.0.191.dist-info/RECORD,,