fixed init generation being really slow

This commit is contained in:
2025-10-26 19:14:50 -07:00
parent 5a9ac0c2d5
commit 2f0647caf3
29 changed files with 290 additions and 137 deletions

View File

@@ -0,0 +1,10 @@
function mustBeAgents(agents)
validGeometries = ["rectangularPrismConstraint";];
if isa(agents, 'cell')
for ii = 1:size(agents, 1)
assert(isa(agents{ii}, "agent"), "Agent in index %d is not a valid agent class", ii);
end
else
assert(isa(agents, validGeometries), "Agent is not a valid agent class");
end
end