Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 2, 2024
1 parent 0b11267 commit f6575d9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ def test_basinmaker_extractor(get_local_testdata, tmp_path):
rvh_config = rvh_extractor.extract(hru_from_sb=True)

# Create lists of values to check
bedslope_list = [item['bed_slope'] for item in rvh_config["channel_profile"]]
mannings_list = [value for d in rvh_config["channel_profile"] for value in [t[1] for t in d['roughness_zones']]]
reach_length_list = [item['reach_length'] for item in rvh_config["sub_basins"]]
bedslope_list = [item["bed_slope"] for item in rvh_config["channel_profile"]]
mannings_list = [
value
for d in rvh_config["channel_profile"]
for value in [t[1] for t in d["roughness_zones"]]
]
reach_length_list = [item["reach_length"] for item in rvh_config["sub_basins"]]

rvh_config.pop("channel_profile")

Expand Down

0 comments on commit f6575d9

Please sign in to comment.