1313from lmfdb .app import app
1414from lmfdb .utils import (
1515 web_latex , coeff_to_poly , teXify_pol , display_multiset , display_knowl ,
16- parse_inertia , parse_newton_polygon , parse_bracketed_posints , parse_floats , parse_regex_restricted ,
16+ parse_inertia , parse_newton_polygon , parse_bracketed_posints , parse_floats ,
17+ parse_regex_restricted , parse_padicsubfields ,
1718 parse_galgrp , parse_ints , clean_input , parse_rats , parse_noop , flash_error ,
1819 SearchArray , TextBox , TextBoxWithSelect , SubsetBox , SelectBox , SneakyTextBox ,
1920 HiddenBox , TextBoxNoEg , CountBox , to_dict , comma ,
@@ -696,6 +697,7 @@ def common_parse(info, query):
696697 parse_noop (info ,query ,'packet' )
697698 parse_noop (info ,query ,'family' )
698699 parse_noop (info ,query ,'hidden' )
700+ parse_padicsubfields (info ,query ,'subfield' )
699701
700702def count_fields (p , n = None , f = None , e = None , eopts = None ):
701703 # Implement a formula due to Monge for the number of fields with given n or e,f
@@ -1609,11 +1611,17 @@ def common_boxes():
16091611 label = 'Packet' ,
16101612 knowl = 'lf.packet' ,
16111613 )
1614+ subfield = TextBox (
1615+ name = "subfield" ,
1616+ label = "Intermediate field" ,
1617+ knowl = "lf.intermediate_fields" ,
1618+ example_span = "2.1.2.2a1.2 or 5.1.5.9a1.5" ,
1619+ example = "2.1.2.2a1.2" )
16121620 hidden = SneakyTextBox (
16131621 name = "hidden" ,
16141622 label = "Hidden content" ,
16151623 knowl = "lf.slopes" )
1616- return degree , qp , c , e , f , topslope , slopes , visible , ind_insep , associated_inertia , jump_set , gal , aut , u , t , inertia , wild , family , packet , hidden
1624+ return degree , qp , c , e , f , topslope , slopes , visible , ind_insep , associated_inertia , jump_set , gal , aut , u , t , inertia , wild , subfield , family , packet , hidden
16171625
16181626class FamilySearchArray (EmbeddedSearchArray ):
16191627 sorts = [
@@ -1624,7 +1632,7 @@ class FamilySearchArray(EmbeddedSearchArray):
16241632 ]
16251633
16261634 def __init__ (self , fam ):
1627- degree , qp , c , e , f , topslope , slopes , visible , ind_insep , associated_inertia , jump_set , gal , aut , u , t , inertia , wild , family , packet , hidden = common_boxes ()
1635+ degree , qp , c , e , f , topslope , slopes , visible , ind_insep , associated_inertia , jump_set , gal , aut , u , t , inertia , wild , subfield , family , packet , hidden = common_boxes ()
16281636 if fam .packet_count is None :
16291637 self .refine_array = [[gal , slopes , ind_insep , hidden ], [associated_inertia , jump_set ]]
16301638 else :
@@ -1839,15 +1847,15 @@ class LFSearchArray(SearchArray):
18391847 }
18401848
18411849 def __init__ (self ):
1842- degree , qp , c , e , f , topslope , slopes , visible , ind_insep , associated_inertia , jump_set , gal , aut , u , t , inertia , wild , family , packet , hidden = common_boxes ()
1850+ degree , qp , c , e , f , topslope , slopes , visible , ind_insep , associated_inertia , jump_set , gal , aut , u , t , inertia , wild , subfield , family , packet , hidden = common_boxes ()
18431851 results = CountBox ()
18441852
18451853 self .browse_array = [[degree , qp ], [e , f ], [c , topslope ], [u , t ],
18461854 [slopes , visible ], [ind_insep , associated_inertia ],
1847- [jump_set , aut ], [gal , inertia ], [wild ], [results ]]
1848- self .refine_array = [[degree , qp , c , gal ],
1849- [e , f , t , u ],
1850- [aut , inertia , ind_insep , associated_inertia , jump_set ],
1855+ [jump_set , aut ], [gal , inertia ], [wild , subfield ], [results ]]
1856+ self .refine_array = [[degree , qp , c , gal , aut ],
1857+ [e , f , t , u , subfield ],
1858+ [inertia , ind_insep , associated_inertia , jump_set ],
18511859 [topslope , slopes , visible , wild ],
18521860 [family , packet , hidden ]]
18531861
0 commit comments