Function trx::append_dps_to_zip

Function Documentation

void trx::append_dps_to_zip(const std::string &path, const std::map<std::string, TypedArray> &dps, TrxCompression compression = TrxCompression::None, bool overwrite = true)

Append per-streamline data arrays to an existing TRX zip archive.

Opens the archive without truncating it, writes one “dps/{name}.{dtype}” entry per array (or “dps/{name}.{ncols}.{dtype}” for multi-column arrays), then commits. header.json is not modified; dps entries are discovered at load time by directory scan.

Parameters:
  • path – Path to an existing TRX zip file (.trx).

  • dps – Map from array name to TypedArray (e.g. AnyTrxFile::data_per_streamline).

  • compression – Compression method for new entries (default: TrxCompression::None).

  • overwrite – If false, existing entries with the same name are skipped (default: true).

Throws:

TrxIOError – on any zip failure.