Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Oct 21, 2024
1 parent 664ddd6 commit 65df1f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions pacman/model/resources/shared_sdram.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from copy import deepcopy
import math
from typing import Any, Dict, Optional, Self, TextIO, Union

Expand Down Expand Up @@ -43,7 +42,7 @@ class SharedSDRAM(AbstractSDRAM):
"_shared"
)

def __init__(self, shared: Dict[str,AbstractSDRAM],
def __init__(self, shared: Dict[str, AbstractSDRAM],
per_core: Optional[AbstractSDRAM] = None) -> None:
"""
Creates an SDRAM of both per_core and shared requirements.
Expand All @@ -65,7 +64,6 @@ def __init__(self, shared: Dict[str,AbstractSDRAM],
else:
self._per_core = per_core


@overrides(AbstractSDRAM.get_total_sdram)
def get_total_sdram(self, n_timesteps: Optional[int]) -> int:
running = self._per_core.get_total_sdram(n_timesteps)
Expand Down
1 change: 1 addition & 0 deletions pacman/model/resources/variable_sdram.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from .abstract_sdram import AbstractSDRAM
from .constant_sdram import ConstantSDRAM


def _ceil(value: Union[int, float, numpy.integer, numpy.floating]) -> int:
return math.ceil(value)

Expand Down
4 changes: 2 additions & 2 deletions pacman/utilities/json_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
from spinn_utilities.typing.json import JsonArray, JsonObject

from pacman.data import PacmanDataView
from pacman.model.graphs.machine import MachineVertex, SimpleMachineVertex
from pacman.model.graphs.machine import SimpleMachineVertex
from pacman.model.placements.placement import Placement
from pacman.model.resources import (
IPtagResource, ReverseIPtagResource, VariableSDRAM)
IPtagResource, ReverseIPtagResource)
from pacman.model.routing_info import BaseKeyAndMask


Expand Down

0 comments on commit 65df1f2

Please sign in to comment.