Skip to content

Commit 12ebdee

Browse files
committed
docs changes
1 parent f4b2ac5 commit 12ebdee

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/rbc/core/qc/xcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def write_xcp_qc(metrics: XCPQCMetrics, out_path: Path) -> Path:
148148
Args:
149149
metrics: A populated :class:`XCPQCMetrics` row.
150150
out_path: Destination file path (parent dirs created if needed).
151-
Should have a ``.parquet`` extension.
151+
Parquet content will be written to this path.
152152
153153
Returns:
154154
The output path (same as *out_path*).

src/rbc/workflows/qc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class QCOutputs:
3737
3838
Attributes:
3939
metrics: All 24 XCP-style QC fields for the run.
40-
qc_file: Path to the written single-row TSV.
40+
qc_file: Path to the written single-row Parquet.
4141
passed: Whether the run passes RBC QC thresholds.
4242
"""
4343

@@ -157,7 +157,7 @@ def single_session_qc(
157157
norm=norm,
158158
)
159159

160-
# 9. Write QC TSV
160+
# 9. Write QC Parquet
161161
qc_outputs.qc_file[regressor] = write_xcp_qc(
162162
qc_outputs.metrics[regressor],
163163
work_dir / f"reg-{regressor}_qc.parquet",

tests/integration/functional/qc/test_xcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_xcp_qc_from_bold(
3232
motion_corrected_bold: MotionCorrectedBOLD,
3333
tmp_path: Path,
3434
) -> None:
35-
"""Compute all sub-metrics from real data, generate XCP TSV, and verify."""
35+
"""Compute all sub-metrics from real data, generate XCP Parquet, and verify."""
3636
mc = motion_corrected_bold.mc
3737
bold_data = motion_corrected_bold.bold_data
3838
mask = motion_corrected_bold.mask
@@ -71,7 +71,7 @@ def test_xcp_qc_from_bold(
7171
assert metrics.meanFD >= 0
7272
assert metrics.meanDVInit >= 0
7373

74-
# Write TSV and verify
74+
# Write Parquet and verify
7575
out_path = tmp_path / "xcp_qc.parquet"
7676
write_xcp_qc(metrics, out_path)
7777
assert out_path.exists()

tests/unit/core/qc/test_xcp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def test_returns_named_tuple(self) -> None:
220220
# write_xcp_qc
221221
# ===================================================================
222222
class TestWriteXcpQc:
223-
"""Tests for writing XCP QC metrics to TSV."""
223+
"""Tests for writing XCP QC metrics to Parquet."""
224224

225225
def test_writes_file(self, tmp_path: Path) -> None:
226226
"""Output file is created."""
@@ -237,7 +237,7 @@ def test_correct_headers(self, tmp_path: Path) -> None:
237237
assert df.columns == EXPECTED_COLUMNS
238238

239239
def test_correct_values(self, tmp_path: Path) -> None:
240-
"""Values in TSV match the input metrics."""
240+
"""Values in Parquet match the input metrics."""
241241
m = _sample_xcp_metrics()
242242
out = tmp_path / "qc.parquet"
243243
write_xcp_qc(m, out)
@@ -247,7 +247,7 @@ def test_correct_values(self, tmp_path: Path) -> None:
247247
assert df["meanFD"][0] == m.meanFD
248248

249249
def test_round_trip_polars(self, tmp_path: Path) -> None:
250-
"""Polars can read back the TSV and recover the values."""
250+
"""Polars can read back the Parquet and recover the values."""
251251
m = _sample_xcp_metrics()
252252
out = tmp_path / "qc.parquet"
253253
write_xcp_qc(m, out)

0 commit comments

Comments
 (0)