gym-examples 3.0.192__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 +1 -1
- gym_examples/envs/wsn_env.py +2 -1
- {gym_examples-3.0.192.dist-info → gym_examples-3.0.193.dist-info}/METADATA +1 -1
- gym_examples-3.0.193.dist-info/RECORD +7 -0
- gym_examples-3.0.192.dist-info/RECORD +0 -7
- {gym_examples-3.0.192.dist-info → gym_examples-3.0.193.dist-info}/WHEEL +0 -0
- {gym_examples-3.0.192.dist-info → gym_examples-3.0.193.dist-info}/top_level.txt +0 -0
gym_examples/__init__.py
CHANGED
gym_examples/envs/wsn_env.py
CHANGED
@@ -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):
|
@@ -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=H1ejflE9qwO6C6e9quZYF6hEZoczgoMgD0MBt1xh1h0,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.192.dist-info/METADATA,sha256=ylkOfHSBdXUeE-KwelsFa6ftzESD23ZfVsS7cNbiRzA,412
|
5
|
-
gym_examples-3.0.192.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
6
|
-
gym_examples-3.0.192.dist-info/top_level.txt,sha256=rJRksoAF32M6lTLBEwYzRdo4PgtejceaNnnZ3HeY_Rk,13
|
7
|
-
gym_examples-3.0.192.dist-info/RECORD,,
|
File without changes
|
File without changes
|