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

fixed #51 KeyError attention_radius[(VEHICLE, VEHICLE)] in encode_edge #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

j-scharrenbach
Copy link

@j-scharrenbach j-scharrenbach commented Nov 9, 2021

Fixes #51: Instead of returning a newly created NodeType object, the one already existent within the Environment object is returned.

def _get_edge_type_from_str(self, edge_type_str):
    n1_type_str, n2_type_str = edge_type_str.split('->')
    return (self.env.NodeType[self.env.NodeType.node_type_list.index(n1_type_str)],
            self.env.NodeType[self.env.NodeType.node_type_list.index(n2_type_str)])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KeyError: self.env.attention_radius[(VEHICLE, VEHICLE)] in OnlineMultimodalGenerativeCVAE.encode_edge
1 participant