Skip to content

isolde: 340, 852, 035 handling - #612

Merged
zzacharo merged 1 commit into
masterfrom
add-isolde-rules
Sep 24, 2026
Merged

zzacharo merged 1 commit into
masterfrom
add-isolde-rules

Conversation

@zzacharo

@zzacharo zzacharo commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

closes #478

"999C6v",
# ResearchModel.__ignore_keys__ covers the shared publication baseline
# Only ISOLDE-specific additions are listed here.
__ignore_keys__ = ResearchModel.__ignore_keys__ | {

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.

unfortunately this change is failing the tests :(

raise UnexpectedValue(field=key, subfield="a", value=value, stage="transform")


@model.over("additional_descriptions", "^852__")

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.

isn't it easier to add these fields to ignored? also, by raising IgnoreKey at the end you might also silently ignore other subfields of this field

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

hmm but I want to ignore specific values of the 852 subfields only. Keeping in mind also that this could go to the research/base class. Isn't it better like that?

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.

in the ignore keys you can only add the specific ones, you can't add the whole field
but I am re-reading this and now I understood why you do this, sorry 😅 LGTM

@zzacharo
zzacharo merged commit f15fd93 into master Sep 24, 2026
3 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.

migration: ISOLDE

2 participants