Skip to content

Commit

Permalink
Merge pull request #121 from coneoproject/citations-module
Browse files Browse the repository at this point in the history
* citations-module:
  Fix some flake8 errors
  Migrate citations import to firedrake_citations
  • Loading branch information
wence- committed Nov 10, 2017
2 parents 029d2af + a182af3 commit 5bb1b30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion coffee/citations.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def update_citations(params):

# Firedrake
try:
from firedrake import Citations
from firedrake_citations import Citations
rewrite = params.get('rewrite', 0)
nozeros = params.get('dead_ops_elimination', False)
align_pad = params.get('align_pad', False)
Expand Down
2 changes: 1 addition & 1 deletion coffee/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def _track_nz_expr(self, node, nz_syms, nest):
try:
# Am I tracking the loop with iteration variable == /r/ ?
loop = [l for l, p in nest if l.dim == r][0]
except:
except IndexError:
# No, so I just assume it covers the entire non zero-valued region
itspace.append([(r, nz_b) for nz_b in nz_bs])
continue
Expand Down
2 changes: 1 addition & 1 deletion coffee/vectorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def __init__(self, tensor_size):

def get_reg(self):
if len(self.var) == 0:
l = self.ntot * 2
l = self.ntot * 2 # noqa: E741
self.var += [self.i["reg"](v) for v in range(self.ntot, l)]
self.ntot = l
return self.var.pop(0)
Expand Down

0 comments on commit 5bb1b30

Please sign in to comment.