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

Classical modular forms #2717

Merged
merged 2,251 commits into from
Mar 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2251 commits
Select commit Hold shift + click to select a range
94dc01a
tests
edgarcosta Feb 19, 2019
bf32509
tests
edgarcosta Feb 19, 2019
a0299e7
tests
edgarcosta Feb 19, 2019
464d541
pyflakes
edgarcosta Feb 19, 2019
ee7b6fe
test
edgarcosta Feb 19, 2019
6d7c91a
Redo constraints, projections, merge two run functions
roed314 Feb 19, 2019
84732d7
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 19, 2019
6bbd054
Array equality improvement in db_backend
roed314 Feb 19, 2019
4619c55
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 19, 2019
446c3ed
pyflakes
edgarcosta Feb 19, 2019
277a701
using nf_fields_new
edgarcosta Feb 19, 2019
e03ede4
fix suffix
edgarcosta Feb 19, 2019
dc29d5c
Fixing verify bugs
roed314 Feb 19, 2019
b1e61d0
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 19, 2019
97e195b
typo in hecke_orbit_code
edgarcosta Feb 19, 2019
f196258
typo in check_string_startswith
edgarcosta Feb 19, 2019
d645917
compare_traces
edgarcosta Feb 19, 2019
a1fde48
fix for trace_hash
edgarcosta Feb 19, 2019
ada00fa
Working on verification
roed314 Feb 19, 2019
5746962
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 19, 2019
7fcc9e3
Add error message when cloning for a table that exists
roed314 Feb 19, 2019
2f9be9b
Fix syntax error
roed314 Feb 19, 2019
d0c3918
Fixing bug in _swap
roed314 Feb 19, 2019
3c9629d
typo
edgarcosta Feb 19, 2019
17d65ed
better names
edgarcosta Feb 19, 2019
fa85278
fix hoc
edgarcosta Feb 19, 2019
548b163
missing not, and check_angles_interval
edgarcosta Feb 19, 2019
8291e4f
Fixing bugs in verify
roed314 Feb 19, 2019
46ebe04
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 19, 2019
01b35eb
todo, move lfunction text to knowl
roed314 Feb 19, 2019
0620e7d
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 19, 2019
0b8721a
Update cmf_TODO.txt
AndrewVSutherland Feb 19, 2019
75967d0
Working on verification
roed314 Feb 20, 2019
7bffaac
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 20, 2019
4518d5e
Fix dimension_eis bug
roed314 Feb 20, 2019
fc5b729
compare traces
edgarcosta Feb 20, 2019
aba9575
Merge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Feb 20, 2019
4a684db
using argparse
edgarcosta Feb 20, 2019
4253e9e
using argparse
edgarcosta Feb 20, 2019
26c6694
weight 1, outstanding
edgarcosta Feb 20, 2019
7c9da67
Editing todo
roed314 Feb 20, 2019
98c53a9
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 20, 2019
879941f
Moving lots of files out of the top level directory
roed314 Feb 20, 2019
7dca83b
typo
edgarcosta Feb 20, 2019
9e9c470
disabling inventory logs
edgarcosta Feb 20, 2019
432ac1b
red color
edgarcosta Feb 20, 2019
b032975
Changing import statements for move to lmfdb/backend
roed314 Feb 20, 2019
114279c
remove prints
edgarcosta Feb 20, 2019
acc8e8e
cast fix
edgarcosta Feb 20, 2019
ba2c010
typo
edgarcosta Feb 20, 2019
79c3e30
Update cmf_TODO.txt
AndrewVSutherland Feb 20, 2019
41045dc
Revising imports
roed314 Feb 21, 2019
37bc519
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 21, 2019
886fcbc
Add missing __init__.py files
roed314 Feb 21, 2019
9c8e669
Fix import statement in WebNumberField
roed314 Feb 21, 2019
112b050
Fixing some bugs from refactoring, working on embedded modular form t…
roed314 Feb 21, 2019
208e2cb
Fixing some verification bugs
roed314 Feb 21, 2019
6558622
Updating todo
roed314 Feb 21, 2019
100d500
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 21, 2019
f676815
Update cmf_TODO.txt
AndrewVSutherland Feb 21, 2019
dc46c1d
update todo and others
edgarcosta Feb 21, 2019
bf7e2bb
Working on todo
roed314 Feb 21, 2019
ba6330c
Merge branch 'CMF' of github.com:edgarcosta/lmfdb
roed314 Feb 21, 2019
650480a
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 21, 2019
7c8b9d6
Fix bug in check_self_twist_disc
roed314 Feb 21, 2019
7b47246
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 21, 2019
1674efe
check_box_traces
edgarcosta Feb 21, 2019
7fdebd9
Todo
roed314 Feb 22, 2019
1882c91
Working on verification
roed314 Feb 22, 2019
1b543f0
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 22, 2019
42e88dc
Update cmf_TODO.txt
AndrewVSutherland Feb 22, 2019
e6dfbaa
Update cmf_TODO.txt
AndrewVSutherland Feb 22, 2019
e101600
Starting embedded modular form page
roed314 Feb 22, 2019
719277c
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 22, 2019
9f7fa49
Update cmf_TODO.txt
AndrewVSutherland Feb 22, 2019
6e81cca
ap2 and amn slow
edgarcosta Feb 22, 2019
ecfccc4
Merge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Feb 22, 2019
d579eee
moving names_and_urls and avoiding circular imports
edgarcosta Feb 22, 2019
89fa489
adding file
edgarcosta Feb 22, 2019
d92d64d
Update cmf_TODO.txt
AndrewVSutherland Feb 22, 2019
34521c2
Update cmf_TODO.txt
AndrewVSutherland Feb 22, 2019
f1f2553
Update cmf_TODO.txt
AndrewVSutherland Feb 22, 2019
f25763a
Update cmf_TODO.txt
AndrewVSutherland Feb 22, 2019
284f890
cwd
edgarcosta Feb 23, 2019
a737eed
typo
edgarcosta Feb 23, 2019
542c1ed
max*
edgarcosta Feb 23, 2019
c7511d4
typo
edgarcosta Feb 23, 2019
ea6eacc
mismatch counts
edgarcosta Feb 23, 2019
60ba3d9
Merge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Feb 23, 2019
3ab02e7
midprogress push
edgarcosta Feb 23, 2019
09ccd6d
Add todo item
roed314 Feb 23, 2019
84ca363
Merge branch 'CMF' of github.com:edgarcosta/lmfdb
roed314 Feb 23, 2019
afaeaa6
Refactoring logging, app and website code
roed314 Feb 23, 2019
118c45d
Change imports for lmfdb.base -> lmfdb.app/lmfdb.tests
roed314 Feb 23, 2019
3321401
some progress for embedded
edgarcosta Feb 23, 2019
8d04963
Change location of make_logger
roed314 Feb 23, 2019
dddfebf
pyflakes
edgarcosta Feb 23, 2019
ad57bf9
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 23, 2019
d04516c
sort
edgarcosta Feb 23, 2019
74d0a56
Moving index_boxes.yaml
roed314 Feb 23, 2019
54e42e6
Merge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Feb 23, 2019
91e4854
upsidaisy
edgarcosta Feb 23, 2019
5b6ccb8
Fix lmfdb.pages import
roed314 Feb 23, 2019
beee39f
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 23, 2019
9d44a3f
upsidaisy
edgarcosta Feb 23, 2019
30f6795
Merge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Feb 23, 2019
20e5253
fix typo, add test
edgarcosta Feb 24, 2019
27d64fb
Porting verification to lmfdb/verify/
roed314 Feb 24, 2019
6ef14ce
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 24, 2019
d2dc4c5
check slow parallel
edgarcosta Feb 25, 2019
24ad492
pyflakes
edgarcosta Feb 25, 2019
077143a
report
edgarcosta Feb 25, 2019
77c59c7
report
edgarcosta Feb 25, 2019
a4375a7
pyflakes
edgarcosta Feb 25, 2019
afe8a56
minid
edgarcosta Feb 25, 2019
edb9525
minid
edgarcosta Feb 25, 2019
70bfbc7
report
edgarcosta Feb 25, 2019
0c63f3c
report
edgarcosta Feb 25, 2019
5db5848
report
edgarcosta Feb 25, 2019
a6a6307
report
edgarcosta Feb 25, 2019
44387e1
reducing size
edgarcosta Feb 25, 2019
ba27869
Porting verification to backend.database
roed314 Feb 25, 2019
2efdf31
Move db so that it raises an error if db imported from lmfdb.verify
roed314 Feb 25, 2019
0ff0025
Add app back into website
roed314 Feb 25, 2019
4b2978d
Working on verification
roed314 Feb 25, 2019
0da25ef
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 25, 2019
70f10bc
fetch 1000
edgarcosta Feb 25, 2019
e54ba0a
Add knowl_TODO
roed314 Feb 25, 2019
9f6e2c3
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 25, 2019
a65659a
Working on verification
roed314 Feb 25, 2019
88b8cea
Fixing bug in verification
roed314 Feb 25, 2019
dc10a00
Working on verify
roed314 Feb 25, 2019
4ada43a
Working on verify
roed314 Feb 25, 2019
2dbe0d4
Working on verification
roed314 Feb 25, 2019
8a0aea7
Merge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Feb 25, 2019
88ac355
Adding some error checking to embedding label processing, working on …
roed314 Feb 25, 2019
5721b80
Working on documentation, add ability to override ratio when running …
roed314 Feb 25, 2019
a9b6e97
working on embedding
edgarcosta Feb 25, 2019
a737b10
Working on todo
roed314 Feb 25, 2019
db956ed
Merge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Feb 25, 2019
887b058
Working on bread and friends
roed314 Feb 25, 2019
6644437
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 25, 2019
48c05bc
Working on embedded modular forms
roed314 Feb 25, 2019
64c9c91
templage for embedded
edgarcosta Feb 25, 2019
fb96558
Merge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Feb 25, 2019
84e1861
script for changing coloring
edgarcosta Feb 25, 2019
972507c
Working on shading for embedded newforms
roed314 Feb 25, 2019
09d2787
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 25, 2019
52bc1c3
fixes
edgarcosta Feb 25, 2019
e10e4c1
Merge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Feb 25, 2019
b41178e
double header
edgarcosta Feb 25, 2019
2d6bb39
fix
edgarcosta Feb 25, 2019
190e275
Better printing for verification, add bad primes for embedded newform…
roed314 Feb 25, 2019
bee5833
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 25, 2019
c6eb6c1
Working on downloads
roed314 Feb 25, 2019
086259e
Working on embedded newforms
roed314 Feb 25, 2019
d1a71c7
Make alternating row colors in embedded newforms work
roed314 Feb 26, 2019
f74f85c
Working on embedded modular forms
roed314 Feb 26, 2019
8e21003
Working on embedded modular forms
roed314 Feb 26, 2019
0818674
fix qexp cc
edgarcosta Feb 26, 2019
e005525
tryhalfinteger for display_complex
edgarcosta Feb 26, 2019
fce36af
tryhalfinteger for display_complex
edgarcosta Feb 26, 2019
f9a1312
tryhalfinteger for display_complex
edgarcosta Feb 26, 2019
5308471
qexp cc
edgarcosta Feb 26, 2019
713d3ff
qexp cc
edgarcosta Feb 26, 2019
56c5e1e
display option embedded newform
edgarcosta Feb 26, 2019
c003a27
language
edgarcosta Feb 26, 2019
5de4693
language
edgarcosta Feb 26, 2019
61190be
webserver password
edgarcosta Feb 26, 2019
76dc6f0
webserver password
edgarcosta Feb 26, 2019
cf80967
Working on dual forms
roed314 Feb 26, 2019
e6996bb
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 26, 2019
245f558
format
edgarcosta Feb 26, 2019
d77606b
Merge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Feb 26, 2019
fe8b9a0
cc stuff
edgarcosta Feb 26, 2019
072839c
fixing error messages
edgarcosta Feb 26, 2019
293e589
switch label, more text
edgarcosta Feb 26, 2019
0a88dea
progress and typos
edgarcosta Feb 26, 2019
190d899
harmless changes
edgarcosta Feb 26, 2019
5260eae
typo
edgarcosta Feb 26, 2019
b4f42a5
update TODO and other small things
edgarcosta Feb 26, 2019
a3bbde5
Merge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Feb 26, 2019
51c5b71
truncating cqexp to 1000
edgarcosta Feb 26, 2019
310d09e
typo
edgarcosta Feb 26, 2019
e28639a
fixing an error, better message
edgarcosta Feb 26, 2019
2c3ef77
update todo
edgarcosta Feb 27, 2019
3709b13
fixing CM/RM stats
edgarcosta Feb 27, 2019
cec10da
sorting inner twists
edgarcosta Feb 27, 2019
ddc0756
new favorite, and consistenty when display floats
edgarcosta Feb 27, 2019
c04db33
typo
edgarcosta Feb 27, 2019
57babc2
typo
edgarcosta Feb 27, 2019
f71dd5d
typo
edgarcosta Feb 27, 2019
261e11b
typo
edgarcosta Feb 27, 2019
e3910bd
jump
edgarcosta Feb 27, 2019
e459798
one column
edgarcosta Feb 27, 2019
d98c7f3
Removing join tables from this branch
roed314 Feb 27, 2019
3d77807
Deleting old verify_data scripts
roed314 Feb 27, 2019
bad4ecd
Merge branch 'master' of github.com:LMFDB/lmfdb
roed314 Feb 27, 2019
cc0e655
Working on verification
roed314 Feb 27, 2019
3e9e4b6
Fix move to old
roed314 Feb 27, 2019
5354ed4
Fix bug in move_to_old
roed314 Feb 27, 2019
86134fb
1 or 3 columns
edgarcosta Feb 27, 2019
5dc79e8
Merge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Feb 27, 2019
2e502c3
Working on verification
roed314 Feb 27, 2019
5c9ccb1
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 27, 2019
7e5e4df
Update cmf_TODO.txt
AndrewVSutherland Feb 27, 2019
d9b83ad
Working on verification
roed314 Feb 27, 2019
b54f30f
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 27, 2019
c38e5f5
todo, update Postgres_FAQ
roed314 Feb 27, 2019
c48d8b6
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 27, 2019
270965c
test fix
edgarcosta Feb 27, 2019
b59cdc8
typo
edgarcosta Feb 27, 2019
8706c16
tests
edgarcosta Feb 27, 2019
4b479f9
tests
edgarcosta Feb 27, 2019
9cb2087
tests
edgarcosta Feb 28, 2019
fc204d8
tests
edgarcosta Feb 28, 2019
051c826
erge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Feb 28, 2019
8531716
tests
edgarcosta Feb 28, 2019
7e06d83
tests
edgarcosta Feb 28, 2019
75fac2b
more tests, fix message
edgarcosta Feb 28, 2019
99427bf
removing artin image size
edgarcosta Feb 28, 2019
7b3ad59
more tests
edgarcosta Feb 28, 2019
0a2fac0
Merge branch 'master' of https://github.com/roed314/lmfdb into roe_ma…
davidlowryduda Feb 28, 2019
fb25761
Fix bug in dimension table
roed314 Feb 28, 2019
c0fe93d
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Feb 28, 2019
0af7172
Add a search for spaces link on modform browse page
davidlowryduda Feb 28, 2019
967f860
more tests
edgarcosta Feb 28, 2019
28d7ab5
Merge branch 'master' of https://github.com/roed314/lmfdb into roe_ma…
davidlowryduda Feb 28, 2019
3032b15
Merge pull request #249 from davidlowryduda/roe_master
davidlowryduda Feb 28, 2019
9da7861
rename knowl
edgarcosta Feb 28, 2019
c1e0ae8
Merge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Feb 28, 2019
5469b2b
one more item
edgarcosta Feb 28, 2019
b0d3986
Update cmf_TODO.txt
AndrewVSutherland Feb 28, 2019
a8ce158
updating comment
edgarcosta Mar 1, 2019
b6c03ce
Merge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Mar 1, 2019
0d41e66
Add some documentation to Postgres_FAQ, improve a test in mf_newforms.py
roed314 Mar 1, 2019
85f08d6
Merge branch 'master' of github.com:roed314/lmfdb
roed314 Mar 1, 2019
009e3af
Minor fixes
roed314 Mar 1, 2019
1d2d8ca
A few more minor fixes
roed314 Mar 1, 2019
863fc09
random form as a favorite
edgarcosta Mar 3, 2019
d88d217
moving create search to tables sentence
edgarcosta Mar 3, 2019
84c2731
increasing the threshold for bigints in poly, increasing the default …
edgarcosta Mar 3, 2019
365c52f
timeout exception for magma free calculater
edgarcosta Mar 3, 2019
00722be
handling random in favorites
edgarcosta Mar 3, 2019
7ad223b
pyflakes
edgarcosta Mar 4, 2019
3cd24ea
Merge branch 'master' of github.com:roed314/lmfdb into CMF
edgarcosta Mar 4, 2019
fcafe66
no comment if no function, use to_lang isntead of display
edgarcosta Mar 4, 2019
c33af83
level, weight are ints
edgarcosta Mar 4, 2019
a350797
fixing test
edgarcosta Mar 4, 2019
b711048
pyflakes
edgarcosta Mar 4, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ config.ini


flasklog
slow_queries.log

# Testing files
htmlcov
Expand All @@ -29,3 +30,5 @@ local.sh
.idea/
LMFDBinventory.log
LMFDBtransactions_inv.log


15 changes: 6 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ addons:
- libssl-dev
# needed for pyflakes
- python-pip
# to have mongo shell
- mongodb-org-shell
# to run nosetests in parallel
- parallel

Expand All @@ -48,7 +46,9 @@ install:
- export MAKE='make -j4'
- wget --no-verbose https://storage.googleapis.com/sage-lmfdb/sage-${SAGE_VERSION}-Ubuntu_14.04-x86_64.tar.bz2
# travis_wait extends the default 10 minute timeout to 30 minutes
- travis_wait 30 time tar xf sage-${SAGE_VERSION}-Ubuntu_14.04-x86_64.tar.bz2 -C ${HOME}
# what is the load on the server
- uptime
- travis_wait 40 time tar xf sage-${SAGE_VERSION}-Ubuntu_14.04-x86_64.tar.bz2 -C ${HOME}

# trigger the patch once script
- ${SAGE} --version > patch_once_log
Expand All @@ -58,19 +58,16 @@ install:
- ${SAGE} -pip install -r requirements.txt

before_script:
# assert that m0.lmfdb.xyz accepts our connections
- nc -vz m0.lmfdb.xyz 27017
# create a list of files and folder where we will run the tests
- ls lmfdb/*.py > list
- ls -d lmfdb/*/ >> list
# assert that devmirror.lmfdb.xyz accepts our connections
- nc -vz devmirror.lmfdb.xyz 5432
# how much free ram do we have
- free -m
# what is the load on the server
- uptime

script:
# run pyflakes
- pyflakes lmfdb/ > pyflakeslog
- pyflakes . > pyflakeslog
- if [[ $(wc -l < pyflakeslog) != 0 ]]; then echo "ERROR pyflakes failed!"; cat pyflakeslog; else echo "PASS pyflakes is happy!"; fi
# Check that pytest is installed
- ${SAGE} -sh -c "pytest --version"
Expand Down
696 changes: 462 additions & 234 deletions Postgres_FAQ.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ Screenshot
![LMFDB Screenshot](https://raw.github.com/wiki/LMFDB/lmfdb/lmfdb-screenshot-20120410.png)

[logo]: https://github.com/LMFDB/lmfdb/raw/master/lmfdb/static/images/lmfdb-logo.png "LMFDB"

6 changes: 4 additions & 2 deletions lmfdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

__version__ = '0.1'

from website import main
assert main
#from .website import main
#assert main
from .backend.database import db
assert db
4 changes: 2 additions & 2 deletions lmfdb/abvar/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from lmfdb.base import app
from lmfdb.utils import make_logger
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

abvar_page = Blueprint("abvar", __name__, template_folder='templates', static_folder="static")
Expand Down
4 changes: 2 additions & 2 deletions lmfdb/abvar/fq/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from lmfdb.base import app
from lmfdb.utils import make_logger
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

abvarfq_page = Blueprint("abvarfq", __name__, template_folder='templates', static_folder="static")
Expand Down
13 changes: 7 additions & 6 deletions lmfdb/abvar/fq/isog_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
from flask import url_for
from collections import Counter

from lmfdb.utils import make_logger, encode_plot
from lmfdb.utils import encode_plot
from lmfdb.logger import make_logger

from lmfdb.db_backend import db
from lmfdb.base import app
from lmfdb import db
from lmfdb.app import app

from sage.rings.all import Integer, QQ, RR
from sage.plot.all import line, points, circle, Graphics

from lmfdb.genus2_curves.web_g2c import list_to_factored_poly_otherorder
from lmfdb.WebNumberField import nf_display_knowl, field_pretty
from lmfdb.transitive_group import group_display_knowl
from lmfdb.utils import list_to_factored_poly_otherorder
from lmfdb.number_fields.web_number_field import nf_display_knowl, field_pretty
from lmfdb.galois_groups.transitive_group import group_display_knowl
from lmfdb.abvar.fq.web_abvar import av_display_knowl, av_data#, av_knowl_guts

logger = make_logger("abvarfq")
Expand Down
63 changes: 20 additions & 43 deletions lmfdb/abvar/fq/main.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
# -*- coding: utf-8 -*-
import re
import time
import ast
import StringIO
from lmfdb.db_backend import db
from lmfdb.base import app
from lmfdb.utils import to_dict, make_logger
from lmfdb.abvar.fq import abvarfq_page
from lmfdb.search_parsing import parse_ints, parse_string_start, parse_nf_string, parse_galgrp, parse_subset, parse_submultiset
from lmfdb.search_wrapper import search_wrap
from search_parsing import parse_newton_polygon
from isog_class import validate_label, AbvarFq_isoclass
from stats import AbvarFqStats

import ast, re, StringIO, time

from flask import flash, render_template, url_for, request, redirect, send_file
from markupsafe import Markup
from sage.rings.all import PolynomialRing, ZZ

from lmfdb import db
from lmfdb.app import app
from lmfdb.logger import make_logger
from lmfdb.utils import (
to_dict,
parse_ints, parse_string_start, parse_nf_string, parse_galgrp,
parse_subset, parse_submultiset, parse_bool, parse_bool_unknown,
search_wrap)
from . import abvarfq_page
from .search_parsing import parse_newton_polygon
from .isog_class import validate_label, AbvarFq_isoclass
from .stats import AbvarFqStats

logger = make_logger("abvarfq")

#########################
Expand Down Expand Up @@ -162,36 +165,10 @@ def download_search(info):
def abelian_variety_search(info, query):
parse_ints(info,query,'q',name='base field')
parse_ints(info,query,'g',name='dimension')
if 'simple' in info:
if info['simple'] == 'yes':
query['is_simp'] = True
elif info['simple'] == 'no':
query['is_simp'] = False
if 'primitive' in info:
if info['primitive'] == 'yes':
query['is_prim'] = True
elif info['primitive'] == 'no':
query['is_prim'] = False
if 'jacobian' in info:
jac = info['jacobian']
if jac == 'yes':
query['is_jac'] = 1
elif jac == 'not_no':
query['is_jac'] = {'$gt' : -1}
elif jac == 'not_yes':
query['is_jac'] = {'$lt' : 1}
elif jac == 'no':
query['is_jac'] = -1
if 'polarizable' in info:
pol = info['polarizable']
if pol == 'yes':
query['is_pp'] = 1
elif pol == 'not_no':
query['is_pp'] = {'$gt' : -1}
elif pol == 'not_yes':
query['is_pp'] = {'$lt' : 1}
elif pol == 'no':
query['is_pp'] = -1
parse_bool(info,query,'simple',qfield='is_simp')
parse_bool(info,query,'primitive',qfield='is_prim')
parse_bool_unknown(info, query, 'jacobian', qfield='is_jac')
parse_bool_unknown(info, query, 'polarizable', qfield='is_pp')
parse_ints(info,query,'p_rank')
parse_ints(info,query,'ang_rank')
parse_newton_polygon(info,query,'newton_polygon',qfield='slps')
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/abvar/fq/search_parsing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import re
from sage.all import QQ
from lmfdb.search_parsing import BRACKETING_RE, QQ_RE, _multiset_encode, search_parser
from lmfdb.utils.search_parsing import BRACKETING_RE, QQ_RE, _multiset_encode, search_parser
PAREN_RE = re.compile(r'(\([^\)]*\))') # won't work for iterated parentheses ((a,b),(c,d))

@search_parser
Expand Down
5 changes: 3 additions & 2 deletions lmfdb/abvar/fq/stats.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from lmfdb.db_backend import db
from lmfdb.utils import comma, make_logger
from lmfdb import db
from lmfdb.utils import comma
from lmfdb.logger import make_logger
from sage.structure.unique_representation import UniqueRepresentation
from sage.misc.lazy_attribute import lazy_attribute

Expand Down
9 changes: 5 additions & 4 deletions lmfdb/abvar/fq/test_av.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from lmfdb.base import LmfdbTest

from lmfdb.tests import LmfdbTest

class AVTest(LmfdbTest):

Expand All @@ -13,7 +14,7 @@ def test_polynomial(self):
r"""
Check that the formatted polynomial displays correctly
"""
self.check_args("/Variety/Abelian/Fq/2/9/aj_bl",'1-9x+37x^{2}-81x^{3}+81x^{4}')
self.check_args("/Variety/Abelian/Fq/2/9/aj_bl",'1 - 9 x + 37 x^{2} - 81 x^{3} + 81 x^{4}')

def test_display_field(self):
r"""
Expand Down Expand Up @@ -92,7 +93,7 @@ def test_newton_polygon_plot(self):
page = self.tc.get("/Variety/Abelian/Fq/2/4/ad_g").data
# The following is part of the base64 encoded image of the Newton
# polygon for this isogeny class.
assert "4S8eKLeWaDFgkQAKBLwgPyECAAQFeEB%2BQlQACALggPKIMA" in page
assert r"data:image/png;base64,iVBORw0KGgo" in page

def test_circle_plot(self):
r"""
Expand All @@ -101,7 +102,7 @@ def test_circle_plot(self):
page = self.tc.get("/Variety/Abelian/Fq/2/4/ad_g").data
# The following is part of the base64 encoded image of the circle plot
# for this isogeny class.
assert "gMA4O7CwsJ06NAhDqLDaVBAYEkcQAcA4EccRIezo" in page
assert r"data:image/png;base64,iVBORw0KGgo" in page

def test_property_box(self):
r"""
Expand Down
Loading