Skip to content

A wrapper class for loading the contents of a file system folder into a structure with WaveMetrics Igor Pro

License

Notifications You must be signed in to change notification settings

ukos-git/igor-file-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

compile status

igor-file-loader

A independent module for WaveMetrics Igor Pro 8 that can load the contents of a file system folder into a structure. Although versions < 8 may be working, the CI job only tests compatibility to Igor Pro 8.

Installation

Navigate to the Igor Pro User Files folder from the menu bar:

Igor Pro User Files Folder

All files from the Igor Procedures Folder are loaded by default on program start.

usage in Functions

Function load()
   FILO#load(fileType = ".ibw", packageID = 1)
End

Function read()
   String file
   Variable numFiles, i
   STRUCT FILO#experiment filos

   FILO#structureLoad(filos)

   numFiles = ItemsInList(filos.strFileList)
   for(i = 0; i < numFiles; i += 1)
   	file = StringFromList(i, filos.strFileList)
   	print filos.strFolder, file
   endfor
End

usage from Command Line

The package stores its values in variables. The package can therefore also be called directly from the cli. An example is shown in the following figure. Try testing it with the following code:

FILO#load()
print root:Packages:FILO:structure:strFileList

Igor Pro User Files Folder

About

A wrapper class for loading the contents of a file system folder into a structure with WaveMetrics Igor Pro

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published