# check for hardness constituents (only use dissolved calcium and dissolved magnesium)
if "Hardness" not in agg[dt] and "Ca-D" in agg[dt] and "Mg-D" in agg[dt]:
- if (
- len(dt.split(" ")) == 2
- ): # i.e. this is the first date-time, look to create a hardness calculation, ignore the other duplicates (dissolved vs total ca/mg)
+ if len(dt.split(" ")) == 2: # i.e. this is the first date-time, look to create a hardness calculation, ignore the other duplicates (dissolved vs total ca/mg)