Appreciate the clarification. As you probably figured out, my issues actually stemmed from minor hardware issues. I would like to continue on in helping to develop open source tools to help dial in air/fuel on ME7. I was able to create a KFLF version for ME7.5 1.8T no problem. The reason being, we have additional ranges on this load/air correction map that could help smooth things out.
The obvious next step is to create the inverse map using the same logic, so we can try and determine when we have an air/load correction situation vs just a non-linearity issue with injector pulse. My first attempt to do this works in continuous mode, but it provides no output in other modes. Do you think this is because calc_ranges() doesn't tolerate the small floating points used in IOT of FKKVS? It's the best guess I have at this point. Appreciate the code!
$ trim-heatmap-fkkvs/src/heatmap.py log.csv --text -s1
Empty DataFrame
Columns: []
Index: []
$ trim-heatmap-fkkvs/src/heatmap.py log.csv -s1
Traceback (most recent call last):
File "/home/tuning/trim-heatmap-fkkvs/src/heatmap.py", line 255, in <module>
main()
File "/home/tuning/trim-heatmap-fkkvs/src/heatmap.py", line 246, in main
sbs.heatmap(heatmap, annot=(not args.continuous), center=0, cmap='PiYG', cbar_kws={'label': '% trim'}).invert_yaxis()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/seaborn/matrix.py", line 446, in heatmap
plotter = _HeatMapper(data, vmin, vmax, cmap, center, robust, annot, fmt,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/seaborn/matrix.py", line 163, in __init__
self._determine_cmap_params(plot_data, vmin, vmax,
File "/usr/lib/python3/dist-packages/seaborn/matrix.py", line 202, in _determine_cmap_params
vmin = np.nanmin(calc_data)
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/numpy/lib/nanfunctions.py", line 343, in nanmin
res = np.fmin.reduce(a, axis=axis, out=out, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: zero-size array to reduction operation fmin which has no identity