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

Transform.apply_to_list for inhomogeneous lists #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

switzel
Copy link

@switzel switzel commented Aug 10, 2023

The current implementation of Transform.apply_to_list assumes its argument to consist entirely of ideal or non-ideal points. Therefore it cannot be applied to the fundamental domain of SL_2(Z), for instance. This change checks the type of each point in the argument individually.

@cduck
Copy link
Owner

cduck commented Aug 19, 2023

Good catch. I will review and merge as soon as I have some free time.

On a quick glance it looks like you might have mixed some code from the other PR.

rpt = rot.apply_to_point(pt)
d = (rpt.x**2 + rpt.y**2 - rpt.x)/(rpt.x - 1)
return cls.from_closest_point_e_polar(d,theta,cw = cw)
@classmethod
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leave a space between two methods

@@ -39,6 +40,13 @@ def from_closest_point(pt, surround_origin=False, cw=True):
return Horocycle(
shape, closest_point=pt, surround_origin=surround_origin)
@classmethod
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leave a space between two methods

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.

3 participants