Previous topic

spinnman.model.run_time_error module

Next topic

spinnman.constants module

This Page

spinnman.model.version_info module

Functions

asctime(([tuple]) -> string) Convert a time tuple to a string, e.g.
localtime(...) tm_sec,tm_wday,tm_yday,tm_isdst)
spinnman.model.version_info.asctime([tuple]) → string

Convert a time tuple to a string, e.g. ‘Sat Jun 06 16:26:11 1998’. When the time tuple is not present, current time as returned by localtime() is used.

spinnman.model.version_info.localtime([seconds]) → (tm_year,tm_mon,tm_mday,tm_hour,tm_min,

tm_sec,tm_wday,tm_yday,tm_isdst)

Convert seconds since the Epoch to a time tuple expressing local time. When ‘seconds’ is not passed in, convert the current time instead.

class spinnman.model.version_info.VersionInfo(version_data)[source]

Bases: object

Decodes SC&MP/SARK version information as returned by the SVER command

Parameters:version_data (bytearray) – bytes from an SCP packet containing version information
Raises spinnman.exceptions.SpinnmanInvalidParameterException:
 If the message does not contain valid version information

Attributes

build_date The build date of the software
hardware The hardware being run on
name The name of the software
p The processor id of the processor where the information was obtained
version_number The version number of the software
version_string The version information as text
x The x-coordinate of the chip where the information was obtained
y The y-coordinate of the chip where the information was obtained