pacsretrieve/pacsretrieve.py
def dataReport_process(self, *args, **kwargs):
        """
        Process data report based on the return from the query.
        """

        d_results       = {}
        for k,v in kwargs.items():
            if k == 'resultFile':   self.str_resultFile     = v
            if k == 'results':      d_results               = v

        if len(self.str_resultFile):
            str_FQresultFile    = os.path.join(self.str_outputDir, self.str_resultFile)
            self.dp.qprint('Saving data results to %s' % str_FQresultFile )
            f = open(str_FQresultFile, 'w')
            js_results  = json.dumps(d_results, sort_keys = True, indent = 4)
            f.write('%s' % js_results)
            f.close()

        Process data report based on the return from the query.
        
Process data report based on the return from the query.
Process data report based on the return from the query .
def dataReport_process(self, *args, **kwargs):
        d_results       = {}
        for k,v in kwargs.items():
            if k == 'resultFile':   self.str_resultFile     = v
            if k == 'results':      d_results               = v
        if len(self.str_resultFile):
            str_FQresultFile    = os.path.join(self.str_outputDir, self.str_resultFile)
            self.dp.qprint('Saving data results to %s' % str_FQresultFile )
            f = open(str_FQresultFile, 'w')
            js_results  = json.dumps(d_results, sort_keys = True, indent = 4)
            f.write('%s' % js_results)
            f.close()
def dataReport_process ( self , * args , ** kwargs ) : d_results = { } for k , v in kwargs . items ( ) : if k == 'resultFile' : self . str_resultFile = v if k == 'results' : d_results = v if len ( self . str_resultFile ) : str_FQresultFile = os . path . join ( self . str_outputDir , self . str_resultFile ) self . dp . qprint ( 'Saving data results to %s' % str_FQresultFile ) f = open ( str_FQresultFile , 'w' ) js_results = json . dumps ( d_results , sort_keys = True , indent = 4 ) f . write ( '%s' % js_results ) f . close ( )
Process data report based on the return from the query.
Process data report based on the return from the query .
"""
        Process data report based on the return from the query.
        """
self