Changeset 332


Ignore:
Timestamp:
21/05/15 12:03:52 (5 years ago)
Author:
astephen
Message:

Added test for no command-line arguments when ceda-cc is run.
Now it prints the doc string and informs the user of the error.

Also changed "diretory" to "directory" in various places.

Location:
CCCC/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • CCCC/trunk/ceda_cc/c4.py

    r327 r332  
    88  """ 
    99   Wrapper around main() for use with setuptools. 
     10  """ 
     11  if len(sys.argv) == 1: 
     12      # Show command-line info and report that you must provide arguments 
     13      import ccinit 
     14      print ccinit.__doc__ 
     15      print "\nERROR: Please provide command-line arguments." 
     16      return 
    1017 
    11   """ 
    1218  if sys.argv[1] == '--sum': 
    1319      import summary 
  • CCCC/trunk/ceda_cc/ccinit.py

    r331 r332  
    2929ceda_cc -p <project> [-f <NetCDF file>|-d <directory containing files>|-D <root of directory tree>] [other options] 
    3030 
    31 With the "-D" option, all files in the directory tree beneath the given diretory will be checked. With the "-d" option, only files in the given directory will be checked. 
     31With the "-D" option, all files in the directory tree beneath the given directory will be checked. With the "-d" option, only files in the given directory will be checked. 
    3232""" 
    3333import sys, os, string, time, logging 
  • CCCC/trunk/ceda_cc/fcc_utils.py

    r180 r332  
    204204      files.pop( files.index(f) ) 
    205205       
    206 # record diretory names at each level 
     206# record directory names at each level 
    207207    if thisLev not in self.dirNames.keys(): 
    208208       self.dirNames[thisLev] = [] 
  • CCCC/trunk/updates.txt

    r155 r332  
    44153c: Debugged amap virtual substitutions for attributes of axes. 
    55153d: Added mip_id mapping to those recognised in construction of drs dictionary 
    6 153e: Draft correction for CMIP5 diretory path. 
     6153e: Draft correction for CMIP5 directory path. 
    77153f: Added tolerance of 0.01 degrees for rotated latitude grid specification. 
    88 
Note: See TracChangeset for help on using the changeset viewer.