• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SpiNNakerManchester / SpiNNMan / 6574804013

19 Oct 2023 12:47PM UTC coverage: 51.937% (+1.2%) from 50.777%
6574804013

Pull #327

github

Christian-B
typing changes
Pull Request #327: Type Annotations and Checking

105 of 1288 branches covered (0.0%)

Branch coverage included in aggregate %.

2375 of 2375 new or added lines in 180 files covered. (100.0%)

4775 of 8108 relevant lines covered (58.89%)

0.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/spinnman/processes/load_fixed_route_routing_entry_process.py
1
# Copyright (c) 2017 The University of Manchester
2
#
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
# you may not use this file except in compliance with the License.
5
# You may obtain a copy of the License at
6
#
7
#     https://www.apache.org/licenses/LICENSE-2.0
8
#
9
# Unless required by applicable law or agreed to in writing, software
10
# distributed under the License is distributed on an "AS IS" BASIS,
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14

15
from spinn_machine import FixedRouteEntry, Router
1✔
16
from spinnman.messages.scp.impl import FixedRouteInit
1✔
17
from spinnman.processes import AbstractMultiConnectionProcess
1✔
18

19

20
class LoadFixedRouteRoutingEntryProcess(AbstractMultiConnectionProcess):
1✔
21
    """
22
    Load a fixed route routing entry onto a chip.
23
    """
24
    __slots__ = ()
1✔
25

26
    def load_fixed_route(
1✔
27
            self, x: int, y: int, fixed_route: FixedRouteEntry,
28
            app_id: int = 0):
29
        """
30
        :param int x: The x-coordinate of the chip, between 0 and 255;
31
            this is not checked due to speed restrictions.
32
        :param int y: The y-coordinate of the chip, between 0 and 255;
33
            this is not checked due to speed restrictions.
34
        :param ~spinn_machine.FixedRouteEntry fixed_route:
35
            the fixed route entry
36
        :param int app_id: The ID of the application with which to associate
37
            the routes.  If not specified, defaults to 0.
38
        """
39
        route_entry = Router.convert_routing_table_entry_to_spinnaker_route(
×
40
            fixed_route)
41
        with self._collect_responses():
×
42
            self._send_request(FixedRouteInit(x, y, route_entry, app_id))
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc