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

STY: Remove extraneous quotes #859

Merged
merged 1 commit into from
Apr 17, 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: 2 additions & 2 deletions niworkflows/interfaces/confounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class _SpikeRegressorsInputSpec(BaseInterfaceInputSpec):
dvars_thresh = traits.Float(
1.5,
usedefault=True,
desc="Minimum standardised DVARS threshold for flagging a frame as " "a spike.",
desc="Minimum standardised DVARS threshold for flagging a frame as a spike.",
)
header_prefix = traits.Str(
"motion_outlier",
Expand All @@ -165,7 +165,7 @@ class _SpikeRegressorsInputSpec(BaseInterfaceInputSpec):
traits.Int,
value=[0],
usedefault=True,
desc="Relative indices of lagging frames to flag for " "each flagged frame",
desc="Relative indices of lagging frames to flag for each flagged frame",
)
minimum_contiguous = traits.Either(
None,
Expand Down
2 changes: 1 addition & 1 deletion niworkflows/interfaces/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ class _SanitizeImageInputSpec(BaseInterfaceInputSpec):
max_32bit = traits.Bool(
False,
usedefault=True,
desc="cast data to float32 if higher " "precision is encountered",
desc="cast data to float32 if higher precision is encountered",
)


Expand Down
2 changes: 1 addition & 1 deletion niworkflows/interfaces/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ class _SignalExtractionInputSpec(BaseInterfaceInputSpec):
"signals.tsv",
usedefault=True,
exists=False,
desc="The name of the file to output to. " "signals.tsv by default",
desc="The name of the file to output to. signals.tsv by default",
)


Expand Down
4 changes: 2 additions & 2 deletions niworkflows/interfaces/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class _CompCorVariancePlotInputSpec(BaseInterfaceInputSpec):
metadata_files = traits.List(
File(exists=True),
mandatory=True,
desc="List of files containing component " "metadata",
desc="List of files containing component metadata",
)
metadata_sources = traits.List(
traits.Str,
Expand All @@ -133,7 +133,7 @@ class _CompCorVariancePlotInputSpec(BaseInterfaceInputSpec):
traits.Float(0.7),
traits.Float(0.9),
usedefault=True,
desc="Levels of explained variance to include in " "plot",
desc="Levels of explained variance to include in plot",
)
out_file = traits.Either(
None, File, value=None, usedefault=True, desc="Path to save plot"
Expand Down
4 changes: 2 additions & 2 deletions niworkflows/interfaces/reportlets/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class _MELODICInputSpecRPT(nrb._SVGReportCapableInputSpec, fsl.model.MELODICInpu
out_report = File(
"melodic_reportlet.svg",
usedefault=True,
desc="Filename for the visual" " report generated " "by Nipype.",
desc="Filename for the visual report generated by Nipype.",
)
report_mask = File(
desc="Mask used to draw the outline on the reportlet. "
Expand Down Expand Up @@ -197,7 +197,7 @@ class _ICA_AROMAInputSpecRPT(
out_report = File(
"ica_aroma_reportlet.svg",
usedefault=True,
desc="Filename for the visual" " report generated " "by Nipype.",
desc="Filename for the visual report generated by Nipype.",
)
report_mask = File(
desc="Mask used to draw the outline on the reportlet. "
Expand Down
4 changes: 2 additions & 2 deletions niworkflows/interfaces/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,12 +445,12 @@ class _TSV2JSONInputSpec(BaseInterfaceInputSpec):
None,
traits.List(),
usedefault=True,
desc="List of columns in the TSV to be " "dropped from the JSON.",
desc="List of columns in the TSV to be dropped from the JSON.",
)
enforce_case = traits.Bool(
True,
usedefault=True,
desc="Enforce snake case for top-level keys " "and camel case for nested keys",
desc="Enforce snake case for top-level keys and camel case for nested keys",
)


Expand Down
4 changes: 2 additions & 2 deletions niworkflows/interfaces/workbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,15 @@
if opt in ["current_area", "new_area"]:
if not self.inputs.area_surfs and not self.inputs.area_metrics:
raise ValueError(
"{} was set but neither area_surfs or" " area_metrics were set".format(opt)
"{} was set but neither area_surfs or area_metrics were set".format(opt)
)
if opt == "method":
if (
val == "ADAP_BARY_AREA"
and not self.inputs.area_surfs
and not self.inputs.area_metrics
):
raise ValueError("Exactly one of area_surfs or area_metrics" " must be specified")
raise ValueError("Exactly one of area_surfs or area_metrics must be specified")

Check warning on line 293 in niworkflows/interfaces/workbench.py

View check run for this annotation

Codecov / codecov/patch

niworkflows/interfaces/workbench.py#L293

Added line #L293 was not covered by tests
if opt == "valid_roi_out" and val:
# generate a filename and add it to argstr
roi_out = self._gen_filename(self.inputs.in_file, suffix="_roi")
Expand Down
Loading