Pool-Calculator/products.py

17 lines
808 B
Python

Possible Structure of Code in this File
class BioGuardProduct:
def __init__(self, name, active_ingredient, fc_factor, cya_factor, ch_factor, weight_unit="lb"):
self.name = name
self.active_ingredient = active_ingredient
self.fc_factor = fc_factor # ppm change per unit in 10k gal
self.cya_factor = cya_factor # ppm change per unit in 10k gal
self.ch_factor = ch_factor # ppm change per unit in 10k gal
self.weight_unit = weight_unit
# Instantiated store inventory:
INVENTORY = {
"burn_out_73": BioGuardProduct("Burn Out 73", "Cal-Hypo", fc_factor=8.7, cya_factor=0, ch_factor=6.1),
"super_soluble": BioGuardProduct("Super Soluble", "Dichlor", fc_factor=6.7, cya_factor=6.0, ch_factor=0),
# Add Low 'N Slow, Stabilizer 100, etc.
}