Skip to content

Commit

Permalink
Merge pull request #1693 from zickgraf/master
Browse files Browse the repository at this point in the history
Move computability check to the end of `Finalize`
  • Loading branch information
zickgraf authored Sep 25, 2024
2 parents 3dda0f0 + 7d075b8 commit dd6f803
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CAP/PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SetPackageInfo( rec(

PackageName := "CAP",
Subtitle := "Categories, Algorithms, Programming",
Version := "2024.09-25",
Version := "2024.09-26",
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)( ),
License := "GPL-2.0-or-later",

Expand Down
14 changes: 6 additions & 8 deletions CAP/gap/Finalize.gi
Original file line number Diff line number Diff line change
Expand Up @@ -306,14 +306,6 @@ InstallMethod( Finalize,

fi;

# Warn about categories marked as being computable but not having an implementation of IsCongruentForMorphisms.
# Since IsCongruentForMorphisms currently is derived from IsEqualForMorphisms, the latter also has to be taken into account.
if category!.is_computable and not CanCompute( category, "IsEqualForMorphisms" ) and not CanCompute( category, "IsCongruentForMorphisms") then

Print( "WARNING: The category with name \"", Name( category ), "\" is marked as being computable but has no implementation of `IsCongruentForMorphisms`.\n" );

fi;

#= comment for Julia
if ValueOption( "disable_derivations" ) = true then

Expand Down Expand Up @@ -517,6 +509,12 @@ InstallMethod( Finalize,

fi;

if category!.is_computable and not CanCompute( category, "IsCongruentForMorphisms" ) then

Print( "WARNING: The category with name \"", Name( category ), "\" is marked as being computable but has no implementation of `IsCongruentForMorphisms`.\n" );

fi;

if not category!.is_computable and CanCompute( category, "IsCongruentForMorphisms" ) then

Print( "WARNING: The category with name \"", Name( category ), "\" is marked as being not computable but has an implementation of `IsCongruentForMorphisms`.\n" );
Expand Down

0 comments on commit dd6f803

Please sign in to comment.