Skip to content

Commit ca82867

Browse files
committed
Remove unnecessary reference qualifiers in pxd file
Updated function signatures in radarsimc.pxd to remove '&' reference qualifiers from vector parameters, aligning with expected usage and improving compatibility with C++ submodules. Also updated the radarsimcpp submodule to the latest commit.
1 parent 2dfb5f0 commit ca82867

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/radarsimcpp

src/radarsimpy/includes/radarsimc.pxd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ cdef extern from "simulator_rcs.hpp":
136136
RcsSimulator() except +
137137

138138
# Calculate RCS for multiple targets and observation angles
139-
vector[T] Run(vector[Target[float]] & targets, # Array of target objects
139+
vector[T] Run(vector[Target[float]] targets, # Array of target objects
140140
vector[Vec3[T]] inc_dir_array, # Incident wave directions
141141
vector[Vec3[T]] obs_dir_array, # Observation directions
142142
Vec3[cpp_complex[T]] inc_polarization, # Incident wave polarization
@@ -153,7 +153,7 @@ cdef extern from "simulator_lidar.hpp":
153153
LidarSimulator() except +
154154

155155
# Generate point cloud by ray casting
156-
void Run(vector[Target[T]] & targets,
156+
void Run(vector[Target[T]] targets,
157157
const vector[T] & phi, # Azimuth angles (radians)
158158
const vector[T] & theta, # Elevation angles (radians)
159159
const Vec3[T] & position) # LiDAR sensor position
@@ -294,10 +294,10 @@ cdef extern from "simulator_mesh.hpp":
294294

295295
# Run mesh simulation with configurable fidelity
296296
RadarSimErrorCode Run(Radar[H, L] & radar, # Radar configuration
297-
vector[Target[L]] & targets, # Array of mesh targets
297+
vector[Target[L]] targets, # Array of mesh targets
298298
int level, # Simulation level (0=LOW, 1=MEDIUM, 2=HIGH)
299299
L density, # Ray density for physical optics
300-
Vec2[int_t] ray_filter, # Ray index filter [min, max]
300+
Vec2[int_t] ray_filter, # Ray index filter [min, max]
301301
bool back_propagating, # Enable back-propagation
302302
string log_path, # Debug log file path
303303
bool debug) # Enable debug output

0 commit comments

Comments
 (0)