Skip to content

Renaming an ACSetTransformation? #927

Answered by kris-brown
sdwfrost asked this question in Q&A
Discussion options

You must be logged in to vote

Ok let me know if this works for you

function rename(f::LooseACSetTransformation{LabelledPetriNet}, 
                new_tnames::Vector{Symbol})
    new_f = deepcopy(f)
    dom(new_f)[:tname]=new_tnames
    return new_f
end

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@sdwfrost
Comment options

Comment options

You must be logged in to vote
2 replies
@sdwfrost
Comment options

@kris-brown
Comment options

Answer selected by sdwfrost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants