Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
A few more changes related to variable types
Browse files Browse the repository at this point in the history
  • Loading branch information
roed314 committed Jan 8, 2014
1 parent 6432e20 commit 1d3f6c6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/sage/rings/polynomial/padics/factor/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
- Brian Sinclair (2012-02-22): initial version
"""
from sage.rings.integer import Integer
from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing
from sage.rings.polynomial.padics.factor.frameelt import FrameElt, FrameEltTerm
from sage.rings.polynomial.padics.factor.segment import Segment
from sage.rings.infinity import infinity
from sage.misc.functional import denominator
from sage.structure.sage_object import SageObject
from sage.rings.integer import Integer

class Frame(SageObject):
"""
Expand Down Expand Up @@ -223,7 +222,7 @@ def find_psi(self,val):
ValueError: Denominator of given valuation does not divide E
"""

if self.E % val.denominator() != 0:
if self.E % val.denom() != 0:
raise ValueError("Denominator of given valuation does not divide E")
psielt = FrameElt(self)
if self.prev is None:
Expand All @@ -233,12 +232,12 @@ def find_psi(self,val):
d = self.prev_frame().E
vprime = val * d
e = vphi * d
psimod = e.denominator()
psimod = e.denom()
if psimod == 1:
s = 0
else:
s = vprime / e
if denominator(s) == 1:
if s.denom(s) == 1:
s = s % psimod
else:
# Problem here?
Expand Down

0 comments on commit 1d3f6c6

Please sign in to comment.