Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,3 @@ def bytestring(self) -> bytes:
if self._database_path is not None:
data += self._database_path
return data

@staticmethod
def from_bytestring(
command_header: EIEIOCommandHeader, data: bytes,
offset: int) -> 'NotificationProtocolDatabaseLocation':
database_path = None
if len(data) - offset > 0:
raise Exception(
"https://github.com/SpiNNakerManchester/SpiNNMan/issues/424")
# database_path = data[offset:]
return NotificationProtocolDatabaseLocation(database_path)
3 changes: 1 addition & 2 deletions spinnman/messages/eieio/create_eieio_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ def read_eieio_command_message(
command_number = command_header.command

if command_number == EIEIO_COMMAND_IDS.DATABASE.value:
return NotificationProtocolDatabaseLocation.from_bytestring(
command_header, data, offset + 2)
return NotificationProtocolDatabaseLocation()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't that miss the content of the message?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you are claiming that the message is always empty... doesn't that fail in tests then since the tests will need to read the database at some point?

# Fill in buffer area with padding
elif command_number == EIEIO_COMMAND_IDS.EVENT_PADDING.value:
return PaddingRequest()
Expand Down
Loading