Skip to content

Restore compatibility with the matgrp package#485

Merged
fingolfin merged 1 commit into
masterfrom
mh/matgrp-compat
May 19, 2026
Merged

Restore compatibility with the matgrp package#485
fingolfin merged 1 commit into
masterfrom
mh/matgrp-compat

Conversation

@fingolfin
Copy link
Copy Markdown
Member

... via a crude hack.

Thing is, the arguments for BindRecogMethod, as well as the inputs and outputs of recognition methods have changed.

Luckily the method in matgrp does nothing very useful, so we can replicate an updated version here.


See also hulpke/matgrp#19 which addresses this on the matgrp side by simply removing the offending code there (it doesn't do anything useful as far as I can tell). But since we need to be compatible with the current release of matgrp, too, I am making this hackish workaround here (I've also thought about doing a "proper" adapter that is more general, but I don't know of any other external package using these APIs, so I opted to keep it simple.

... via a crude hack.

Thing is, the arguments for BindRecogMethod, as well as the
inputs and outputs of recognition methods have changed.

Luckily the method in matgrp does nothing very useful, so we
can replicate an updated version here.
@fingolfin fingolfin requested a review from SoongNoonien May 19, 2026 12:16
Comment thread gap/base/methods.gi
arg[Length(arg)] :=
function(ri)
if IsBound(ri!.ring) and not IsBound(ri!.field) then
Error("hereIAm");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this error mean? I see that it has been copied from matgrp but I'm not sure what it means.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it means that this is a debug left-over that should just be removed from matgrp ;-)

Perhaps @hulpke was working on support for $\mathrm{GL}(d,\mathbb{Z}/m\mathbb{Z})$ as input to RecognizeGroup (see also #166), and this was meant to ensure nothing of that sort crept into the wrong places. But this is just speculation.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2026

Codecov Report

❌ Patch coverage is 21.42857% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.13%. Comparing base (347f7b6) to head (c799754).

Files with missing lines Patch % Lines
gap/base/methods.gi 21.42% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #485      +/-   ##
==========================================
- Coverage   88.17%   88.13%   -0.05%     
==========================================
  Files          45       45              
  Lines       19010    19023      +13     
==========================================
+ Hits        16763    16765       +2     
- Misses       2247     2258      +11     
Files with missing lines Coverage Δ
gap/base/methods.gi 78.57% <21.42%> (-14.42%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread gap/base/methods.gi
@fingolfin fingolfin merged commit 3a5df99 into master May 19, 2026
5 of 6 checks passed
@fingolfin fingolfin deleted the mh/matgrp-compat branch May 19, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants