Skip to content
Snippets Groups Projects
Commit 492e275d authored by Dominic Kempf's avatar Dominic Kempf
Browse files

pep8

parent bcf54425
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ class PerftoolOption(ImmutableRecord): ...@@ -16,7 +16,7 @@ class PerftoolOption(ImmutableRecord):
_type=type(None), _type=type(None),
): ):
_type = type(default) _type = type(default)
if _type is type(None): if issubclass(_type, type(None)):
_type = str _type = str
ImmutableRecord.__init__(self, ImmutableRecord.__init__(self,
helpstr=helpstr, helpstr=helpstr,
...@@ -127,7 +127,7 @@ def set_option(key, value): ...@@ -127,7 +127,7 @@ def set_option(key, value):
any other options. any other options.
""" """
global _options global _options
_options = process_options(_options).copy(**{key:value}) _options = process_options(_options).copy(**{key: value})
def get_option(key): def get_option(key):
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# TODO! # TODO!
# * get rid of the underscores in names # * get rid of the underscores in names
# * Pass the entire kernel object into the strategy thing # * Pass the entire kernel object into the strategy thing
import itertools import itertools
...@@ -83,4 +83,4 @@ def _permute_backward(t, perm): ...@@ -83,4 +83,4 @@ def _permute_backward(t, perm):
tmp = [None] * len(t) tmp = [None] * len(t)
for i, pos in enumerate(perm): for i, pos in enumerate(perm):
tmp[pos] = t[i] tmp[pos] = t[i]
return tuple(tmp) return tuple(tmp)
\ No newline at end of file
...@@ -117,4 +117,3 @@ def decide_vectorization_strategy(): ...@@ -117,4 +117,3 @@ def decide_vectorization_strategy():
import itertools as it import itertools as it
for restriction in it.product(res, res): for restriction in it.product(res, res):
decide_stage_vectorization_strategy(sumfacts, 3, restriction) decide_stage_vectorization_strategy(sumfacts, 3, restriction)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment