Skip to content

Commit 2b404d4

Browse files
committed
Use 'purchase a license' in trial messages
Update trial/limit messaging across codebase to prompt users to "purchase a license" instead of "upgrade to the Standard Version" (src/radarsimpy/lib/cp_radarsimc.pyx, src/radarsimpy/simulator_radar.pyx, src/radarsimpy/simulator_rcs.pyx). Also remove the deprecated frame_time and interf_frame_time parameters (and their deprecation warning) from sim_radar, and do a small cleanup in cp_radarsimc (removed an unused commented variable).
1 parent 04d956e commit 2b404d4

File tree

3 files changed

+7
-19
lines changed

3 files changed

+7
-19
lines changed

src/radarsimpy/lib/cp_radarsimc.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ cdef inline void _validate_mesh_for_free_tier(int_t num_faces) except *:
8787
f"Your model: {num_faces} faces\n"
8888
f"Reduction needed: {num_faces - MAX_FREE_TIER_FACES} faces\n\n"
8989
f"This limitation helps maintain reasonable simulation times in the trial version.\n"
90-
f"To simulate larger meshes, please upgrade to the Standard Version:\n"
90+
f"To simulate larger meshes, please purchase a license:\n"
9191
f"→ https://radarsimx.com/product/radarsimpy/\n"
9292
f"{'='*60}\n"
9393
)
@@ -384,7 +384,7 @@ cdef void cp_AddRxChannel(rx, rx_idx, Receiver[float_t] * rx_c):
384384

385385
polar = rx.rxchannel_prop["polarization"][rx_idx]
386386
cdef Vec3[cpp_complex[float_t]] polarization_vt = Vec3[cpp_complex[float_t]](cpp_complex[float_t](np.real(polar[0]), np.imag(polar[0])), cpp_complex[float_t](np.real(polar[1]), np.imag(polar[1])), cpp_complex[float_t](np.real(polar[2]), np.imag(polar[2])))
387-
# cdef float_t[:] polarization_mv = rx.rxchannel_prop["polarization"][rx_idx].astype(np_float)
387+
388388
rx_c[0].AddChannel(
389389
Vec3[float_t](&location_mv[0]),
390390
polarization_vt,

src/radarsimpy/simulator_radar.pyx

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ cdef inline void validate_free_tier_limits(radar, list targets):
9090
"----------------------------------------\n"
9191
"Current limitation: Maximum 2 targets\n"
9292
"Your scene: {} targets\n\n"
93-
"To simulate more targets, please upgrade to the Standard Version:\n"
93+
"To simulate more targets, please purchase a license:\n"
9494
"→ https://radarsimx.com/product/radarsimpy/\n"
9595
.format(len(targets))
9696
)
@@ -101,7 +101,7 @@ cdef inline void validate_free_tier_limits(radar, list targets):
101101
"----------------------------------------------\n"
102102
"Current limitation: 1 transmitter channel\n"
103103
"Your configuration: {} channels\n\n"
104-
"To use multiple transmitter channels, please upgrade to the Standard Version:\n"
104+
"To use multiple transmitter channels, please purchase a license:\n"
105105
"→ https://radarsimx.com/product/radarsimpy/\n"
106106
.format(radar.radar_prop["transmitter"].txchannel_prop["size"])
107107
)
@@ -112,7 +112,7 @@ cdef inline void validate_free_tier_limits(radar, list targets):
112112
"-------------------------------------------\n"
113113
"Current limitation: 1 receiver channel\n"
114114
"Your configuration: {} channels\n\n"
115-
"To use multiple receiver channels, please upgrade to the Standard Version:\n"
115+
"To use multiple receiver channels, please purchase a license:\n"
116116
"→ https://radarsimx.com/product/radarsimpy/\n"
117117
.format(radar.radar_prop["receiver"].rxchannel_prop["size"])
118118
)
@@ -142,7 +142,7 @@ cdef inline raise_err(RadarSimErrorCode err):
142142
@cython.cdivision(True)
143143
@cython.boundscheck(False)
144144
@cython.wraparound(False)
145-
cpdef sim_radar(radar, targets, frame_time=None, density=1, level=None, interf=None, interf_frame_time=None,
145+
cpdef sim_radar(radar, targets, density=1, level=None, interf=None,
146146
ray_filter=None, back_propagating=False, device="gpu", log_path=None, debug=False):
147147
"""
148148
sim_radar(radar, targets, density=1, level=None, interf=None, ray_filter=None,
@@ -301,18 +301,6 @@ cpdef sim_radar(radar, targets, frame_time=None, density=1, level=None, interf=N
301301
#----------------------
302302
# Initialization
303303
#----------------------
304-
# Check for deprecated frame_time parameter
305-
if frame_time is not None or interf_frame_time is not None:
306-
import warnings
307-
warnings.warn(
308-
"The 'frame_time' and 'interf_frame_time' parameters in sim_radar() have been moved to the Radar constructor and are no longer used here. "
309-
"These parameters will be ignored. Please set frame_time and interf_frame_time when creating the Radar object: "
310-
"Radar(transmitter, receiver, frame_time=your_value). "
311-
"These parameters will be removed in a future version.",
312-
DeprecationWarning,
313-
stacklevel=2
314-
)
315-
316304
# Validate free tier limitations
317305
validate_free_tier_limits(radar, targets)
318306

src/radarsimpy/simulator_rcs.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ cpdef sim_rcs(
131131
"Current limitation: Maximum 3 targets\n"
132132
"Your scene: {} targets\n\n"
133133
"This limitation helps maintain reasonable simulation times in the trial version.\n"
134-
"To simulate more targets, please upgrade to the Standard Version:\n"
134+
"To simulate more targets, please purchase a license:\n"
135135
"→ https://radarsimx.com/product/radarsimpy/\n"
136136
.format(len(targets))
137137
)

0 commit comments

Comments
 (0)