Skip to content

feat: keep Neware cell temperature and other aux channels in neware_nda (#1184) - #1201

Merged
jepegit merged 1 commit into
jepegit:masterfrom
Allan-dq:1184-neware-temperature
Nov 13, 2026
Merged

jepegit merged 1 commit into
jepegit:masterfrom
Allan-dq:1184-neware-temperature

Conversation

@Allan-dq

Copy link
Copy Markdown
Contributor

Closes #1184

What changed

  • neware_nda.declarations() now declares an aux_map for the aux channels fastnda decodes, so harmonize() keeps them instead of dropping them with a warning:
    • aux<id>_temperature_cell_degC → aux_temperature_cell
    • aux<id>_temperature_CPU_degC → aux_temperature_cpu
    • aux<id>_single_cell_voltage_V → aux_potential_single_cell (not mapped onto potential)
  • A second cell probe is named from its channel id: aux2_temperature_cell_degC → aux_temperature_2. Only the first probe is aux_temperature_cell.
  • Extra CPU or single-cell-voltage channels get the channel id as a suffix (e.g. aux_temperature_cpu_3). Happy to change that if you prefer another name.
  • Other aux names (setpoint temperature, humidity) are not mapped. Files without aux columns get an empty aux_map, as before.
  • No summary columns and no raw-plot preset.
  • HISTORY.md entry and test-registry rows.

Test plan

  • New tests in tests/test_neware_nda_two_stage.py: the mapping, the second probe, unknown aux names, files without aux columns, and declarations after parse().
  • BTS85 .ndax in testdata/data: aux_temperature_cell 25.6–27.0 °C, aux_temperature_cpu 24.0–26.5 °C, potential unchanged; 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.

…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
jepegit enabled auto-merge (squash) November 13, 2026 06:50
@jepegit
jepegit merged commit 8ad5773 into jepegit:master Nov 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Load the measured cell temperature

2 participants