Skip to content

Commit

Permalink
fixes chimps lazyness
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-stokes committed Jul 17, 2019
1 parent ec5ec1c commit 050c9b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pacman/model/resources/variable_sdram.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def __add__(self, other):
self._per_timestep_sdram)
else:
return VariableSDRAM(
self._fixed_sdram + other._fixed_sdram,
self._per_timestep_sdram + other._per_timestep_sdram)
self._fixed_sdram + other.fixed,
self._per_timestep_sdram + other.per_timestep)

def __sub__(self, other):
if isinstance(other, ConstantSDRAM):
Expand All @@ -77,8 +77,8 @@ def __sub__(self, other):
self._per_timestep_sdram)
else:
return VariableSDRAM(
self._fixed_sdram - other._fixed_sdram,
self._per_timestep_sdram - other._per_timestep_sdram)
self._fixed_sdram - other.fixed,
self._per_timestep_sdram - other.per_timestep)

def sub_from(self, other):
if isinstance(other, ConstantSDRAM):
Expand All @@ -87,5 +87,5 @@ def sub_from(self, other):
0 - self._per_timestep_sdram)
else:
return VariableSDRAM(
other._fixed_sdram - self._fixed_sdram,
other._per_timestep_sdram - self._per_timestep_sdram)
other.fixed - self._fixed_sdram,
other.per_timestep - self._per_timestep_sdram)

0 comments on commit 050c9b5

Please sign in to comment.