code: def saveTargetsToFile(self, filename):
          
          fp = open(filename, 'w')
          for target in self.targets:
              vec = self.replacePatterns(target)
              for item in vec:
                  fp.write("%f " % item)
              fp.write("\n")
docs: Deprecated.