Skip to content

Commit

Permalink
Fix minor codestyle issues (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
a5kin committed Mar 2, 2019
1 parent 0f10fa8 commit aab29ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion tests/core/test_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def test_broad_bit_width(self):
prop = IntegerProperty(max_val=10e23)
self.assertEqual(prop.bit_width, 80, "Wrong bit width")
self.assertEqual(prop.width, 3, "Wrong width")
self.assertEqual(prop.best_type[2], "int", "Wrong type")

def test_set(self):
"""Test we can set property as class descriptor."""
Expand Down
1 change: 1 addition & 0 deletions xentica/core/topology/lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class Lattice(DimensionsMixin, BscaDetectorMixin, metaclass=abc.ABCMeta):
def _define_constants_once(self):
"""Define field size conctants in C code."""
def get_size(i):
"""Get the field size of along i-th dimension."""
return lambda x: x.size[i]
for i in range(self.bsca.topology.dimensions):
constant = Constant("%s%d" % (self.width_prefix, i),
Expand Down

0 comments on commit aab29ba

Please sign in to comment.