Skip to content

Commit

Permalink
autoformat: isort & black
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Oct 30, 2023
1 parent 3f81bbb commit 0358325
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions hydrolib/core/dflowfm/net/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def read_mesh1d_network1d(self, mesh1d: Mesh1d) -> None:

# Process network
mesh1d._process_network1d()
mesh1d._set_mesh1d() # TODO: we still require this here to sync new attrs with meshkernel instance
mesh1d._set_mesh1d() # TODO: we still require this here to sync new attrs with meshkernel instance

ds.close()

Expand All @@ -87,7 +87,7 @@ def read_mesh2d(self, mesh2d: Mesh2d) -> None:
setattr(mesh2d, meshkey, self._read_nc_attribute(ds[nckey]))
# TODO: replace with xugrid reader

mesh2d._set_mesh2d() # TODO: we still require this here to sync new attrs with meshkernel instance
mesh2d._set_mesh2d() # TODO: we still require this here to sync new attrs with meshkernel instance

ds.close()

Expand Down
4 changes: 1 addition & 3 deletions tests/dflowfm/test_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def test_read_net_nc(filepath):
# network = networkmodel.network
assert not network._mesh1d.is_empty()
assert network._mesh2d.is_empty()

# test whether meshkernel instance and hydrolib mesh2d/mesh1d instance are consistent
nnodes_internal = network._mesh2d.mesh2d_node_x.size
nnodes_mk = network._mesh2d.get_mesh2d().node_x.size
Expand All @@ -276,7 +276,6 @@ def test_read_net_nc(filepath):
assert nnodes_internal == nnodes_mk == nnodes_mk2



@pytest.mark.parametrize("filepath", cases)
def test_read_write_read_compare(filepath):
# Get nc file path
Expand Down Expand Up @@ -661,7 +660,6 @@ def test_add_1d2d_links():
assert nnodes_internal == nnodes_mk == nnodes_mk2



def test_write_netcdf_with_custom_fillvalue_correctly_writes_fillvalue():
nc_output_file = Path(test_output_dir / "test.nc")

Expand Down

0 comments on commit 0358325

Please sign in to comment.