Yeah, this why I don’t generally debug live in a chat haha. I did send the whole error minus the stacktrace, but here is the stacktrace for reference.
Stacktrace:
[1] action(#unused#::NinetyRot, el::CyclicGroupElement, mono::Monomial{DynamicPolynomials.Commutative{DynamicPolynomials.CreationOrder}, Graded{LexOrder}})
@ Main ~/Documents/Code/JULIA_SOS_Couette/patternGen.jl:8
[2] action(a::NinetyRot, el::CyclicGroupElement, term::Term{AffExpr, Monomial{DynamicPolynomials.Commutative{DynamicPolynomials.CreationOrder}, Graded{LexOrder}}})
@ SumOfSquares.Certificate.Symmetry ~/.julia/packages/SumOfSquares/xNLIR/src/Certificate/Symmetry/wedderburn.jl:43
[3] (::SumOfSquares.Certificate.Symmetry.var"#11#12"{NinetyRot, CyclicGroupElement})(term::Term{AffExpr, Monomial{DynamicPolynomials.Commutative{DynamicPolynomials.CreationOrder}, Graded{LexOrder}}})
@ SumOfSquares.Certificate.Symmetry ./none:0
[4] iterate
@ ./generator.jl:47 [inlined]
[5] collect
@ ./array.jl:782 [inlined]
[6] action(a::NinetyRot, el::CyclicGroupElement, poly::Polynomial{DynamicPolynomials.Commutative{DynamicPolynomials.CreationOrder}, Graded{LexOrder}, AffExpr})
@ SumOfSquares.Certificate.Symmetry ~/.julia/packages/SumOfSquares/xNLIR/src/Certificate/Symmetry/wedderburn.jl:51
[7] main()
@ Main ~/Documents/Code/JULIA_SOS_Couette/main_noTailSplit_forIteration.jl:177
[8] top-level scope
@ ~/Documents/Code/JULIA_SOS_Couette/main_noTailSplit_forIteration.jl:413
[9] include(fname::String)
@ Base.MainInclude ./client.jl:478
[10] top-level scope
@ REPL[1]:1
in expression starting at /Users/elizabethc/Documents/Code/JULIA_SOS_Couette/main_noTailSplit_forIteration.jl:413
I know this is a stupid error, and I am not trying to invoke anything like 1:nrows without specifying nrows. I do have nrows stated throughout the code separately (it was this way before I knew MATLAB and Oscar called it under the hood), but I do not get this error in the original code without the loop (the loop is not over nrows). This simply means something very stupid is happening, and I just need to dig through the code with and without iterations with a vimdiff, it’s probably minor error somewhere with the way I wrapped things so I can run this code for multiple iterations. I reran it, using “import MAT” instead of “using MAT” (for the purpose of writing to .mat files, yes there’s a reason for this) and now it is simply giving me the following error:
ERROR: LoadError: UndefVarError: `nrows` not defined
Stacktrace:
[1] action(#unused#::NinetyRot, el::CyclicGroupElement, mono::Monomial{DynamicPolynomials.Commutative{DynamicPolynomials.CreationOrder}, Graded{LexOrder}})
@ Main ~/Documents/Code/JULIA_SOS_Couette/patternGen.jl:8
[2] action(a::NinetyRot, el::CyclicGroupElement, term::Term{AffExpr, Monomial{DynamicPolynomials.Commutative{DynamicPolynomials.CreationOrder}, Graded{LexOrder}}})
@ SumOfSquares.Certificate.Symmetry ~/.julia/packages/SumOfSquares/xNLIR/src/Certificate/Symmetry/wedderburn.jl:43
[3] #11
@ ~/.julia/packages/DynamicPolynomials/MqIhr/src/mono.jl:0 [inlined]
[4] iterate
@ ./generator.jl:47 [inlined]
[5] collect(itr::Base.Generator{DynamicPolynomials.TermIterator{DynamicPolynomials.Commutative{DynamicPolynomials.CreationOrder}, Graded{LexOrder}, AffExpr}, SumOfSquares.Certificate.Symmetry.var"#11#12"{NinetyRot, CyclicGroupElement}})
@ Base ./array.jl:782
[6] action(a::NinetyRot, el::CyclicGroupElement, poly::Polynomial{DynamicPolynomials.Commutative{DynamicPolynomials.CreationOrder}, Graded{LexOrder}, AffExpr})
@ SumOfSquares.Certificate.Symmetry ~/.julia/packages/SumOfSquares/xNLIR/src/Certificate/Symmetry/wedderburn.jl:51
[7] main()
@ Main ~/Documents/Code/JULIA_SOS_Couette/main_noTailSplit_forIteration.jl:177
[8] top-level scope
@ ~/Documents/Code/JULIA_SOS_Couette/main_noTailSplit_forIteration.jl:413
[9] include(fname::String)
@ Base.MainInclude ./client.jl:478
[10] top-level scope
@ REPL[1]:1
in expression starting at /Users/elizabethc/Documents/Code/JULIA_SOS_Couette/main_noTailSplit_forIteration.jl:413
Again, the stacktrace is not particularly helpful other than it is very unhappy about something on that line. This does not occur in a nearly identical copy of this script without file writing. Means I probably have a small typo somewhere.