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
Description
LRU cache is global, and not local to a RailEnv. Cache is reset in multiple places by calling send_infrastructure_data_change_signal_to_reset_lru_cache(). However, some cached function calls use @lru_cache directly - these cached calls are not reset by send_infrastructure_data_change_signal_to_reset_lru_cache(), although some of these functions cache env-specific data.
Two steps:
send_infrastructure_data_change_signal_to_reset_lru_cache() must reset all LRU caches (or at least all LRU caches with env-specific data).
major refactoring to make LRU caching local to a RailEnv and (if possible) reduce the number of locations where cache reset is called.
Description
LRU cache is global, and not local to a
RailEnv
. Cache is reset in multiple places by callingsend_infrastructure_data_change_signal_to_reset_lru_cache()
. However, some cached function calls use@lru_cache
directly - these cached calls are not reset bysend_infrastructure_data_change_signal_to_reset_lru_cache()
, although some of these functions cache env-specific data.Two steps:
send_infrastructure_data_change_signal_to_reset_lru_cache()
must reset all LRU caches (or at least all LRU caches with env-specific data).RailEnv
and (if possible) reduce the number of locations where cache reset is called.Relates to #92 .
To Reproduce
List the steps needed to reproduce the behavior:
Expected behavior
Describe what you expected to happen in a clear and concise manner.
Information
Describe the machine and software you are using:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: