Ignore:
Timestamp:
Mar 17, 2016 11:08:10 AM (9 years ago)
Author:
ajj
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:
1c628f0
Parents:
a301204
Message:

Fixing category lists and list of models in GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/calculator/model_editor.py

    rd85c194 rbac3988  
    574574                    if not self.is_p1_custom: 
    575575                        line = line.replace('#', '') 
    576                         out_f.write(line % (name1, name1) + "\n") 
     576                        out_f.write(line % (name1) + "\n") 
    577577                    else: 
    578578                        out_f.write(line + "\n") 
     
    586586                    if not self.is_p2_custom: 
    587587                        line = line.replace('#', '') 
    588                         out_f.write(line % (name2, name2) + "\n") 
     588                        out_f.write(line % (name2) + "\n") 
    589589                    else: 
    590590                        out_f.write(line + "\n") 
     
    12651265# User can change the name of the model (only with single functional model) 
    12661266#P1_model: 
    1267 #from sas.models.%s import %s as P1 
     1267#from sasmodels.models import %s as P1 
    12681268#from %s import Model as P1 
    12691269 
    12701270#P2_model: 
    1271 #from sas.models.%s import %s as P2 
     1271#from sasmodels.models import %s as P2 
    12721272#from %s import Model as P2 
    12731273import os 
Note: See TracChangeset for help on using the changeset viewer.