Changeset 51cc0eb in sasview


Ignore:
Timestamp:
Jan 10, 2017 5:10:33 AM (6 years ago)
Author:
wojciech
Children:
55b935e
Parents:
58b107f
Message:

Minor code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/gpu_options.py

    r58b107f r51cc0eb  
    244244        #The same block of code as for OK but it is needed if we want to have 
    245245        #active response to Test button 
     246        no_opencl_msg = False 
    246247        if self.sas_opencl: 
    247248            os.environ["SAS_OPENCL"] = self.sas_opencl 
     249            if self.sas_opencl.lower() == "none": 
     250                no_opencl_msg = True 
    248251        else: 
    249252            if "SAS_OPENCL" in os.environ: 
     
    303306            msg+="All tests passed!\n" 
    304307 
    305         msg +="\nHardware Details:\n" 
     308        msg +="\nPlatform Details:\n\n" 
    306309        msg += "Sasmodels version: " 
    307310        msg += info['version']+"\n" 
    308311        msg += "\nPlatform used: " 
    309312        msg += json.dumps(info['platform'])+"\n" 
    310         if self.sas_opencl.lower() == "none": 
     313        if no_opencl_msg: 
    311314            msg += "\nOpenCL driver: None" 
    312315        else: 
Note: See TracChangeset for help on using the changeset viewer.