[Kst] Apply df1.kst for df1.dat to df2.dat from kst2 GUI
Nicolas Brisset
nicolas.brisset at free.fr
Sun Apr 19 19:36:09 UTC 2015
Hi Roger,
I'm not sure I understand what you want to do. Basically, changing the .kst files from an editor is not recommended, even though under most circumstances it will work. But it's not easier and it is less safe than using the Change Data File tool.
A few more hints:
- the .kst file does not store the data file, only pointers to it - as you have seen
- when data file changes, you can hit the "reload all data sources" button to force kst to re-read the data
- it would be feasible to teach the ASCII data source to re-read the data if the data file shrinks or gets a newer write date. It has already been discussed. One issue could be remote file systems or network mounts, where buffering and latency may break the detection though
- you have a -F switch for the command line which allows forcing the data file to something else. I.e. if the .kst file points to df1.dat you can call kst like this: "kst2 -F df2.dat" and it will read data from df2.dat instead of df1.dat
- your issue below seems to come from the fact that you have Qt installed for various applications, one of them being Kst. Apparently the OS gets confused, but it's not a Kst issue
Best regards,
Nicolas
----- Mail original -----
> De: "Roger Wehage" <raw915 at gmail.com>
> À: kst at kde.org
> Envoyé: Vendredi 17 Avril 2015 15:24:29
> Objet: Re: [Kst] Apply df1.kst for df1.dat to df2.dat from kst2 GUI
>
>
>
>
> That wasn’t exactly what I had in mind. I’m trying to set up a
> process whereby the user doesn’t have to know anything about kst2,
> but can still use its full functionality, if so desired. If I apply
> Sublime Text or Awk, for example, to change all occurrences of
> "df1.dat” in df1.kst to "df2.dat" and save the results back in
> df1.kst, then the kst2 GUI will display the contents of df2.dat
> exactly as it did for df1.dat. That way the user wouldn't have to do
> anything but launch the kst2 GUI, go to FILE, and select df1.kst.
>
>
> I would prefer to avoid even these steps by using a command line, but
> I’m having some problems here. For example, if I do ./kst2
> ~/kst_data/df1.kst from within
> /Applications/kst2.app/Contents/MacOS, I get the same results as
> when launching the kst2 GUI, going to FILE, and selecting df1.kst.
> That is, the desired plots come right up without doing anything
> else.
>
>
> However, when I create a link /usr/bin/kst2 –>
> /Applications/kst2.app/Contents/MacOS/kst2 and enter kst2 df1.kst
> from the subdirectory containing the df2.dat file I get the
> following errors:
>
>
>
> kst2 df1.kst
> objc[5318]: Class QCocoaColorPanelDelegate is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QMacSoundDelegate is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QCocoaPanel is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QCocoaView is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QCocoaWindow is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QCocoaWindowDelegate is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QCocoaMenuLoader is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QNSApplication is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QCocoaApplicationDelegate is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QCocoaWindowCustomThemeFrame is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QCocoaToolBarDelegate is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QCocoaMenu is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QNSOpenSavePanelDelegate is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QCocoaFontPanelDelegate is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QNSPanelProxy is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QNSWindowProxy is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QCocoaPageLayoutDelegate is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QCocoaPrintPanelDelegate is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QNSImageView is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QNSStatusItem is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> objc[5318]: Class QNSMenu is implemented in both
> /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
> and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui.
> One of the two will be used. Which one is undefined.
> QWidget: Cannot create a QWidget when no GUI is being used
> Abort trap: 6
>
>
> I haven’t figured out how to resolve this problem. Any ideas?
>
>
>
>
>
> On Apr 17, 2015, at 7:04 AM, Ben Lewis < benlewis003 at gmail.com >
> wrote:
>
> Hi Rodger,
>
> You can use the "Change Data File" icon. It is located two to the
> right of the "Data Wizard" icon.
>
> See https://youtu.be/3YZVC-GiS_4 The change data file tool is
> discussed at the 5min 20sec mark.
>
> Regards, Ben
>
> On 17/04/2015 9:50 PM, Roger Wehage wrote:
>
>
> I have installed the GUI version of kst2 on OS X Yosemite 10.10.3
> using the kst-2.0.8-binary.dmg download. I used the Data Wizard to
> set up plots for data file df1.dat and saved the setup in df1.kst. I
> want to apply df1.kst to a second data file df2.dat.
>
> Data files df1.dat and df2.dat are ASCII. The columns are
> space-separated with headers. Both files have the same number of
> columns but different number of lines. I set up df1.kst to read from
> frame 0 to the end, which is what I want for df1.dat and df2.dat.
>
> Is there a way to apply df1.kst to df2.dat from the GUI?
>
>
> Roger Wehage
> raw915 at gmail.com
> I prefer to use encrypted email.
> My public key fingerprint is 2FC0 7616 DDB6 6B42 FF9C 775A FAEF DF7B
> 266E DB80.
> Learn how to encrypt your email with the Email Self Defense guide
> (https://emailselfdefense.fsf.org/).
>
>
>
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
>
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
>
>
>
>
> Roger Wehage
> raw915 at gmail.com
> I prefer to use encrypted email.
> My public key fingerprint is 2FC0 7616 DDB6 6B42 FF9C 775A FAEF DF7B
> 266E DB80.
> Learn how to encrypt your email with the Email Self Defense guide (
> https://emailselfdefense.fsf.org/ ).
>
>
>
>
>
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
>
More information about the Kst
mailing list