Changeset 7328 for cows_wps


Ignore:
Timestamp:
16/08/10 14:06:48 (9 years ago)
Author:
astephen
Message:

added new subset PP test proc

Location:
cows_wps/trunk
Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/process_configs/ExtractUKStationData.ini

    r7010 r7328  
    3939StationsFile.optional = True 
    4040ObsTableName = string 
    41 ObsTableName.possible_values = TD,WD,RD,RS,TH,WM,WH,RO 
     41ObsTableName.possible_values = TD,WD,RD,RH,RS,TH,WH,WM,RO,GL 
    4242Delimiter = string 
    4343Delimiter.possible_values = comma,tab 
  • cows_wps/trunk/process_configs/ListPPFileHeader.ini

    r7159 r7328  
    2020 
    2121[DataInputs] 
    22 PPFilePath = string 
    23 PPFilePath.default = /tmp/strat_test_file.pp  
     22FilePath = filepath 
     23FilePath.basedir = /disks/kona1/cwps-test-data/africa-lam  
    2424 
    2525 
  • cows_wps/trunk/process_modules/list_pp_file_header.py

    r7159 r7328  
    1414import cows_wps.process_handler.process_support as process_support 
    1515from cows_wps.process_handler.context.process_status import STATUS 
     16 
    1617import process_modules.process_base 
    1718 
     
    3132    # Define arguments that we need to set from inputs 
    3233    # Based on args listed in process config file 
    33     args_to_set = ["PPFilePath"] 
     34    args_to_set = ["FilePath"] 
    3435 
    3536    # Define defaults for arguments that might not be set 
     
    6566        if not dry_run: 
    6667            # Really generate output 
    67             ppf = pypp.pp_file.PP_File(a["PPFilePath"])  
     68            ppf = pypp.pp_file.PP_File(a["FilePath"])  
    6869    
    6970            resp = "Number of fields: %s\n" % ppf.nfields 
     
    115116        Runs specific checking of arguments and their compatibility. 
    116117        """ 
    117         if not os.path.isfile(self.args["PPFilePath"]): 
    118             raise Exception("Invalid arguments provided. 'PPFilePath' must point to a real file.") 
     118        if not os.path.isfile(self.args["FilePath"]): 
     119            raise Exception("Invalid arguments provided. 'FilePath' must point to a real file.") 
Note: See TracChangeset for help on using the changeset viewer.