Skip to content

Commit

Permalink
Fix to computing fixed_points()
Browse files Browse the repository at this point in the history
  • Loading branch information
DMRobertson committed Nov 22, 2017
1 parent b461065 commit c604c77
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plmaps/plmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,17 @@ def fixed_points(self, raw=False):
else:
x = fixed_point(d0, d1, r0, r1)
if x is not None:
output.append(x)
#Possible problems here with mod 1 in CPL2?
if raw or not (output and x == output[-1]):
output.append(x)

if not raw:
self._normalise_points_and_intervals(output)
return tuple(output)

def fixed_point_boundary(self):
return tuple( x for x in self.fixed_points() if isinstance(x, Fraction) )

@staticmethod
def _normalise_points_and_intervals(output):
i = 0
Expand Down

0 comments on commit c604c77

Please sign in to comment.