Exemplo n.º 1
0
    def StoreCompressedModels(self):
        sZipFiles = self.RunSub.ListCompressedModels()
        sDestFolder = self.StoreSub.ExperimentModelFolder
        Storage.EnsurePathExists(sDestFolder)

        for sZipFile in sZipFiles:
            self.Log.Print("Moving model %s to storage folder %s" %
                           (sZipFile, sDestFolder))
            Storage.MoveFileToFolder(sZipFile, sDestFolder)

        Storage.DeleteEmptyFolder(self.RunSub.ExperimentModelFolder)
Exemplo n.º 2
0
 def ArchiveConfigAsError(self, p_sConfigFileName=None):
     if p_sConfigFileName is None:
         p_sConfigFileName = self.GetNextConfig()
     Storage.MoveFileToFolder(p_sConfigFileName, self.ErrorFolder)
Exemplo n.º 3
0
    def ArchiveConfig(self, p_sConfigFileName=None, p_sDestFileName=None):
        if p_sConfigFileName is None:
            p_sConfigFileName = self.GetNextConfig()

        Storage.MoveFileToFolder(p_sConfigFileName, self.ArchiveFolder,
                                 p_sDestFileName)