It might be nice to have a tidier way of dealing with the IFitWorker config. My thinking is to have a dictionary within PyplisWorker that defines which keys in a config file are associated with IFitWorker. Then when apply_config is called these files attributes are updated there. Any attributes that need extra work doing (e.g. ils_path' which needs the ils to actually be loaded from theils_path`) should be delt with using properties, so that all of the work under the hood is automatically done when setting the attribute.
This should tidy things up quite a bit and make it more obvious how to update code when adding new variables to the config file.
It might be nice to have a tidier way of dealing with the
IFitWorker
config. My thinking is to have a dictionary withinPyplisWorker
that defines which keys in a config file are associated withIFitWorker
. Then whenapply_config
is called these files attributes are updated there. Any attributes that need extra work doing (e.g.ils_path' which needs the ils to actually be loaded from the
ils_path`) should be delt with using properties, so that all of the work under the hood is automatically done when setting the attribute.This should tidy things up quite a bit and make it more obvious how to update code when adding new variables to the config file.