Skip to content

Autostep weird behavior #391

@fihuer

Description

@fihuer

Hi,
I've just discovered a weird behavior in the autostep heuristics:

In python:

>>> l=['s20pmc0', 's20pmc1', 's20pmc2', 's22pmc0', 's22pmc1', 's22pmc2', 's24pmc0', 's24pmc1', 's24pmc2', 's26pmc0', 's26pmc1', 's26pmc2', 's28pmc0', 's28pmc1', 's28pmc2', 's30pmc0', 's30pmc1', 's30pmc2', 's32pmc0', 's32pmc1', 's32pmc2', 's34pmc0', 's34pmc1', 's34pmc2', 's36pmc0', 's36pmc1', 's36pmc2']
>>> print NodeSet.fromlist(l, autostep=3)
s[20,22,24,26,28,30,32,34,36]pmc[0-2]
>>> l=['s20pmc0', 's20pmc1', 's22pmc0', 's22pmc1', 's24pmc0', 's24pmc1', 's26pmc0', 's26pmc1', 's28pmc0', 's28pmc1', 's30pmc0', 's30pmc1', 's32pmc0', 's32pmc1', 's34pmc0', 's34pmc1', 's36pmc0', 's36pmc1']
>>> print NodeSet.fromlist(l, autostep=3)
s[20-36/2]pmc[0-1]

When using the nodeset command:

$ nodeset --autostep=3 -f s[20,22,24,26,28,30,32,34,36]pmc[0-2]
s[20-36/2]pmc[0-2]
$ nodeset --autostep=3 -f s20pmc0 s20pmc1 s20pmc2 s22pmc0 s22pmc1 s22pmc2 s24pmc0 s24pmc1 s24pmc2 s26pmc0 s26pmc1 s26pmc2 s28pmc0 s28pmc1 s28pmc2 s30pmc0 s30pmc1 s30pmc2 s32pmc0 s32pmc1 s32pmc2 s34pmc0 s34pmc1 s34pmc2 s36pmc0 s36pmc1 s36pmc2
s[20,22,24,26,28,30,32,34,36]pmc[0-2]
$ nodeset --autostep=3 -f s[20,22,24,26,28,30,32,34,36]pmc[0-1]
s[20-36/2]pmc[0-1]
$ nodeset --autostep=3 -f s20pmc0 s20pmc1 s22pmc0 s22pmc1  s24pmc0 s24pmc1  s26pmc0 s26pmc1  s28pmc0 s28pmc1  s30pmc0 s30pmc1  s32pmc0 s32pmc1  s34pmc0 s34pmc1  s36pmc0 s36pmc1
s[20-36/2]pmc[0-1]

This does not looks like a consistent behavior, is it expected ?

Cheers,

Romain Fihue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions