NCToolkit lets you set global settings using options() — per session, or once per project with a configuration file.
If you're working with ensembles, you'll probably want to change the number of cores used for processing multiple files:
nc.options(cores=6)
By default NCToolkit uses the OS's temporary directory, which is usually fastest. If you don't have enough space there, point it elsewhere:
nc.options(temp_dir="/foo")
By default, a progress bar appears when NCToolkit expects a multi-file operation to take a while. Force it on or off:
nc.options(progress="on") nc.options(progress="off")
By default, evaluation in NCToolkit is lazy (see Lazy evaluation & chaining). To evaluate every method as it's called instead:
nc.options(lazy=False)
To set some global settings permanently, or per-project, create a plain-text file called .nctoolkitrc or nctoolkitrc in your working directory or home directory. NCToolkit checks the working directory first, then the home directory, and uses the first one it finds — falling back to its defaults if neither exists.
The format follows Python dictionary syntax loosely, with setting and value separated by a colon:
lazy : True cores : 6
Any setting not specified in the file falls back to its default.