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: --slice-time-ref option parsing #2573

Merged
merged 4 commits into from
Oct 5, 2021

Conversation

effigies
Copy link
Member

@effigies effigies commented Oct 5, 2021

Changes proposed in this pull request

  • Added a **kwargs to _build_parser() to allow us to pass arguments that can be used for debugging
  • Added a test for reasonable options for --slice-time-ref
  • Created a partial "type" for --slice-time-ref

Fixes #2572.

Documentation that should be reviewed

@effigies
Copy link
Member Author

effigies commented Oct 5, 2021

With pytest passing, I'm comfortable asking for a review.

@effigies effigies requested a review from mgxd October 5, 2021 20:40
Copy link
Collaborator

@mgxd mgxd left a comment

Choose a reason for hiding this comment

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

LGTM, one minor thing you can choose to ignore if you disagree

@@ -5,7 +5,7 @@
from .. import config


def _build_parser():
def _build_parser(**kwargs):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe add a docstring line stating kwargs are intended for argparse.ArgumentParser?

@effigies effigies merged commit 8311035 into nipreps:maint/20.2.x Oct 5, 2021
@effigies effigies deleted the fix/stc_ref branch October 5, 2021 21:12
@effigies
Copy link
Member Author

effigies commented Oct 5, 2021

Merged quickly to avoid wasting time on CI. Probably should have put a [skip ci] in...

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.

None yet

2 participants