Skip to content

Commit

Permalink
Fix data type issue in _compute_doppler_shifts, fixes #426 (#436)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Euchner <[email protected]>
Merged-by: Guillermo Marcus <[email protected]>
  • Loading branch information
Jeija authored May 17, 2024
1 parent 8ad32bc commit 2cb12fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sionna/rt/solver_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -4124,7 +4124,7 @@ def _compute_doppler_shifts(self, paths, paths_tmp, velocity):
# Compute Doppler shift per path
#[num_targets, num_sources, max_num_paths]
doppler = tf.reduce_sum(velocity*k_diff, axis=-1)
doppler = tf.where(objects_mask, 0, doppler)
doppler = tf.where(objects_mask, tf.constant(0, doppler.dtype), doppler)
doppler = tf.reduce_sum(doppler, axis=0)
doppler /= self._scene.wavelength
return doppler
Expand Down

0 comments on commit 2cb12fd

Please sign in to comment.