Skip to content

Load the measured cell temperature #1184

Closed

Description

@inger-emma

Our new Neware testers log temperature which is a very useful parameter. This should at least be read by cellpy and be possible to show in the raw plot/raw data.

Image

Activity

  1. Allan-dq commented on Nov 9, 2026

    @Allan-dq
    Contributor

    Hi! I'd like to take this one, if nobody else is on it.

    I checked it with the .ndax file that is already in the repo (testdata/data/20260302_IFE_BTS85_2_9_8_1.ndax). The bundled fastnda reader decodes three aux channels from it: aux1_temperature_cell_degC (channel type 1122, about 26.7 °C), aux1_temperature_CPU_degC (102) and aux1_single_cell_voltage_V (103). With cellpy.get(..., instrument="neware_nda") all three are dropped in harmonize() ("dropping vendor column(s) the loader does not recognise"), because neware_nda.declarations() has no aux_map.

    Proposed fix, following the arbin_res aux precedent:

    • neware_nda declares an aux_map for the fastnda aux columns, so aux<N>_temperature_cell_degC ends up in raw as aux_temperature_cell (the name cellpycore already has in RawCols). The other channels get aux_<quantity>_<name> names too (e.g. aux_temperature_cpu, aux_potential_single_cell) instead of being dropped.
    • Files without aux channels load exactly as today.
    • Tests: the existing .ndax fixture (column present, values in the expected range) and a declaration-level test for a frame without aux columns.

    I tried this locally with a patched declaration and the temperature column comes through, so raw_plot(c, y="aux_temperature_cell") should then work. Filling the summary temperature_cell_mean/temperature_cell_last columns and a temperature preset for raw_plot could be follow-ups if you want them.

    Three questions before I start:

    1. Is aux_temperature_cell the name you want? How should a second cell thermocouple be named (aux_temperature_cell_2)?
    2. Should the CPU temperature and single-cell voltage channels be kept as above, or listed in dropped?
    3. Is this BTS85 .ndax representative of the new testers in the issue? If they write something else (an .nda, or a CSV/xlsx export with a T1 column), a small anonymised sample would help me cover that format too.
  2. jepegit commented on Nov 12, 2026

    @jepegit
    Owner

    Hi @Allan-dq, Great that you can have a go at this. For your information, this is what my coding agent said regarding your questions:

    Thanks, please go ahead on neware_nda only.

    1. Yes, aux_temperature_cell for the cell thermocouple. That is the RawCols name, and the summary columns temperature_cell_* are defined off that column alone. Do not fill those summary columns here, and do not add a raw-plot preset. raw_plot(c, y="aux_temperature_cell") is the check. A second cell probe is aux_temperature_ from the vendor channel id (Arbin style: Aux_Temperature_2 → aux_temperature_2), not aux_temperature_cell_2. Only the unsuffixed name is the cell signal.
    2. Keep the CPU temperature and the single-cell voltage in aux_map: aux_temperature_cpu andaux_potential_single_cell. Do not map the single-cell voltage onto potential. Do not list them in dropped, and do not leave them undeclared (that warns on every load). Files with no aux columns stay unchanged.
    3. The BTS85 .ndax already in the repo is the fixture for this issue. .nda is the same loader when the fastnda names match. @inger-emma, do the new testers write that .ndax, or a CSV/xlsx with a T1 column? A different export is a follow-up and needs a small anonymised file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions