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

Fix training data field #401

Merged
merged 3 commits into from
Feb 22, 2022
Merged

Fix training data field #401

merged 3 commits into from
Feb 22, 2022

Conversation

FynnBe
Copy link
Member

@FynnBe FynnBe commented Feb 22, 2022

No description provided.

@github-actions github-actions bot added the bug Something isn't working label Feb 22, 2022
@@ -527,7 +531,7 @@ def get_min_shape(t) -> numpy.ndarray:
"(#https://en.wikipedia.org/wiki/ISO_8601) format.",
)

training_data = fields.Union([fields.String(bioimageio_description="dataset id"), fields.Nested(Dataset())])
training_data = fields.Union([fields.Nested(Dataset()), fields.Nested(LinkedDataset())])
Copy link
Member Author

Choose a reason for hiding this comment

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

@oeway @constantinpape here we check first for an in-place dataset rdf and otherwise for the LinkedDataset that currently only consists of id. unknown fields are not allowed for the LinkedDataset

@FynnBe
Copy link
Member Author

FynnBe commented Feb 22, 2022

tests seem to fail only due to links to main branch where the example model is not updated yet...

Copy link
Collaborator

@constantinpape constantinpape left a comment

Choose a reason for hiding this comment

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

Good to go from my side. We can just merge despite the test errors, they should sort themselves out once the file is updated on main; if not we can fix it in a follow-up PR.

@FynnBe FynnBe merged commit 9164f48 into main Feb 22, 2022
@FynnBe FynnBe deleted the fix_training_data_field branch February 22, 2022 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants