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

bug: self._trans_mean isn't initialized prior to its call #45

Open
devzhxx opened this issue Jun 26, 2024 · 0 comments
Open

bug: self._trans_mean isn't initialized prior to its call #45

devzhxx opened this issue Jun 26, 2024 · 0 comments

Comments

@devzhxx
Copy link

devzhxx commented Jun 26, 2024

I've been using the get_value function from df_cache.py in the main branch and noticed that self._trans_mean isn't initialized prior to its call. Upon investigating further by switching to tag v1.1.0, I discovered that this function was later removed in subsequent updates.

def transform_data(self, **kwargs) -> None:
if "shift_mean_to" in kwargs:
# This standardizes the scene to be relative to the agent being predicted.
self._transf_mean = kwargs["shift_mean_to"]

    if "rotate_by" in kwargs:
        # This rotates the scene so that the predicted agent's current
        # heading aligns with the x-axis.
        agent_heading: float = kwargs["rotate_by"]
        self._transf_rotmat: np.ndarray = np.array(
            [
                [np.cos(agent_heading), -np.sin(agent_heading)],
                [np.sin(agent_heading), np.cos(agent_heading)],
            ]
        )
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

No branches or pull requests

1 participant