Skip to content

Code snippets from snippet-generate action - #21

Open
github-actions[bot] wants to merge 497 commits into
mathscinetfrom
create-pull-request/patch
Open

Code snippets from snippet-generate action#21
github-actions[bot] wants to merge 497 commits into
mathscinetfrom
create-pull-request/patch

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 3, 2025

Copy link
Copy Markdown

This is an auto-generated PR with code snippets from yaml files

rvisser7 and others added 26 commits January 29, 2026 00:00
Second pass at adding lattice genus invariants
First pass at removing extras
Co-authored-by: edgarcosta <322822+edgarcosta@users.noreply.github.com>
Co-authored-by: edgarcosta <322822+edgarcosta@users.noreply.github.com>
Co-authored-by: edgarcosta <322822+edgarcosta@users.noreply.github.com>
Add code snippets for p-adic fields
Fix Sage downloads for p-adic fields
edgarcosta and others added 29 commits February 23, 2026 09:42
Uses the shared graph infrastructure merged from isogenygraphs to render
genus adjacency graphs interactively. Nodes are clickable when lattice
labels are available, linking to the corresponding lattice page.
Show minimum, kissing number, and automorphism group on hover.
Change "Minimal vector length" to "Minimum"
Minor change to names of lattice invariants
Update some knowl links on lattice page
Fixed minor bug with genus search page
I have added more snippets of code; the commented ones are that are not yet available in the latest OSCAR release.
More small updates to invariant/knowl names
More snippets for OSCAR code
Replace the buggy Gram matrix search with a format-aware input
that supports full matrix, upper/lower triangular, diagonal, and
auto-detection via a dropdown selector.

- Add conversion functions (flat_to_matrix, upper/lower_triangular_to_matrix,
  diagonal_to_matrix, auto_detect_gram_format) to web_lattice.py
- Replace TextBox with TextBoxWithSelect + SelectBox in the search UI
- Fix common_parse to dispatch to the correct converter and store
  flat n² list in query (direct DB match) + 2D matrix in info (for
  postprocessors)
- Fix genus_search_equivalence: use flat_to_matrix for DB rep values,
  correct column name (rank not dim), read from info['gram_matrix']
- Fix lattice_search_isometric: handle string projection (value not
  dict), handle [[flat_list]] wrapper, correct column names, drop
  invalid 'aut' from projection
- Uncomment and rewrite gram matrix tests with data that exists in DB
- Move flat gram → query out of common_parse (shared) into
  lattice_search (query['gram']) and genus_search (query['rep'])
  since the two tables have different column names
- Fix genus postprocessor to pop 'rep' instead of 'gram'
- Add tests: 1×1 edge case, auto-detect full matrix, off-diagonal
  upper triangular, non-symmetric error, invalid length errors,
  non-integer error, auto-detect invalid length, genus gram search
Replace the old broad isometry test with a genus-targeted approach:
- Compute the genus of the input Gram matrix
- Search lat_genera by rank, det, level, nplus, and is_even
- If one candidate in the genus matches user constraints, return it directly
- Otherwise try isometry against candidates with a 20s time budget
- If no match found, show all lattices in the genus with a flash message
  linking to the genus page

Add tests for isometry search including a rank-6 lattice with
class_number=200 (genus 6.6.311.61).
@github-actions
github-actions Bot force-pushed the create-pull-request/patch branch from 0d96de9 to 49c1fbe Compare February 24, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.