diff --git a/Changelog.md b/Changelog.md index 5ff40373..9d28ccc3 100644 --- a/Changelog.md +++ b/Changelog.md @@ -10,7 +10,7 @@ Changelog and release history for libais * Cleanup nmea_messages.py * Use a logger in python * Factor out ais_bitset.cpp -* Stop calling ParseNmeaPayload mulitple times per message +* Stop calling ParseNmeaPayload multiple times per message * Stay far away from -ffast-math * Fixes for CMake builds @@ -99,11 +99,11 @@ Changelog and release history for libais * Begin cleanup of test_libais.cpp * Almost all decoders require pad bits now * linted - lots of formatting changes -* Start implmenting Msg 17 GNSS differential corrections +* Start implementing Msg 17 GNSS differential corrections * Convert FIX to TODO and put (schwehr) after each to assign them to myself. * remove bool casting of bitset[offset] * Implemented 8 1 26 -* Clean up c++ logical oprators. Do not use and, or, and not +* Clean up c++ logical operators. Do not use and, or, and not * Message 24 needed pad. Fixed * Removed print() * remove almost all cout/cerr that were not in print() @@ -116,8 +116,8 @@ Changelog and release history for libais * ais.decode now requires the pad bits in python * Added RIS 8_200_{10,23,24,40,55} -* Implmented the rest of Circ 236 BBM -* Implmented all Circ 289 messages except ABM route and BBM env sensors +* Implemented the rest of Circ 236 BBM +* Implemented all Circ 289 messages except ABM route and BBM env sensors * Implemented AIS messages 6, 9, 10, 12, 15-17, 20-22, 23, 25-27. Still payload work to do. * Imported rolker's CMakeList.txt diff --git a/ais/compatibility/__init__.py b/ais/compatibility/__init__.py index dde19604..5e1f72fe 100644 --- a/ais/compatibility/__init__.py +++ b/ais/compatibility/__init__.py @@ -1,7 +1,7 @@ import warnings warnings.warn( - "The compatability module is deprecated and will be removed in 1.0", + "The compatibility module is deprecated and will be removed in 1.0", FutureWarning, stacklevel=2 ) diff --git a/ais/io.py b/ais/io.py index 3c61e5cf..9b8ee2d0 100644 --- a/ais/io.py +++ b/ais/io.py @@ -77,7 +77,7 @@ def open(name, mode='r', **kwargs): """Open a file containing NMEA and instantiate an instance of `NmeaFile()`. - Lke Python's `open()`, set the `mode` parameter to 'r' for normal reading or + Like Python's `open()`, set the `mode` parameter to 'r' for normal reading or or 'rU' for opening the file in universal newline mode. Args: @@ -136,8 +136,8 @@ def name(self): return self._fobj.name def close(self): - """Close the file-like object from which we are reading and dump whats left - in the queue.""" + """Close the file-like object from which we are reading and dump what is + left in the queue.""" return self._fobj.close() def __iter__(self): diff --git a/ais/stream/__init__.py b/ais/stream/__init__.py index 8a1271f2..905547fb 100644 --- a/ais/stream/__init__.py +++ b/ais/stream/__init__.py @@ -73,7 +73,7 @@ def __str__(self): return '%(description)s for %(timestamp)s: %(line_num)s: %(line)s, parts: %(parts)s' % self.kw class OnlyMessageEndError(StreamError): - description = 'Do not have the preceeding packets for' + description = 'Do not have the preceding packets for' def __str__(self): return '%(description)s for %(bufferSlot)s:\n%(line)s\n' % self.kw diff --git a/ais/stream/checksum.py b/ais/stream/checksum.py index be77ce80..5dff0bef 100755 --- a/ais/stream/checksum.py +++ b/ais/stream/checksum.py @@ -12,7 +12,7 @@ def checksumStr(data): """Take a NMEA 0183 string and compute the checksum. @param data: NMEA message. Leading ?/! and training checksum are optional @type data: str - @return: hexidecimal value + @return: hexadecimal value @rtype: str Checksum is calculated by xor'ing everything between ? or ! and the * diff --git a/src/libais/ais_py.cpp b/src/libais/ais_py.cpp index 56967083..e0f02d64 100644 --- a/src/libais/ais_py.cpp +++ b/src/libais/ais_py.cpp @@ -2547,7 +2547,7 @@ ais21_to_pydict(const char *nmea_payload, const size_t pad) { return dict; } -// 22 - 'F' - Channel mangement +// 22 - 'F' - Channel management PyObject* ais22_to_pydict(const char *nmea_payload, const size_t pad) { assert(nmea_payload); diff --git a/src/test/ais8_test.cc b/src/test/ais8_test.cc index d52b8ff4..3425be9e 100644 --- a/src/test/ais8_test.cc +++ b/src/test/ais8_test.cc @@ -78,7 +78,7 @@ void ValidateAis8_1_11( EXPECT_EQ(extended_water_level, msg->extended_water_level); } -// Internation Maritime Organization (IMO) Circ 289 meteorology and hydrography. +// International Maritime Organization (IMO) Circ 289 meteorology and hydrography. TEST(Ais8_1_11Test, DecodeAnything) { // clang-format off // !AIVDM,1,1,,A,8@2