View requirements with complex input observation

Hi all, how to use view_requirements when we have a complex input obs (like action masking)? =>
obs = {
“action_mask”: action_masking,
“state”: current_obs,
What I would like is something like that, but does not work: self.view_requirements[“prev_n_obs”] = ViewRequirement(data_col=[“obs”][“state”], shift="-{}:0".format(num_frames - 1), space= true_obs_shape)

Hi @Adri31,

You do not need to set view requirements to include an action_mask in the observation. You just need to use a Dict observation space.