Ejemplo n.º 1
0
    def calculate(cls, data_handler, matrix_params):
        """
        :param matrix_params: The parameters to build the matrix. In this base case the only
        option is "load".
        
        Base parameters :
        
        {
            "method": STRING,
            "parameters":{
                ...
            }
        }
        
        Options:
        
        - "load": Load an already created matrix from disk
    
            "parameters":{
                "path": STRING
            }
        
        "path":  The path from where the matrix is going to be loaded.
        
        :return: A CondensedMatrix.
        """

        return pyRMSD_MatrixHandler.load_matrix(matrix_params["path"])
Ejemplo n.º 2
0
 def calculate(cls, data_handler, matrix_params):
     """
     :param matrix_params: The parameters to build the matrix. In this base case the only
     option is "load".
     
     Base parameters :
     
     {
         "method": STRING,
         "parameters":{
             ...
         }
     }
     
     Options:
     
     - "load": Load an already created matrix from disk
 
         "parameters":{
             "path": STRING
         }
     
     "path":  The path from where the matrix is going to be loaded.
     
     :return: A CondensedMatrix.
     """
     
     return pyRMSD_MatrixHandler.load_matrix(matrix_params["path"])