Skip to content

Commit

Permalink
Wave: Typecast surface elevation result
Browse files Browse the repository at this point in the history
  • Loading branch information
simmsa committed Jan 30, 2025
1 parent f67696d commit 24f09f6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mhkit/wave/resource/surface_elevation.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@
throw(ME);
end

eta=py.mhkit.wave.resource.surface_elevation(S_py, time_index);
eta_py=py.mhkit.wave.resource.surface_elevation(S_py, time_index);

eta = typecast_from_mhkit_python(eta_py);

wave_elevation.type='Time Series from Spectra';
wave_elevation.time=double(eta.index);
wave_elevation.elevation = double(eta.values);
wave_elevation.time=eta.index.data;
wave_elevation.elevation = eta.data;

0 comments on commit 24f09f6

Please sign in to comment.