Skip to content

[FIX/STY] Standardize docstrings and add/fix doctests in AFNI interface. #1680

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

Merged
merged 5 commits into from
Oct 17, 2016

Conversation

tsalo
Copy link
Member

@tsalo tsalo commented Oct 13, 2016

Changes across AFNI interface:

  • Fix docstring links.
  • Standardize docstrings.
  • Remove a couple of unused imports.
  • Add cmdline doctests for AFNI.
  • Add several skipped run doctests.

Specific changes:

  • Remove example_data() call in Bandpass doctest.
  • Remove unnecessary position requirements in FourierInputSpec,
    TCorrelateInputSpec
  • Add retrend argument to Fourier.
  • Adding cmdline doctest to TCorrMap revealed that it’s breaking.
    • I've decided to add the doctest, but skip it.
  • Change BrickStatInputSpec from AFNICommandInputSpec to
    CommandLineInputSpec and BrickStat from AFNICommand to AFNICommandBase
    because BrickStat returns a value instead of outputting a file. I
    haven’t checked that aggregate_outputs actually returns the value.
  • Fix Eval doctest (was using Calc doctest).
  • Fix MaskTool doctest (was using Automask doctest).
  • Change TCat argument rlt from Str to Enum, since there are only
    three possible options (rlt, rlt+, rlt++).

This PR should resolve #1499.

tsalo added 5 commits October 12, 2016 17:11
Also standardize docstrings.
Remove a couple of unused imports.
Many cmdline doctests are still missing.
- Remove example_data() call in Bandpass doctest.
- Add several skipped run doctests.
- Remove unnecessary position requirements in FourierInputSpec,
TCorrelateInputSpec
- Add retrend argument to Fourier.
- Adding cmdline doctest to TCorrMap revealed that it’s breaking.
- Changed BrickStatInputSpec from AFNICommandInputSpec to
CommandLineInputSpec and BrickStat from AFNICommand to AFNICommandBase
because BrickStat returns a value instead of outputting a file. I
haven’t checked that aggregate_outputs actually returns the value.
- Fixed Eval doctest (was using Calc doctest).
- Fixed MaskTool doctest (was using Automask doctest).
- Changed TCat argument rlt from Str to Enum, since there are only
three possible options (rlt, rlt+, rlt++).
- Also, skip cmdline doctest for TCorrMap, for now.
@codecov-io
Copy link

codecov-io commented Oct 13, 2016

Current coverage is 70.83% (diff: 85.71%)

Merging #1680 into master will increase coverage by 0.01%

@@             master      #1680   diff @@
==========================================
  Files          1030       1030          
  Lines         51771      51770     -1   
  Methods           0          0          
  Messages          0          0          
  Branches       7329       7329          
==========================================
+ Hits          36666      36671     +5   
+ Misses        14018      14009     -9   
- Partials       1087       1090     +3   

Powered by Codecov. Last update f3e7d50...fa3daf3

@satra satra merged commit 591226c into nipy:master Oct 17, 2016
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.

Correct documentation URL for afni.Bandpass
3 participants