Prefix and/or suffix for loaded wave names in dialogs
Fri, 05/15/2009 - 05:26 am
These days I find myself using a lot of different legacy code programs that generate text output in files named "Card N" (yeah...as in legacy punch card code) with a variety of formats. If I need to run a few runs with different inputs and want to bring the data into Igor, it's just quicker and easier to use a GUI loader than writing my own function from scratch each time. Sometimes these data formats even have column headers, and I can let Igor auto-name the data, but then each data file will produce teh same names and Igor will complain about overwriting. Thus the relatively simple solution of adding a prefix or a suffix to the automatic wave names I can use to distinguish data sets. Even without column headers, adding a prefix would mean Wave0 would contain the same type of data for all my data sets. I realize many users use data folders for this, and that's always on option, but my own preference is to just work in one data folder if there aren't too many waves. It just makes all the other GUI dialogs (plotting, fitting, sorting, etc) a little quicker if all the waves are in one folder.