Changeset 2b4c8ca in sasview for calculatorview/src/sans


Ignore:
Timestamp:
Jan 19, 2012 11:48:43 AM (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:
4310dbb
Parents:
33477fd
Message:

a little correction for naming the sum model especially when one of the models has all lower case name

File:
1 edited

Legend:

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

    rf505470 r2b4c8ca  
    761761     
    762762    def _get_name(self, name1, name2): 
    763         name = self._get_upper_name(name1) 
     763        p1_name = self._get_upper_name(name1) 
     764        if not p1_name: 
     765            p1_name = name1 
     766        name = p1_name 
    764767        name += "+" 
    765         name += self._get_upper_name(name2) 
     768        p2_name = self._get_upper_name(name2) 
     769        if not p2_name: 
     770            p2_name = name2 
     771        name += p2_name 
    766772        return name 
    767773     
Note: See TracChangeset for help on using the changeset viewer.