Skip to content

Added handling of in_library for extra sections in tsv format#1224

Closed
VisLab wants to merge 5 commits into
hed-standard:mainfrom
VisLab:remove_vis
Closed

Added handling of in_library for extra sections in tsv format#1224
VisLab wants to merge 5 commits into
hed-standard:mainfrom
VisLab:remove_vis

Conversation

@VisLab

@VisLab VisLab commented Feb 18, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds TSV-specific handling for in_library provenance in schema “extras” sections (Sources, Prefixes, AnnotationPropertyExternal), aiming to ensure correct merging/filtering behavior for withStandard library schemas.

Changes:

  • Add in_library column to extras DataFrames when loading TSV library schemas.
  • Filter extras on unmerged TSV saves to output only library entries, and drop in_library from TSV output.
  • Add a new TSV extras roundtrip test suite covering read/write and merged/unmerged scenarios.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
hed/schema/schema_io/df2schema.py Adds in_library augmentation for extras during TSV load.
hed/schema/schema_io/schema2df.py Filters extras for unmerged saves and strips in_library from TSV output.
tests/schema/test_schema_extras_tsv_roundtrip.py New tests for TSV extras roundtrip and serialization expectations.

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

Comment thread hed/schema/schema_io/df2schema.py Outdated
Comment thread hed/schema/schema_io/schema2df.py
Comment thread tests/schema/test_schema_extras_tsv_roundtrip.py Outdated
Comment thread tests/schema/test_schema_extras_tsv_roundtrip.py Outdated
Comment thread tests/schema/test_schema_extras_tsv_roundtrip.py

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.


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

Comment thread hed/schema/schema_io/df2schema.py Outdated
Comment thread hed/schema/schema_io/df2schema.py Outdated
Comment thread hed/schema/schema_io/df2schema.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated no new comments.


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

@VisLab VisLab marked this pull request as draft February 20, 2026 11:45
@VisLab

VisLab commented Feb 20, 2026

Copy link
Copy Markdown
Member Author

Decided on a different approach for saving unmerged extras. This PR is replaced by #1225

@VisLab

VisLab commented Feb 20, 2026

Copy link
Copy Markdown
Member Author

Replaced by #1225 (Different approach)

@VisLab VisLab closed this Feb 20, 2026
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.

2 participants