Skip to content
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

Community Catalog: add special compensators for Projects Script #73

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

shaunanoordin
Copy link
Member

PR Overview

Part of: Community Catalog

This PR adds "special compensators" for the Projects Script - i.e. rules that smooth out unplanned wonkiness in actual data.

  • New compensator: ignore upper/lower case in metadata fields.
    • Some projects (e.g. Stereovision) don't have consistent metadata fields across Subjects. For example, Subject 1 might have subject.metadata.file_name, while Subject 2 might have subject.metadata.File_Name.
    • This compensator ensures both metadata fields count as "file_name" (or whatever our config asks for)
    • Config: myProject.special_compensators. metadata_field_name_ignore_case = true | false (default: false)

While ideally we would like the actual Subject data in Panoptes to be consistent, we understand that unplanned wonkiness is just a natural facet of the human experience, so the code should try its best to compensate.

Status

Onwards!

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.

1 participant