As observed, the message indicates a failure in processing the file, leading to the checksum being skipped and an empty table in the database.
Running the test script test_002_decode.py produces a similar output. However, the test passes because this failure does not raise any errors.
When using the function
aisdb.database.decode_msgs()
to decode and process .nm4 and .nmea files, the following message is prompted:This results in an empty table being created in the SQLite database.
The issue can be reproduced with the following code,:
Content in
sample_data.nm4
is:Expected the file should be processed and data should be populated in the database.
Actual output:
As observed, the message indicates a failure in processing the file, leading to the checksum being skipped and an empty table in the database. Running the test script
test_002_decode.py
produces a similar output. However, the test passes because this failure does not raise any errors.Environment: