Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jan 8, 2024
1 parent 8a92239 commit 85209e8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spinnaker_graph_front_end/utilities/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from pacman.model.graphs.machine import MachineVertex
from spinn_front_end_common.utilities.constants import SIMULATION_N_BYTES
from spinn_front_end_common.interface.ds import DataSpecificationGenerator
from spinn_front_end_common.interface.simulation.simulation_utilities import (
get_simulation_header_array, get_simulation_header_array_no_timestep)


def generate_system_data_region(spec, region_id, machine_vertex):
def generate_system_data_region(spec: DataSpecificationGenerator,
region_id: int, machine_vertex: MachineVertex):
"""
Generate a system data region for time-based simulations.
Expand All @@ -38,7 +41,9 @@ def generate_system_data_region(spec, region_id, machine_vertex):
machine_vertex.get_binary_file_name()))


def generate_steps_system_data_region(spec, region_id, machine_vertex):
def generate_steps_system_data_region(
spec: DataSpecificationGenerator, region_id: int,
machine_vertex: MachineVertex):
"""
Generate a system data region for step-based simulations.
Expand Down

0 comments on commit 85209e8

Please sign in to comment.