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

Update to match neurodatascience/nipoppy:main #66

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions nipoppy_cli/nipoppy/tabular/bagel.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class BagelModel(BaseTabularModel):
pipeline_complete: str = Field(
description="The status of the pipeline run for this participant-visit pair"
)
# this is needed for now for the dashboard for work, but should be removed
# if https://github.com/neurobagel/digest/issues/153 is addressed
# TODO discuss bagel schema
pipeline_starttime: str = Field(default="UNAVAILABLE")

@field_validator("pipeline_complete")
@classmethod
Expand Down
12 changes: 11 additions & 1 deletion nipoppy_cli/tests/test_tabular_bagel.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,17 @@
],
)
def test_model(data):
BagelModel(**data)
bagel = BagelModel(**data)
assert set(bagel.model_fields.keys()) == {
Bagel.col_participant_id,
Bagel.col_bids_participant,
Bagel.col_session_id,
Bagel.col_pipeline_name,
Bagel.col_pipeline_version,
Bagel.col_pipeline_complete,
"session",
"pipeline_starttime",
}


@pytest.mark.parametrize(
Expand Down
Loading