From 9f6b7f423630b8a107ef4c27b8030e31c72b2817 Mon Sep 17 00:00:00 2001 From: kalmarek Date: Mon, 30 Jul 2018 19:23:49 +0200 Subject: [PATCH] remove the parent check in setindex!(X::GroupRingElem, v, g) it should be fine as long as we can coerce g to parent(X).group --- src/GroupRings.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GroupRings.jl b/src/GroupRings.jl index 54e8719..830dacf 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -207,7 +207,7 @@ end function setindex!(X::GroupRingElem, value, g::GroupElem) RG = parent(X) - typeof(g) == elem_type(RG.group) || throw("$g is not an element of $(RG.group)") + # typeof(g) == elem_type(RG.group) || throw("$g is not an element of $(RG.group): $(typeof(g)) != $(elem_type(RG.group))") if !(g in keys(RG.basis_dict)) g = (RG.group)(g) end