Skip to content

Commit d3a3e4f

Browse files
committed
Update simulator_radar.pyx
1 parent bc60fd7 commit d3a3e4f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/radarsimpy/simulator_radar.pyx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,10 @@ cpdef sim_radar(radar, targets, frame_time=None, density=1, level=None, interf=N
301301
# Timestamp Processing
302302
#----------------------
303303
radar_ts = radar.time_prop["origin_timestamp"]
304-
radar_ts_shape = np.shape(radar_ts)
304+
radar_ts_shape = radar.time_prop["origin_timestamp_shape"]
305305

306306
timestamp = radar.time_prop["timestamp"]
307-
ts_shape = np.shape(timestamp)
307+
ts_shape = radar.time_prop["timestamp_shape"]
308308

309309
# Set ray filter with constants
310310
if ray_filter is None:
@@ -346,8 +346,7 @@ cpdef sim_radar(radar, targets, frame_time=None, density=1, level=None, interf=N
346346
cdef double[:,:,::1] bb_real = np.empty(ts_shape, order='C', dtype=np.float64)
347347
cdef double[:,:,::1] bb_imag = np.empty(ts_shape, order='C', dtype=np.float64)
348348

349-
radar_c.InitBaseband(&bb_real[0][0][0],
350-
&bb_imag[0][0][0])
349+
radar_c.InitBaseband(&bb_real[0][0][0], &bb_imag[0][0][0])
351350

352351
#----------------------
353352
# Simulation Execution

0 commit comments

Comments
 (0)