twVolc / PyCamPermanent

Permanent PiCam (SO2) installation project software
GNU General Public License v3.0
2 stars 2 forks source link

DOAS config tidying #84

Open twVolc opened 10 months ago

twVolc commented 10 months ago

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.