You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running the default InvManagement-v2 from this or-gym fork, and I get the KeyError, do I need to pass a dictionary with user_D for the default? shouldn't the default work without passing any env configuration?
I replaced lines 420 - 425 with the following code to fix the error temporarily in my copy, the code sets the default first, then checks to see if the key user_D exists before accessing it
Demand = self.graph.edges[(j,k)]['demand_dist']
self.D.loc[t,(j,k)] = Demand.rvs(**self.graph.edges[(j,k)]['dist_param'])
if 'user_D' in self.graph.edges[(j,k)]:
Demand = self.graph.edges[(j,k)]['user_D']
if np.sum(Demand) > 0:
self.D.loc[t,(j,k)] = Demand[t]
I am running the default
InvManagement-v2
from this or-gym fork, and I get theKeyError
, do I need to pass a dictionary with user_D for the default? shouldn't the default work without passing any env configuration?The text was updated successfully, but these errors were encountered: