Package nictools :: Module persutil
[hide private]
[frames] | no frames]

Module persutil

source code

Functions [hide private]
 
all_printMsg(message, level=1) source code
 
printMsg(message, level=0) source code
 
setVerbosity(verbosity_level)
Copy verbosity to a variable that is global for this file.
source code
 
checkVerbosity(level)
Return true if verbosity is at least as great as level.
source code
 
getPersist_lo(calcfile)
Get value of persist_lo from BEPVALLO in the persistence model file PMODFILE or from a default specified by this module.
source code
 
getUsed_lo(calcfile)
Get value of used_lo from BEPUSELO in the persistence model file PMODFILE or from a default specified by this module.
source code
string
getPersist_model(calcfile)
Get name of persistence model from PMODFILE in the input file.
source code
string
getPersist_mask(calcfile)
Get name of persistence mask from PMSKFILE in the input file This will only be called if user did not specify a model on the command-line.
source code
 
getOptions() source code
Variables [hide private]
  QUIET = 0
  VERBOSE = 1
  VERY_VERBOSE = 2
  verbosity = 1
  PERSIST_LO = 0.5
  USED_LO = 0.5
  nref = '$nref'
  __package__ = 'nictools'

Imports: sys, time, pyfits, OptionParser, os


Function Details [hide private]

setVerbosity(verbosity_level)

source code 

Copy verbosity to a variable that is global for this file. argument: verbosity_level - an integer value indicating the level of verbosity

getPersist_lo(calcfile)

source code 
Get value of persist_lo from BEPVALLO in the persistence model file PMODFILE
    or from a default specified by this module.
    This will only be called if user did not specify a value on the command-line. 

@param calcfile: input ped file
@type calcfile: string

@return: persist_lo
@rtype:  float    

getUsed_lo(calcfile)

source code 
Get value of used_lo from BEPUSELO in the persistence model file PMODFILE
    or from a default specified by this module.
    This will only be called if user did not specify a value on the command-line. 


@param calcfile: input ped file
@type calcfile: string

@return:  used_lo
@rtype:  float    

getPersist_model(calcfile)

source code 

Get name of persistence model from PMODFILE in the input file. This will only be called if user did not specify a model on the command-line.

Parameters:
  • calcfile (string) - input ped file
  • clip (string)
Returns: string
persist_model

getPersist_mask(calcfile)

source code 

Get name of persistence mask from PMSKFILE in the input file This will only be called if user did not specify a model on the command-line.

Parameters:
  • calcfile (string) - input ped file
Returns: string
persist_mask