Bug 161766 - reset data file option does not work
Summary: reset data file option does not work
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.4.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-07 20:52 UTC by Andrew Walker
Modified: 2008-05-07 21:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Walker 2008-05-07 20:52:51 UTC
Version:           1.4.0 (using KDE 3.5.8)
Installed from:    Compiled From Sources
OS:                Linux

The following was sent to the kst list by a user:

===================================================

Really simple problem, but can't make it work. Easy to believe that I'm doing
something stupid, but if so, I can't figure what it is after several days of
poking around and handbook reading and re-reading, so would be grateful for a
clue.

I notice a comment in an archived e-mail circa Jan 2008 to the effect that "command
line processing is broken", but am hoping that's either I'm misreading that, or else
command line processing fixed since then.

here's the problem:

I'm trying to display a two-vector plot of "packets sent/packets received v. time".

I create a data file 0.dat:

11      1       1
12      2       1
13      3       2
14      4       4

I run kst:

       kst -x1 -y2 -y3 0.dat&

I see the attached plot0.jpg.

I write out a .kst file (making no changes to any of the curve or vector definitions.)

I create a data file 2.dat by adding two data points to 0.dat:

11      1       1
12      2       1
13      3       2
14      4       4
15      5       5
16      6       5

I run kst:

       kst -F 2.dat 0.kst&

The window displays with the axes etc, but no curves displayed, as in plot2a.jpg.
The Help->Debug Kst->Log window shows the error messages in plot2b.jpg.

I've tried various other things, eg displaying 0.dat, going to data mode, then
changing vectors 2 & 3 to be "read from end", but I get exactly the same error.

Or
       kst -n -1 -F 2.dat 0.kst&

The errors in the log suggest to me that the -F isn't actually resetting the
data file, but maybe I'm reading meaning into the messages that isn't correct.
Comment 1 Andrew Walker 2008-05-07 21:31:47 UTC
This problem was introduced with revision 621341, the merging of the hierarchy branch. 

The modified code would override the existing tag name.

This is not a problem in most cases, but when the user has specified the -F flag in the command line it can result in a curve that is using non-existent vectors.
Comment 2 Andrew Walker 2008-05-07 21:38:39 UTC
SVN commit 805176 by arwalker:

BUG:161766 do not override a vector name that other objects are dependent upon

 M  +4 -1      kstrvector.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=805176