utils
index
/home/gcallah/TandonDevOps/IndraABM/lib/utils.py

This file contains miscellaneous.

 
Modules
       
os
random

 
Classes
       
builtins.object
Debug

 
class Debug(builtins.object)
    Reads the environment variables to decide on enabling debug outputs
 
  Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.
get_env_var(self, var_name)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
agent_by_name(agent)
gaussian(mean, sigma, trim_at_zero=True)
get_func_name(f)
get_indra_home(default='/home/IndraABM/IndraABM')
get_model_dir(model_dir)
get_prop_path(model_name, model_dir=None)
get_user_type(default=None)
init_props(model_nm, props=None, model_dir=None, skip_user_questions=False)
ratio_to_sin(ratio)
Take a ratio of y to x and turn it into a sine.
sin(x, /)
Return the sine of x (measured in radians).

 
Data
        DEF_MODEL_DIR = 'models'
INDRA_DEBUG2_LIB_VAR = 'INDRA_DEBUG2_LIB'
INDRA_DEBUG2_VAR = 'INDRA_DEBUG2'
INDRA_DEBUG3_VAR = 'INDRA_DEBUG3'
INDRA_DEBUG_LIB_VAR = 'INDRA_DEBUG_LIB'
INDRA_DEBUG_VAR = 'INDRA_DEBUG'
INDRA_HOME_VAR = 'INDRA_HOME'
PA_INDRA_HOME = '/home/IndraABM/IndraABM'
PA_INDRA_NET = '/home/indrasnet/indras_net'
USER_TYPE_VAR = 'user_type'
pi = 3.141592653589793