Changeset f9feff3 in sasview for calculatorview


Ignore:
Timestamp:
Jan 22, 2012 4:22:45 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
82b0b6a7
Parents:
e499ca0
Message:

cleaned up a little

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/model_editor.py

    re499ca0 rf9feff3  
    473473        # Prepare the content of the function 
    474474        lines = CUSTOM_TEMPLATE.split('\n') 
    475         im_np = 'import numpy' 
    476         im_sp = 'import scipy' 
    477         if func_str.count(im_np): 
    478             func_str = func_str.replace(im_np, '') 
    479         if func_str.count(im_sp): 
    480             func_str = func_str.replace(im_sp, '') 
     475 
    481476        has_scipy = func_str.count("scipy.") 
    482477        self.is_2d = func_str.count("#self.ndim = 2") 
Note: See TracChangeset for help on using the changeset viewer.