synthpops.config module

This module sets the location of the data folder and other global settings.

To change the level of log messages displayed, use e.g.

sp.logger.setLevel(‘CRITICAL’)

synthpops.config.checkmem(unit='mb', fmt='0.2f', start=0, to_string=True)

For use with logger, check current memory usage

synthpops.config.set_nbrackets(n)

Set the number of census brackets – usually 16 or 20.

synthpops.config.validate(verbose=True)

Check that the data folder can be found.

synthpops.config.set_location_defaults(country=None)
synthpops.config.get_config_data()
synthpops.config.version_info()