Skip to content

Commit 2a299fc

Browse files
committed
Bugfixes
1 parent 6c4479f commit 2a299fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

morphers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ def _get_L1_data(self, name):
185185
if not os.path.isfile(file):
186186
return None
187187
result = numpy.load(file)
188-
result.flags.writable = False
189-
return None
188+
result.flags.writeable = False
189+
return result
190190

191191
def update_L1(self):
192192
self.basis = self._get_L1_data(self.L1)

morphing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def _calc_sliding_influence(self, data):
446446
if isinstance(calc, str):
447447
# Check for eval safety. Attacks like 9**9**9 are still possible, but quite useless
448448
if eval_unsafe.search(calc):
449-
logger.error("bad calc: ", calc)
449+
logger.error("bad calc: %s", calc)
450450
return 0
451451
calc = compile(calc, "", "eval")
452452
data["calc"] = calc

0 commit comments

Comments
 (0)