Skip to content

Commit 765d5d3

Browse files
Merge pull request #1796 from mohamed-barakat/devel
2 parents ba1941e + 0ae8fd3 commit 765d5d3

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

LinearClosuresForCAP/PackageInfo.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "LinearClosuresForCAP",
1212
Subtitle := "Linear closures",
13-
Version := "2025.08-04",
13+
Version := "2025.09-01",
1414
Date := (function ( ) if IsBound( GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE ) then return GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE; else return Concatenation( ~.Version{[ 1 .. 4 ]}, "-", ~.Version{[ 6, 7 ]}, "-01" ); fi; end)( ),
1515
License := "GPL-2.0-or-later",
1616

LinearClosuresForCAP/gap/LinearClosure.gi

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,12 +354,17 @@ end );
354354
InstallOtherMethodForCompilerForCAP( LinearClosureMorphismNC,
355355
[ IsLinearClosure, IsLinearClosureObject, IsList, IsList, IsLinearClosureObject ],
356356
function( category, source, coefficients, support_morphisms, range )
357+
local underlying_category;
358+
359+
underlying_category := UnderlyingCategory( category );
360+
361+
#% CAP_JIT_DROP_NEXT_STATEMENT
362+
Assert( 0, ForAll( support_morphisms, mor -> IsIdenticalObj( CapCategory( mor ), underlying_category ) ) );
357363

358364
return CreateCapCategoryMorphismWithAttributes( category,
359-
source, range,
360-
CoefficientsList, coefficients,
361-
SupportMorphisms, support_morphisms
362-
);
365+
source, range,
366+
CoefficientsList, coefficients,
367+
SupportMorphisms, support_morphisms );
363368

364369
end );
365370

@@ -638,7 +643,7 @@ InstallGlobalFunction( INSTALL_FUNCTIONS_FOR_LINEAR_CLOSURE,
638643

639644
coeffs := ListX( CoefficientsList( alpha ), CoefficientsList( beta ), { a,b } -> a * b );
640645

641-
supp := ListX( SupportMorphisms( alpha ), SupportMorphisms( beta ), { alpha, beta } -> PreCompose( underlying_category, alpha, beta ) );
646+
supp := ListX( SupportMorphisms( alpha ), SupportMorphisms( beta ), { a, b } -> PreCompose( underlying_category, a, b ) );
642647

643648
return MorphismConstructor( cat, Source( alpha ), Pair( coeffs, supp ), Range( beta ) );
644649

0 commit comments

Comments
 (0)