pacman.utilities.file_format_converters package

Submodules

pacman.utilities.file_format_converters.convert_to_file_core_allocations module

class pacman.utilities.file_format_converters.convert_to_file_core_allocations.ConvertToFileCoreAllocations[source]

Bases: object

Converts placements to core allocations

pacman.utilities.file_format_converters.convert_to_file_machine module

class pacman.utilities.file_format_converters.convert_to_file_machine.ConvertToFileMachine[source]

Bases: object

Converter from memory machine to file machine

pacman.utilities.file_format_converters.convert_to_file_machine_graph module

class pacman.utilities.file_format_converters.convert_to_file_machine_graph.ConvertToFileMachineGraph[source]

Bases: object

Converts a memory based graph into a file based graph

pacman.utilities.file_format_converters.convert_to_file_machine_graph_pure_multicast module

class pacman.utilities.file_format_converters.convert_to_file_machine_graph_pure_multicast.ConvertToFileMachineGraphPureMulticast[source]

Bases: object

Converts a memory based graph into a file based graph

pacman.utilities.file_format_converters.convert_to_file_placement module

class pacman.utilities.file_format_converters.convert_to_file_placement.ConvertToFilePlacement[source]

Bases: object

Converts memory placements to file placements

pacman.utilities.file_format_converters.convert_to_java_machine module

class pacman.utilities.file_format_converters.convert_to_java_machine.ConvertToJavaMachine[source]

Bases: object

Converter from memory machine to java machine

static do_convert(machine, file_path, progress=None)[source]

Runs the code to write the machine in Java readable JSON.

Parameters:
  • machine (spinn_machine.machine.Machine) – Machine to convert
  • file_path (str) – Location to write file to. Warning will overwrite!

pacman.utilities.file_format_converters.convert_to_memory_multi_cast_routes module

class pacman.utilities.file_format_converters.convert_to_memory_multi_cast_routes.ConvertToMemoryMultiCastRoutes[source]

Bases: object

Converts between file routing paths and the PACMAN representation of the routes

pacman.utilities.file_format_converters.convert_to_memory_placements module

class pacman.utilities.file_format_converters.convert_to_memory_placements.ConvertToMemoryPlacements[source]

Bases: object

Takes the file-based placements, machine, machine graph and constraints and builds a memory placements object

pacman.utilities.file_format_converters.create_file_constraints module

class pacman.utilities.file_format_converters.create_file_constraints.CreateConstraintsToFile[source]

Bases: object

Creates constraints file from the machine and machine graph

Module contents

class pacman.utilities.file_format_converters.ConvertToFileCoreAllocations[source]

Bases: object

Converts placements to core allocations

class pacman.utilities.file_format_converters.ConvertToFileMachine[source]

Bases: object

Converter from memory machine to file machine

class pacman.utilities.file_format_converters.ConvertToFileMachineGraph[source]

Bases: object

Converts a memory based graph into a file based graph

class pacman.utilities.file_format_converters.ConvertToFilePlacement[source]

Bases: object

Converts memory placements to file placements

class pacman.utilities.file_format_converters.ConvertToFileMachineGraphPureMulticast[source]

Bases: object

Converts a memory based graph into a file based graph

class pacman.utilities.file_format_converters.ConvertToMemoryMultiCastRoutes[source]

Bases: object

Converts between file routing paths and the PACMAN representation of the routes

class pacman.utilities.file_format_converters.ConvertToMemoryPlacements[source]

Bases: object

Takes the file-based placements, machine, machine graph and constraints and builds a memory placements object

class pacman.utilities.file_format_converters.CreateConstraintsToFile[source]

Bases: object

Creates constraints file from the machine and machine graph