Skip to content

Sort radio signals#82

Merged
pablospe merged 1 commit intomainfrom
pablo/sorted_radios
Dec 9, 2024
Merged

Sort radio signals#82
pablospe merged 1 commit intomainfrom
pablo/sorted_radios

Conversation

@pablospe
Copy link
Contributor

@pablospe pablospe commented Dec 9, 2024

Ensure WiFi and Bluetooth signals are sorted by timestamp.

@mihaidusmanu
Copy link
Collaborator

So the read_wifi method in navvis class is not returning ordered by timestamp? That's intriguing...

Seems like since Python 3.7, python actually keeps the order of insertion for dicts (https://realpython.com/python-ordereddict/) so the sorting approach here should work as expected

@pablospe
Copy link
Contributor Author

pablospe commented Dec 9, 2024

So the read_wifi method in navvis class is not returning ordered by timestamp? That's intriguing...

I think it has to do with this line (here):

scan_time_start_us=(timestamp_us - time_offset_us)

@pablospe pablospe merged commit 67af6f3 into main Dec 9, 2024
2 checks passed
@pablospe pablospe deleted the pablo/sorted_radios branch December 9, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants