Skip to content

Commit

Permalink
Update tests so that debug files are diffed first
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Aug 1, 2024
1 parent 4cc1cb8 commit 7409f90
Show file tree
Hide file tree
Showing 17 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_tidal_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def test_tidal_run(shinnecock_mesh_directory):
for index, row in mesh.boundaries.ocean.gdf.iterrows():
vertices = mesh.get_xy(crs='EPSG:4326').iloc[row.indexes, :].values
df_verts = pd.DataFrame(vertices)
df_verts.to_csv(output_directory / f'bnd_{constituent}_{index}.csv')
df_verts.to_csv(output_directory / f'debug_bnd_{constituent}_{index}.csv')
amp, phase = mesh.forcings.tides.tidal_dataset(constituent, vertices)
df_tide = pd.DataFrame({'amp': amp, 'phase': phase})
df_verts.to_csv(output_directory / f'tide_{constituent}_{index}.csv')
df_verts.to_csv(output_directory / f'debug_tide_{constituent}_{index}.csv')

check_reference_directory(
output_directory,
Expand Down

0 comments on commit 7409f90

Please sign in to comment.