Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Class used to calculate water quality index
- Loading branch information
rowvigor
committed
Feb 13, 2018
1 parent
a1fe30d
commit 7987a5c
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from log import log | ||
|
||
class nsf_water_quality_index_calc(object): | ||
|
||
|
||
def __init__(self): | ||
# REF: http://home.eng.iastate.edu/~dslutz/dmrwqn/water_quality_index_calc.htm | ||
pass | ||
|
||
def calc(self, | ||
dissolved_oxygen = None, | ||
fecal_coliform = None, | ||
ph = None, | ||
biochemical_oxygen_demand = None, | ||
temperature_change = None, | ||
total_phosphate = None, | ||
nitrates = None, | ||
turbidity = None, | ||
total_solids = None): | ||
''' this method calculates the water quality index ''' | ||
|
||
return 0 | ||
|
||
|
||
if __name__ == "__main__": | ||
nsf = nsf_water_quality_index_calc() | ||
log( "NSF Water Quality Index: %s" % nsf.calc(),"success") |