Skip to content

Commit

Permalink
Resolved some E501
Browse files Browse the repository at this point in the history
  • Loading branch information
jbousquin committed Aug 2, 2024
1 parent 9680e35 commit cb32910
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion harmonize_wq/domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,14 @@ def char_tbl_TADA(df, char):
Returns
-------
new_char_dict : dict
{Target.TADA.CharacteristicName: {Target.TADA.ResultSampleFractionText: [Target.TADA.ResultSampleFractionText]}
Returned dictionary follows general structure:
{
"Target.TADA.CharacteristicName": {
"Target.TADA.ResultSampleFractionText": [
"Target.TADA.ResultSampleFractionText"
]
}
}
"""
cols = [
"Target.TADA.CharacteristicName",
Expand Down
3 changes: 2 additions & 1 deletion harmonize_wq/tests/test_harmonize_WQP.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,8 @@ def test_harmonize_fecal_coliform():
# Inspect specific result - where value missing
assert str(actual.iloc[1][orig_val_col]) == "*Non-detect" # Confirm missing
# Confirm expected flag - for missing value
expected_flag = 'ResultMeasureValue: "*Non-detect" result cannot be used; ResultMeasure/MeasureUnitCode: MISSING UNITS, CFU/(100ml) assumed'
expected_flag = 'ResultMeasureValue: "*Non-detect" result cannot be used; '
expected_flag += "ResultMeasure/MeasureUnitCode: MISSING UNITS, CFU/(100ml) assumed"
assert actual.iloc[1]["QA_flag"] == expected_flag
# Inspect specific result - un-usable non-numeric values
assert actual.iloc[75305][orig_val_col] == "Not Reported"
Expand Down

0 comments on commit cb32910

Please sign in to comment.