Skip to content

Get correct append mode#749

Merged
RubelMozumder merged 1 commit intomasterfrom
FixAutoAddAppendMode
Mar 17, 2026
Merged

Get correct append mode#749
RubelMozumder merged 1 commit intomasterfrom
FixAutoAddAppendMode

Conversation

@RubelMozumder
Copy link
Collaborator

This PR fixes a bug: writes always append=True, if append comes in kwargs.

And uses the same syntax to get append from kwargs.

Copilot AI review requested due to automatic review settings March 17, 2026 15:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an issue in the dataconverter convert() flow where providing append via kwargs could incorrectly force append mode even when append=False, impacting both root attribute tagging and the HDF5 write mode.

Changes:

  • Use kwargs.get("append", False) to correctly propagate the boolean append value to root attributes.
  • Use kwargs.get("append", False) to correctly propagate the boolean append value to Writer(..., append=...).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@mkuehbach mkuehbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, please merge

@RubelMozumder RubelMozumder merged commit 0f39112 into master Mar 17, 2026
12 of 21 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.

3 participants