Repository navigation
feat: keep Neware cell temperature and other aux channels in neware_nda (#1184) - #1201
Merged
Merged
Conversation
…da (jepegit#1184) fastnda decodes the aux channels of .nda/.ndax files (aux<id>_temperature_cell_degC, aux<id>_temperature_CPU_degC, aux<id>_single_cell_voltage_V), but neware_nda.declarations() declared no aux_map, so harmonize() dropped them with a warning. Map them to aux_temperature_cell, aux_temperature_cpu and aux_potential_single_cell. A second cell probe is named from its channel id (aux_temperature_<id>), so only the first probe is the cell signal. Files without aux columns get an empty aux_map, as before.
jepegit
enabled auto-merge (squash)
November 13, 2026 06:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1184
What changed
neware_nda.declarations()now declares anaux_mapfor the aux channels fastnda decodes, soharmonize()keeps them instead of dropping them with a warning:aux<id>_temperature_cell_degC→aux_temperature_cellaux<id>_temperature_CPU_degC→aux_temperature_cpuaux<id>_single_cell_voltage_V→aux_potential_single_cell(not mapped ontopotential)aux2_temperature_cell_degC→aux_temperature_2. Only the first probe isaux_temperature_cell.aux_temperature_cpu_3). Happy to change that if you prefer another name.aux_map, as before.HISTORY.mdentry and test-registry rows.Test plan
tests/test_neware_nda_two_stage.py: the mapping, the second probe, unknown aux names, files without aux columns, and declarations afterparse()..ndaxintestdata/data:aux_temperature_cell25.6–27.0 °C,aux_temperature_cpu24.0–26.5 °C,potentialunchanged; no aux column in the "does not recognise" warning;raw_plot(c, y="aux_temperature_cell")draws.pytest -m essential: same results as on master on my machine. The only failures there are Arbin.res/SQL tests that need mdbtools/unixODBC, which my Mac does not have.