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

AttributeError: 'LineSegment' object has no attribute 'unit_vector' #7

Open
CICS-Oleg opened this issue Apr 2, 2019 · 1 comment
Open

Comments

@CICS-Oleg
Copy link

Hello!
I've tried to run your code example with main and faced an error:
AttributeError: 'LineSegment' object has no attribute 'unit_vector' in the line 103 of geometry.py, in sine_of_angle_with
return self.unit_vector.x * other_line_segment.unit_vector.y
What could be wrong?

@overdoz
Copy link
Contributor

overdoz commented Jan 6, 2021

I've been trying to tweak some parameters (amount of trajectories, epsilon, ...) until it worked. But couldn't find the optimal settings yet to process large amounts of data :(
Did you make any progress?

kwk1001 added a commit to kwk1001/traclus_impl that referenced this issue Feb 8, 2022
Corresponding error:
AttributeError: 'LineSegment' object has no attribute 'unit_vector'

An incomplete if module causes the problem. It is possible that the value of the variable 'self.length' is 0.0. In that case the attribute ’unit_vector‘ is not defined.
kwk1001 added a commit to kwk1001/traclus_impl that referenced this issue Feb 8, 2022
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

2 participants