While I was writing some of the python examples, I realized that there is some inconsistency between the number of arguments and the sizes parameter between segment and herd. I haven't fully explored what is allowed (syntactically) in launch because multi-launches are a bit up in the air (pun intended) in terms of implementation/meaning.
Anyways, both herd and segments have a sizes argument. If sizes in not specified, it defaults to [1, 1].
I think the segment usage makes sense to me. The following are valid python snippets for segment:
@segment(name="seg")
def segment_body():
...
@segment(name="seg", sizes=[1])
def segment_body(tx, sx):
...
@segment(name="seg", sizes=[1, 1])
def segment_body(tx, ty, sx, sy):
...
However, herd MUST have the arguments below, even when sizes is not specified. E.g., these are valid ways to define your herd:
@herd(name="herd", sizes=[1, 1])
def herd_body(tx, ty, sx, sy):
...
@herd(name="copyherd")
def herd_body(tx, ty, sx, sy):
(but I couldn't figure out how to get sizes=[1] to be valid)
I was wondering if I could get some help understanding what should be valid in terms of specifying sizes for a herd, and also if it's a good idea or not to figure out how to hide the arguments when the herd is 1x1 the same way the segment works (because why would one need size or indices in that case??)
I'd appreciate some feedback on this issue.
While I was writing some of the python examples, I realized that there is some inconsistency between the number of arguments and the
sizesparameter between segment and herd. I haven't fully explored what is allowed (syntactically) in launch because multi-launches are a bit up in the air (pun intended) in terms of implementation/meaning.Anyways, both herd and segments have a
sizesargument. If sizes in not specified, it defaults to[1, 1].I think the segment usage makes sense to me. The following are valid python snippets for segment:
However, herd MUST have the arguments below, even when sizes is not specified. E.g., these are valid ways to define your herd:
(but I couldn't figure out how to get
sizes=[1]to be valid)I was wondering if I could get some help understanding what should be valid in terms of specifying sizes for a herd, and also if it's a good idea or not to figure out how to hide the arguments when the herd is 1x1 the same way the segment works (because why would one need size or indices in that case??)
I'd appreciate some feedback on this issue.