Beispiel #1
0
 def save_file(self):
     """
     Writes the file paths of the loaded sessions to a file.
     
     """
     files = self.get("files")
     data = "\n".join(files)
     Storage.write(self.get_project_path(), data)
Beispiel #2
0
 def save_map(self):
     """
     Saves the dictionary containing all virtual unit mappings.
     
     """
     self.change_map()
     vum_all = self.get("vum_all")
     Storage.write(self.get_map_path(), vum_all, "pickle")
     self.store("vum_all2", self.load_map()) 
Beispiel #3
0
 def load_map(self):
     """
     Loads the dictionary containing all virtual unit mappings.
     
         **Returns**: dictionary
             The loaded map.
     
     """
     try:
         vum = Storage.read(self.get_map_path(), "pickle")
         return vum
     except:
         raise IOError("Could not read VUMap")