-vis node sort?

0 views
Skip to first unread message

Jay Hannah

unread,
Aug 22, 2008, 11:42:45 PM8/22/08
to chemc...@googlegroups.com
I noticed -vis -A is kicking out the nodes in this order

Column 0: C
Column 1: A
Column 2: B
Column 3: IN1
Column 4: 1_A
Column 5: 1_B
Column 6: 1_C
Column 7: 1_IN1

Would it be trivial to ASCII sort the order the nodes are reported
in? Like so?

1_A
1_B
1_C
1_IN1
A
B
C
IN1

That would make other/future implementations easier to test?

In my cursory glance through the .cpp code I don't see how C appears
before A in -vis. I suspect it's in here?:

NodeList.cpp
istream& operator >>(istream &in, NodeList &nl)

Thanks,

j

./ChemChains \
-ilogic inFiles/CChain/logic/sampleNet.txt \
-ispecs inFiles/CChain/specs/sampleSpecs.txt \
-vis myFirstSimulation.txt -A -v

Tomas Helikar

unread,
Aug 23, 2008, 10:11:17 AM8/23/08
to chemc...@googlegroups.com
If you use -A, then it will print out the network first, followed by the output nodes. I am not sure how easy sorting could be implemented.

Jay Hannah

unread,
Aug 23, 2008, 11:42:34 AM8/23/08
to chemc...@googlegroups.com
On Aug 23, 2008, at 9:11 AM, Tomas Helikar wrote:
> If you use -A, then it will print out the network first, followed
> by the output nodes. I am not sure how easy sorting could be
> implemented.

Do you recall how/why Node C ends up as 0 while Node A (the first in
the config file) ends up as 1? No biggie, just curious. My cpp skills
and insufficient to see the answer to that question at a glance. :)

I guess I'll have the key at the top be mandatory for all
implementations and the test harness could re-sort the output of each
implementation for comparison against other outputs.

j


Reply all
Reply to author
Forward
0 new messages