Skip to content

Commit

Permalink
switch to CreateCapCategoryObject/MorphismWithAttributes Object/Morph…
Browse files Browse the repository at this point in the history
…ismInAlgebroid
  • Loading branch information
mohamed-barakat committed Jul 1, 2023
1 parent 43057c9 commit a34fa0b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Algebroids/PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SetPackageInfo( rec(

PackageName := "Algebroids",
Subtitle := "Algebroids and bialgebroids as preadditive categories generated by enhanced quivers",
Version := "2023.06-08",
Version := "2023.07-01",

Date := ~.Version{[ 1 .. 10 ]},
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)( ),
Expand Down
25 changes: 11 additions & 14 deletions Algebroids/gap/Algebroids.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1461,20 +1461,18 @@ InstallMethod( ObjectInAlgebroid,
[ IsAlgebroid, IsQuiverVertex ],

function( A, v )
local o, name;

o := rec( );
local name, obj;

name := String( v );

ObjectifyObjectForCAPWithAttributes(
o, A,
UnderlyingVertex, v,
Label, name );
obj := CreateCapCategoryObjectWithAttributes( A,
UnderlyingVertex, v,
Label, name );

A!.Vertices.(name) := o;
#% CAP_JIT_DROP_NEXT_STATEMENT
A!.Vertices.(name) := obj;

return o;
return obj;

end );

Expand Down Expand Up @@ -1516,11 +1514,10 @@ InstallOtherMethodForCompilerForCAP( MorphismInAlgebroid,
#% CAP_JIT_DROP_NEXT_STATEMENT
CAP_INTERNAL_ASSERT_IS_OBJECT_OF_CATEGORY( T, A, [ "the range given to MorphismInAlgebroid" ] );

return ObjectifyMorphismWithSourceAndRangeForCAPWithAttributes(
rec( ), A,
S, T,
UnderlyingQuiverAlgebraElement, path
);
return CreateCapCategoryMorphismWithAttributes( A,
S,
T,
UnderlyingQuiverAlgebraElement, path );

end );

Expand Down

0 comments on commit a34fa0b

Please sign in to comment.