예제 #1
0
 def save(self, *args, **kwargs):
     if len(args) >= 1:
         file_name = args[0]
     else:
         file_name = '{}'.format(self.node)
     data_manager = dataManager.DataManager()
     data_manager.file_path = '{}{}'.format(data_manager.file_path,
                                            self.extra_path)
     data_manager.save(file_name, self.get_weights_dictionary(), **kwargs)
예제 #2
0
파일: curve.py 프로젝트: rendermotion/RMPY
 def save(self, *args, **kwargs):
     if len(args) >= 1:
         file_name = args[0]
     else:
         file_name = '%s' % self.node
     data_manager = dataManager.DataManager()
     data_manager.file_path = '{}{}'.format(data_manager.file_path,
                                            self.extra_path)
     data_manager.save(file_name, self.get_repr_dict(), **kwargs)
예제 #3
0
 def save(self, *args, **kwargs):
     if len(args) >= 1:
         file_name = args[0]
     else:
         file_name = '%s' % self.node
     data_manager = dataManager.DataManager()
     data_manager.scene_path = self.save_folder
     data_dict = self.get_data_dictionary()
     data_manager.save(file_name, data_dict, **kwargs)
예제 #4
0
 def load(self, *args, **kwargs):
     if len(args) >= 1:
         file_name = args[0]
     else:
         file_name = '%s' % self.node
     data_manager = dataManager.DataManager()
     data_manager.scene_path = self.save_folder
     self.data = data_manager.load(file_name, **kwargs)
     self.set_data_dictionary()
     return self.data
예제 #5
0
 def load(self, *args, **kwargs):
     if len(args) >= 1:
         file_name = args[0]
     else:
         file_name = '{}'.format(self.node)
     data_manager = dataManager.DataManager()
     data_manager.file_path = '{}{}'.format(data_manager.file_path,
                                            self.extra_path)
     print 'path to search = {}'.format(data_manager.file_path)
     self.weights_dict = data_manager.load(file_name, **kwargs)
     return self.weights_dict
예제 #6
0
파일: curve.py 프로젝트: rendermotion/RMPY
    def load(self, *args, **kwargs):
        try:
            if len(args) >= 1:
                file_name = args[0]
            else:
                file_name = '%s' % self.node
            data_manager = dataManager.DataManager()
            data_manager.file_path = '{}{}'.format(data_manager.file_path,
                                                   self.extra_path)
            self.repr_dict = data_manager.load(file_name, **kwargs)
            return self.repr_dict

        except IOError:
            if len(args) >= 1:
                file_name = args[0]
            else:
                file_name = '%s' % self.node

            print "couldn't load file name: {}".format(file_name)
예제 #7
0
 def __init__(self, *args, **kwargs):
     super(GeneralData, self).__init__()
     self.node = kwargs.pop('node')
     data_manager = dataManager.DataManager()
     self.save_folder = '{}'.format(data_manager.file_path)
     self.data = {}