class foxes.config.Config(foxes.utils.Dict)[source]

Container for configurational data

Public members

Config()[source]

Constructor

__setitem__(key, value)[source]

Set self[key] to value.

property dtype_double

The default double data type

property dtype_int

The default int data type

property work_dir

The foxes working directory

property input_dir

The input base directory

property output_dir

The default output directory

property nc_engine

The NetCDF engine

property utm_zone_set

Whether the UTM zone is set

property utm_zone

The UTM zone (number, letter) tuple

set_utm_zone(number, letter)[source]

Set the UTM zone

property name

The dictionary name

get_item(key, *deflt, prnt=True)[source]

Gets an item, prints readable error if not found

pop_item(key, *deflt, prnt=True)[source]

Pops an item, prints readable error if not found

__getitem__(key)[source]

x.__getitem__(y) <==> x[y]

update(*args, **kwargs)[source]

Update the dictionary with the key/value pairs from other, overwriting existing keys.

eval(globals=None, locals=None)[source]

Tries to evaluate all string values, recursively.

classmethod from_yaml(yml_file, verbosity=1)[source]

Reads a yaml file