DataFolder.keep_latest

DataFolder.keep_latest()

Filter out earlier revisions of files with the same name.

The CM group LabVIEW software will avoid overwirting files when measuring by inserting !#### where #### is an integer revision number just before the filename extension. This method will look for instances of several files which differ in name only by the presence of the revision number and will kepp only the highest revision number. This is useful if several measurements of the same experiment have been carried out, but only the last file is the correct one.

Returns

A copy of the DataFolder.