wrcad / xictools

XicTools: Xic graphical editor, WRspice circuit simulator, and accessories. for electronic design.
http://wrcad.com
138 stars 40 forks source link

[Unexpected behavior] Vector yes is printed by default #5

Open frankhoff opened 4 years ago

frankhoff commented 4 years ago

Description

When using the print command in the control environment, the vector yes is printed by default to shell output.

Version

WRSpice Version 4.3.11 System Ubuntu 18.04

Steps to reproduce

Minimal example works in circuit file as well as in interactive shell

compose x values 0 1 2 3 4 5 6 7 8 9
print x

Output

Constant values
constants                                             Thu Jun  4 10:07:32 2020
--------------------------------------------------------------------------------
Index   yes             x               
--------------------------------------------------------------------------------
0       1.000000e+00    0.000000e+00    
1                       1.000000e+00    
2                       2.000000e+00    
3                       3.000000e+00    
4                       4.000000e+00    
5                       5.000000e+00    
6                       6.000000e+00    
7                       7.000000e+00    
8                       8.000000e+00    
9                       9.000000e+00    

Thanks and greetings

wrcad commented 4 years ago

That is normal behavior (but perhaps a little weird). The vector "yes" from the constants plot is arbitrarily assigned as the new vector's scale.