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

Update residue fields to use dynamic classes #12064

Open
roed314 opened this issue Nov 20, 2011 · 20 comments
Open

Update residue fields to use dynamic classes #12064

roed314 opened this issue Nov 20, 2011 · 20 comments

Comments

@roed314
Copy link
Contributor

roed314 commented Nov 20, 2011

Changes sage.rings.residue_fields to use sage.structure.dynamic_class to make it easier to implement p-adic residue fields.

Depends on #12062

Component: number fields

Keywords: residue fields, dynamic classes

Author: David Roe

Branch/Commit: u/saraedum/old_12064 @ 3545bf4

Reviewer: Simon Spicer

Issue created by migration from https://trac.sagemath.org/ticket/12064

@haikona
Copy link
Mannequin

haikona mannequin commented Feb 22, 2012

comment:2

Is there another dependency? Patch fails to apply cleanly on a fresh copy of 4.8 on top of 12062:

mlungu@sage:~/sage-4.8/devel/sage$ hg qpush
applying 12062.patch
now at: 12062.patch
mlungu@sage:~/sage-4.8/devel/sage$ hg qpush
applying 12064.patch
patching file sage/rings/residue_field.pyx
Hunk #9 succeeded at 553 with fuzz 2 (offset -28 lines).
Hunk #12 FAILED at 743
1 out of 14 hunks FAILED -- saving rejects to file sage/rings/residue_field.pyx.rej
patch failed, unable to continue (try -v)
patch failed, rejects left in working dir
errors during apply, please fix and refresh 12064.patch

@haikona haikona mannequin added s: needs work and removed s: needs review labels Feb 22, 2012
@haikona
Copy link
Mannequin

haikona mannequin commented Feb 22, 2012

Reviewer: spice

@roed314
Copy link
Contributor Author

roed314 commented Feb 22, 2012

comment:4

Updated against 5.0.beta1

@haikona
Copy link
Mannequin

haikona mannequin commented Feb 23, 2012

comment:5

Looks like there's new trouble when trying to apply 12064 on top of 12062. 12062 has already been applied and Sage built in the output below:

sage@sagebox:~/sage/devel/sage$ hg qpush
applying 12064.patch
patching file sage/rings/finite_rings/finite_field_base.pyx
Hunk #1 succeeded at 90 with fuzz 2 (offset -2 lines).
patching file sage/rings/residue_field.pyx
Hunk #3 succeeded at 139 with fuzz 2 (offset 0 lines).
Hunk #8 succeeded at 435 with fuzz 2 (offset 0 lines).
now at: 12064.patch
sage@sagebox:~/sage/devel/sage$ sage -b

----------------------------------------------------------
sage: Building and installing modified Sage library files.


Installing c_lib
scons: `install' is up to date.
Updating Cython code....
Building modified file sage/rings/residue_field.pyx.
Building modified file sage/rings/finite_rings/finite_field_base.pyx.
Executing 2 commands (using 1 thread)
python `which cython`  --old-style-globals --disable-function-redefinition --embed-positions --directive cdivision=True,autotestdict=False,fast_getattr=True -I/Users/sage/sage-4.8/devel/sage-dev1 -o sage/rings/residue_field.c sage/rings/residue_field.pyx

Error compiling Cython file:
------------------------------------------------------------
...
            K = pring.fraction_field()
            intp = pring.base_ring().order()
            f = p.gen()
            deg = f.degree()
            q = intp**deg
            if k == 1 and intp.is_prime() and (impl is None or impl == 'modn'):
                ^
------------------------------------------------------------

sage/rings/residue_field.pyx:313:17: local variable 'k' referenced before assignment
python `which cython`  --old-style-globals --disable-function-redefinition --embed-positions --directive cdivision=True,autotestdict=False,fast_getattr=True -I/Users/sage/sage-4.8/devel/sage-dev1 -o sage/rings/finite_rings/finite_field_base.c sage/rings/finite_rings/finite_field_base.pyx
Error running command, failed with status 256.
sage: There was an error installing modified sage library code.

@haikona haikona mannequin added s: needs work and removed s: needs review labels Feb 23, 2012
@kcrisman
Copy link
Member

Changed reviewer from spice to Simon Spicer

@roed314
Copy link
Contributor Author

roed314 commented Mar 18, 2013

comment:7

Fixed. Sorry for the long delay.

@roed314
Copy link
Contributor Author

roed314 commented Mar 18, 2013

Attachment: 12064.patch.gz

@jdemeyer
Copy link

comment:8

Attachment: trac_12064_review.patch.gz

@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@saraedum
Copy link
Member

Branch: u/saraedum/old_12064

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 13, 2016

Commit: 6ec180c

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 13, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

6ec180cMerge branch 'develop' into t/12064/old_12064

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 13, 2016

Changed commit from 6ec180c to 7bb1bf3

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 13, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

7bb1bf3Fix build errors

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 13, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

5520362Normalize interface for finite field construction

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 13, 2016

Changed commit from 7bb1bf3 to 5520362

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 13, 2016

Changed commit from 5520362 to ba525c7

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 13, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

ba525c7Removed flaky type() tests

@saraedum
Copy link
Member

comment:18

The residue_field.pyx file is now down to three doctests.


New commits:

ba525c7Removed flaky type() tests

New commits:

ba525c7Removed flaky type() tests

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 31, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

3545bf4Merge remote-tracking branch 'trac/develop' into HEAD

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 31, 2022

Changed commit from ba525c7 to 3545bf4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants