Skip to content

Commit

Permalink
Add oresund dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmariegaard committed Dec 26, 2024
1 parent be7e3ab commit 6d9d4ee
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
Binary file added data/oresund.msk
Binary file not shown.
19 changes: 19 additions & 0 deletions modelskill/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,24 @@


def vistula():
"""10-year discharge data for Vistula catchment, Poland
Returns
-------
ComparerCollection
_description_
"""
fn = "./data/vistula.msk"
return ms.load(fn)


def oresund():
"""Oresund water level data for 2022
Returns
-------
ComparerCollection
_description_
"""
fn = "./data/oresund.msk"
return ms.load(fn)
7 changes: 6 additions & 1 deletion tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@

def test_load_vistula():
cc = ms.data.vistula()
assert cc is not None
assert isinstance(cc, ms.ComparerCollection)


def test_load_oresund():
cc = ms.data.oresund()
assert isinstance(cc, ms.ComparerCollection)

0 comments on commit 6d9d4ee

Please sign in to comment.