Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
OnnoEbbens committed Mar 1, 2024
1 parent 2519366 commit e9ba859
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hydropandas/io/lizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ def get_metadata_tube(metadata_mw, tube_nr):
# tube has probably been replaced, multiple tubes with the same code and tube nr
# merge metadata from all tubes
logger.info(
f"there are {len(metadata_tube_list)} instances of {code} and tube {tube_nr}, trying to merge all in one observation object"
f"there are {len(metadata_tube_list)} instances of {code} and tube "
f"{tube_nr}, trying to merge all in one observation object"
)
mtd_tube = metadata_tube_list[0].copy()
relevant_keys = {
Expand All @@ -275,7 +276,8 @@ def get_metadata_tube(metadata_mw, tube_nr):
if key in ["top_level", "filter_top_level", "filter_bottom_level"]:
if val != mtd_tube[key]:
logger.warning(
f"multiple {key} values found ({val} & {mtd_tube[key]}) for {code} and tube {tube_nr}, using {mtd_tube[key]}"
f"multiple {key} values found ({val} & {mtd_tube[key]})"
f" for {code} and tube {tube_nr}, using {mtd_tube[key]}"
)
# merge time series from all tubes with the same code and tube number
elif key == "timeseries":
Expand Down
2 changes: 2 additions & 0 deletions tests/test_013_lizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ def test_codes():
def test_many_tubed_well():

oc = hpd.read_lizard(codes="EEWP004", tube_nr="all")
assert not oc.empty


def test_complex_well():

oc = hpd.read_lizard(codes="BUWP014", tube_nr="all")
assert not oc.empty


def test_combine():
Expand Down
File renamed without changes.

0 comments on commit e9ba859

Please sign in to comment.