Simulation configuration


This module contains the CfgSetup that read the configuration file and set all simulation parameters.

Example

from nsfds2.init import CfgSetup

cfg = CfgSetup()

class nsfds2.init.config.CfgSetup(args=None)[source]

Handle configuration file.

check_config_file()[source]

Check version of the config file. Overwrite it if too old.

static check_dir(directory)[source]

Check if dir exists. If not, create it.

init_cfg()[source]

Check if config file exists. If not create it.

run()[source]

Run configuration.

nsfds2.init.config.create_template(path=None, filename=None, cfg=None)[source]

Create default configuration file. Default location is .nsfds2/nsfds2.conf.