Ignore:
Timestamp:
08/03/12 11:19:25 (13 years ago)
Author:
jschierm
Message:

Python fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/model/process_solve_options.py

    r12827 r12889  
    11import os
     2from EnumDefinitions import *
    23
    34def process_solve_options(options):
     
    1516        #solution_type: check on this option, error out otherwise
    1617        solution_type=options.getfieldvalue('solution_type')
    17         if solution_type in (DiagnosticSolutionEnum,PrognosticSolutionEnum,ThermalSolutionEnum,\
     18        if not solution_type in (DiagnosticSolutionEnum,PrognosticSolutionEnum,ThermalSolutionEnum,\
    1819                        SteadystateSolutionEnum,TransientSolutionEnum,EnthalpySolutionEnum,\
    1920                        BalancethicknessSolutionEnum,BedSlopeSolutionEnum,SurfaceSlopeSolutionEnum,HydrologySolutionEnum,FlaimSolutionEnum):
     
    4243        outoptions['keep']=options.getfieldvalue('keep','y')
    4344        outoptions['latsgn']=options.getfieldvalue('latsgn',0)
    44         outoptions['cmap']=options.getfieldvalue('cmap',None)
     45        outoptions['cmap']=options.getfieldvalue('cmap',[])
    4546
    4647        return outoptions
Note: See TracChangeset for help on using the changeset viewer.