Skip to content

Commit

Permalink
#1 Removed old TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
arnegue committed Apr 17, 2024
1 parent 1f8cecd commit 57f0f36
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions seatalk/seatalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from device import TaskDevice
from nmea import nmea_datagram
import seatalk
import seatalk.datagrams.seatalk_datagram # TODO remove when #1 is finished
from seatalk.datagrams.seatalk_datagram import SeatalkDatagram
from seatalk import *
from seatalk.seatalk_exceptions import SeatalkException, NoCorrespondingNMEASentence, DataNotRecognizedException


Expand All @@ -30,11 +30,6 @@ def write_raw_seatalk(self, rec, attribute, data, ingoing):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if len(self.__class__._seatalk_datagram_map) == 0:
for name, obj in inspect.getmembers(seatalk.datagrams.seatalk_datagram): # TODO remove when #1 is finished
# Abstract, non-private SeatalkDatagrams
if inspect.isclass(obj) and issubclass(obj, SeatalkDatagram) and not inspect.isabstract(obj) and obj.__name__[0] != '_':
self.__class__._seatalk_datagram_map[obj.seatalk_id] = obj

for name, obj in inspect.getmembers(seatalk):
# Abstract, non-private SeatalkDatagrams
if inspect.isclass(obj) and issubclass(obj, SeatalkDatagram) and not inspect.isabstract(obj) and obj.__name__[0] != '_':
Expand Down

0 comments on commit 57f0f36

Please sign in to comment.