Displaying differences for changeset
 
display as  

services.py

@@ -1252,18 +1252,11 @@
         for dt in agg:
             # 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)
                     try:
-                        newHardness = (
-                            2.5 * agg[dt]["Ca-D"]["value"]
-                            + 4.1 * agg[dt]["Mg-D"]["value"]
-                        )
+                        newHardness = 2.5 * agg[dt]["Ca-D"]["value"] + 4.1 * agg[dt]["Mg-D"]["value"]
                         resultId = "{0} {1} Hardness Calc".format(dt, uniqueId)
-                        agg = self.addWqKey(
-                            agg, dt, "Hardness", newHardness, "", resultId
-                        )
+                        agg = self.addWqKey(agg, dt, "Hardness", newHardness, "", resultId)
                     except TypeError as e:
                         # If the data contains "<" symbols simply don't use it until told otherwise, tcw
                         notes.append(