mirror of
https://github.com/velocitatem/PHANTOM.git
synced 2026-05-31 08:33:36 +00:00
chore: cleaning the code
This commit is contained in:
@@ -35,7 +35,6 @@ class EconomicMetricsWrapper(gym.Wrapper):
|
||||
prices = self.env.unwrapped._prices
|
||||
demand_dict = self.env.unwrapped._demand
|
||||
demand = np.array([demand_dict.get(i, 0.0) for i in range(len(prices))])
|
||||
alpha = self.env.unwrapped.alpha
|
||||
|
||||
# core calculations
|
||||
revenue = float(np.sum(prices * demand))
|
||||
|
||||
Reference in New Issue
Block a user