From 8adab6a0546a6552fe142b3c60560d2c88984564 Mon Sep 17 00:00:00 2001 From: Grigori Fursin Date: Tue, 29 Oct 2024 11:08:53 +0100 Subject: [PATCH] CM/CMX V3.2.9 - fixed minor bug with JSON console output - fixed minor bug with console in cmind.x function --- cm/CHANGES.md | 4 ++++ cm/cmind/__init__.py | 2 +- cm/cmind/cli.py | 15 --------------- cm/cmind/core.py | 6 +++--- cm/setup.py | 1 - 5 files changed, 8 insertions(+), 20 deletions(-) diff --git a/cm/CHANGES.md b/cm/CHANGES.md index 537ff2f58..bc578b9cf 100644 --- a/cm/CHANGES.md +++ b/cm/CHANGES.md @@ -1,3 +1,7 @@ +## V3.2.9 + - fixed minor bug with JSON console output + - fixed minor bug with console in cmind.x function + ## V3.2.8 - fixed Docker test for mlperf-inference with cm4mlops - minor improvements diff --git a/cm/cmind/__init__.py b/cm/cmind/__init__.py index 5b70144f0..4172edc0d 100644 --- a/cm/cmind/__init__.py +++ b/cm/cmind/__init__.py @@ -2,7 +2,7 @@ # # Written by Grigori Fursin -__version__ = "3.2.8" +__version__ = "3.2.9" from cmind.core import access from cmind.core import x diff --git a/cm/cmind/cli.py b/cm/cmind/cli.py index be9ea72a9..7e03d2347 100644 --- a/cm/cmind/cli.py +++ b/cm/cmind/cli.py @@ -193,21 +193,6 @@ def run_experiment(argv = None): return run(['run', 'experiment'] + argv) -############################################################ -def run_ff(argv = None): - """ - """ - - # Access CMX - if argv is None: - argv = sys.argv[1:] - - x = 'lex' - if len(argv) >0 and argv[0].startswith('_misc'): - x = argv[0] - - return runx(['run', 'f'+x+'.flow'] + argv) - ############################################################ def parse(cmd): """ diff --git a/cm/cmind/core.py b/cm/cmind/core.py index a8e109631..d4a15c4dc 100644 --- a/cm/cmind/core.py +++ b/cm/cmind/core.py @@ -1656,7 +1656,7 @@ def access(i): return cm.access(i) ############################################################ -def x(i): +def x(i, out = None): """ Automatically initialize CM and run automations without the need to initialize and customize CM class. @@ -1668,9 +1668,9 @@ def x(i): global cm if cm is None: - cm=CM() + cm = CM() - return cm.x(i) + return cm.x(i, out = out) ############################################################ def error(i): diff --git a/cm/setup.py b/cm/setup.py index 1a4bccde7..55895c69c 100644 --- a/cm/setup.py +++ b/cm/setup.py @@ -101,7 +101,6 @@ def run(self): "cm = cmind.cli:run", "cmx = cmind.cli:runx", "cmr = cmind.cli:run_script", - "flexflow = cmind.cli:run_ff", "cmrd = cmind.cli:docker_script", "cmg = cmind.cli:gui_script", "cme = cmind.cli:run_experiment"