[Kst] getdata patch

Barth Netterfield netterfield at physics.utoronto.ca
Fri Jan 6 20:33:12 CET 2006

Without commenting on this particular patch....

This brings up an idea that Ted has championed for a while now: that getdata 
should be its own library (as is cfitsio, HDF, etc etc) and not a part of 

The advantage is that we could have a single libDirfile svn tree somewhere, 
and would avoid the problem of forking that has been a problem in the past, 
and people could easily install libDirfile without installing kst (of course, 
why would someone want to do such a horrible thing?) and could install kst 
without installing dirfiles.

The disadvantage is that it would mean one more install for people who want 
dirfile access through kst.

Any thoughts on this?


On January 6, 2006 01:52 pm, Matthew D Truch wrote:
> Attached is a patch I'd like to apply to getdata (the 'library' for the
> dirfile reader), but I'm going to ask here first.  It modifies no code
> that kst uses; it merely adds a new function to getdata that lets you
> close all the open files getdata has for a given dirfile.  I'd like to
> apply it just to make things easy in keeping kst's getdata in sync with
> the getdata we use in other blast analysis programs.
> The reason I want the close function is: when you read files over nfs,
> often there are errors (nfs sucks).  Generally this causes the file to
> become stale; a re-read will continue to fail, unless you close and
> reopen the file first.  With GetDataClose(), you can close all the
> files, and the next time you try and read them, GetData will open and
> read for you.

More information about the Kst mailing list