xesn.Driver.load

Contents

xesn.Driver.load#

static Driver.load(fname)#

An extension of yaml.safe_load() that recognizes 1e9 as float not string (i.e., don’t require the 1.0 or the sign +9).

Thanks to <https://stackoverflow.com/a/30462009>.

Parameters:

fname (str) – path to yaml file

Returns:

config (dict) – with the contents of the yaml file