Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Will Conversion Wrappers Lose Member Variables and Methods Defined in Inner-layer Wrappers? #1222

Open
xihuai18 opened this issue Jul 8, 2024 · 0 comments
Labels
question Further information is requested

Comments

@xihuai18
Copy link
Contributor

xihuai18 commented Jul 8, 2024

Question

class aec_to_parallel_wrapper(ParallelEnv[AgentID, ObsType, ActionType]):

class parallel_to_aec_wrapper(AECEnv[AgentID, ObsType, Optional[ActionType]]):

Since __getattr__ is not overwritten as in BaseParallelEnvWrapper, the features defined in the Inner-layer wrappers are lost. For example, if I define a member name A1 in an AECEnv wrapper WA, and transfer the env into ParallelEnv using aec_to_parallel_wrapper, that is, par_env = aec_to_parallel_wrapper(WA(aec_env)), can I still access A1?

@xihuai18 xihuai18 added the question Further information is requested label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant