Validate spectra - adjust paths

Hi Patrick,

worth adding that if you wanted to change lots of paths in one go, you could do it with a macro. e.g. the following would change the relative path for all your spectra:

Python
  1. specPath = `/New/File/Path/`
  2. for spectrum in project.spectra:
  3. specFileName = spectrum.filePath.split(`/`)[-1]
  4. spectrum.filePath = specPath+specFileName



For Bruker data you would probably want to adjust the specFileName part so you don`t just keep the file name, but some of the data structure, too.

If you wanted to something for spectra individually (e.g. with copy/paste), the following might be useful:

Python
  1. sp=project.getByPid(`SP:hsqc`)
  2. sp.filePath=(`/New/File/Path/Filename)



Best wishes,

Vicky