Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hwgraph: Do not enable same-chassis feature for a single node
As per issue#41, when tracing with a single server, the --same-chassis can be engaged generating a crash like: ~/Devel/hwbench (various)$ python3 -m graph.hwgraph graph --outdir criteo/arno_out --traces ~/Téléchargements/results.json:Arno:BMC.Server environment: All traces are from the same chassis (GYLGS63), enabling --same-chassis feature Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/home/e.velu/Devel/hwbench/graph/hwgraph.py", line 380, in <module> main() File "/home/e.velu/Devel/hwbench/graph/hwgraph.py", line 376, in main args.func(args) File "/home/e.velu/Devel/hwbench/graph/hwgraph.py", line 61, in render_traces rendered_graphs += graph_environment(args, output_dir) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/e.velu/Devel/hwbench/graph/hwgraph.py", line 234, in graph_environment rendered_graphs += graph_chassis(args, bench_name, output_dir) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/e.velu/Devel/hwbench/graph/chassis.py", line 139, in graph_chassis y_serie = np.array(serie[trace.get_name()])[order] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^ IndexError: index 0 is out of bounds for axis 0 with size 0 This commit is adding a new condition to ensure the same-chassis feature is not engaged for a single system. Signed-off-by: Erwan Velu <e.velu@criteo.com>
- Loading branch information