Skip to content

Commit 0d4e745

Browse files
MarekPietarlubos
authored andcommitted
scripts: nrf_profiler: Fix usage of deprecated np.float
The `np.float` was removed (it was a deprecated alias for `float`). Signed-off-by: Marek Pieta <[email protected]>
1 parent 842f499 commit 0d4e745

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/nrf_profiler/stats_nordic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ def _get_timestamps(self, event_name, event_state, start_meas, end_meas):
7171

7272
if event_state == EventState.SUBMIT:
7373
timestamps = np.fromiter(map(lambda x: x.submit.timestamp, trackings),
74-
dtype=np.float)
74+
dtype=float)
7575
elif event_state == EventState.PROC_START:
7676
timestamps = np.fromiter(map(lambda x: x.proc_start_time, trackings),
77-
dtype=np.float)
77+
dtype=float)
7878
elif event_state == EventState.PROC_END:
7979
timestamps = np.fromiter(map(lambda x: x.proc_end_time, trackings),
80-
dtype=np.float)
80+
dtype=float)
8181

8282
timestamps = timestamps[np.where((timestamps > start_meas)
8383
& (timestamps < end_meas))]

0 commit comments

Comments
 (0)