Skip to content

Conversation

mathdugre
Copy link
Collaborator

@mathdugre mathdugre commented Oct 31, 2024

BIDS and Preprocessing pipeline classes now handle the step validation, making the JSON schema less confusing in the docs.

  • Closes #

Changes proposed in this pull request:

Checklist (for reviewers)

This section is for the PR reviewer

  • PR has an interpretable title with a prefix (e.g. [BUG], [DOC], [ENH], [MAINT])
    Refer to NumPy Development Guide for a full list
  • PR links to GitHub issue with mention Closes #XXXX
  • Tests pass
  • Checks pass

For new features:

  • Tests have been added

For bug fixes:

  • There is at least one test that would fail under the original bug conditions

BIDS and Preprocessing pipeline classes now handle the step validation, making the
JSON schema less confusing in the docs.
@mathdugre mathdugre force-pushed the ref/pydantic-schema branch from 110ff17 to 29ee6e8 Compare October 31, 2024 17:08
Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
nipoppy/config/pipeline.py 98.18% <100.00%> (-0.10%) ⬇️

@@ -4,7 +4,7 @@

from abc import ABC
from pathlib import Path
from typing import Any, Optional, Type, Union
from typing import Any, Optional, Union
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think if you use from __future__ import annotations then you would be able to use the | operator instead of Union 🍒

Copy link
Collaborator

@michellewang michellewang left a comment

Choose a reason for hiding this comment

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

Just a 🍒 about from __future__ import annotations, otherwise looks good :)

@mathdugre mathdugre merged commit 67451cf into nipoppy:main Nov 6, 2024
10 checks passed
@mathdugre mathdugre deleted the ref/pydantic-schema branch November 6, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants