-
Notifications
You must be signed in to change notification settings - Fork 9
updated interleaver script and interleaved Database example #2537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
updated interleaver script and interleaved Database example #2537
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the interleave_yaml script to detect and resolve duplicate item IDs during interleaving and updates the Makefile to use the new interleaved file name.
- Introduces an
increment_id
helper for generating unique IDs - Adds duplicate ID tracking, automatic resolution, and reporting in
process_yaml
- Updates Makefile target from
Database-interleaved-new.yaml
toDatabase-interleaved.yaml
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
src/scripts/interleave_yaml.py | Added increment_id , duplicate ID detection/resolution logic, and reporting |
project.Makefile | Updated the interleaved YAML target filename |
Comments suppressed due to low confidence (1)
src/scripts/interleave_yaml.py:105
- Consider adding unit tests for the duplicate ID resolution logic and the
increment_id
function to ensure edge cases (e.g., '9'→'10', 'z'→'za') are handled correctly.
# Check for duplicate IDs within this slot and resolve them
|
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
We need to determine when the script would be run and what benefit we get, when the content of the individual
src/data/valid/Database*.yaml
files will all be checked bylinkml-run-examples
anywayIt does provide one fiel that can serve as a mock database