From 7c11d3355889d6ea3af9d78a7da5560e6e7f27ff Mon Sep 17 00:00:00 2001 From: "anton.travleev" Date: Thu, 26 Sep 2019 08:59:37 +0200 Subject: [PATCH] Bugfix for issue #4 --- numjuggler/main.py | 2 +- numjuggler/parser.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/numjuggler/main.py b/numjuggler/main.py index 6d1ac0f..e59ff45 100644 --- a/numjuggler/main.py +++ b/numjuggler/main.py @@ -594,7 +594,7 @@ def cfunc(n): c.get_values() if c.dtype == 'Mn': inp = [] - inp.append(c.input[0].replace('} ', + inp.append(c.input[0].replace('}', '} 1001 1.0 $ msimpl ', 1)) for i in c.input[1:]: inp.append('c msimpl ' + i) diff --git a/numjuggler/parser.py b/numjuggler/parser.py index 85a75fc..704e8c8 100644 --- a/numjuggler/parser.py +++ b/numjuggler/parser.py @@ -1051,7 +1051,7 @@ def _split_data(input_): elif (t[0][0].lower() == 'm' and 'mode' not in t[0].lower() and 'mesh' not in t[0].lower()): - # Mn, MTn or MPNn card + # This is the Mn, MTn or MPNn card ms = _get_int(t[0]) inpt = inpt.replace(ms, tp, 1) vals.append((int(ms), 'mat'))