We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 106b149 commit b8685a9Copy full SHA for b8685a9
docs/outputs.rst
@@ -304,8 +304,8 @@ corresponding PET time series::
304
305
**Time activity curves**.
306
The workflow :func:`petprep.workflows.pet.tacs.init_pet_tacs_wf` extracts mean uptake
307
-from an anatomical segmentation. The resulting table has ``FrameTimesStart`` and
308
-``FrameTimesEnd`` columns followed by one column per region::
+from an anatomical segmentation. The resulting table has ``frame_start`` and
+``frame_end`` columns followed by one column per region::
309
310
sub-<subject_label>/
311
pet/
petprep/interfaces/tacs.py
@@ -75,8 +75,8 @@ def _run_interface(self, runtime):
75
76
frame_times_end = np.add(frame_times, frame_durations).tolist()
77
df = pd.DataFrame(curves)
78
- df.insert(0, 'FrameTimesEnd', frame_times_end)
79
- df.insert(0, 'FrameTimesStart', list(frame_times))
+ df.insert(0, 'frame_end', frame_times_end)
+ df.insert(0, 'frame_start', list(frame_times))
80
81
out_file = fname_presuffix(
82
self.inputs.in_file,
@@ -133,8 +133,8 @@ def _run_interface(self, runtime):
133
timeseries = pet_data[mask, :].mean(axis=0)
134
135
df = pd.DataFrame({self.inputs.ref_mask_name: timeseries})
136
137
138
139
140
petprep/interfaces/tests/test_tacs.py
@@ -49,7 +49,7 @@ def test_ExtractTACs(tmp_path):
49
res = node.run()
50
51
out = pd.read_csv(res.outputs.out_file, sep='\t')
52
- assert list(out.columns) == ['FrameTimesStart', 'FrameTimesEnd', 'A', 'B']
+ assert list(out.columns) == ['frame_start', 'frame_end', 'A', 'B']
53
assert np.allclose(out['A'], [1, 2])
54
assert np.allclose(out['B'], [1, 2])
55
@@ -199,7 +199,7 @@ def test_ExtractRefTAC(tmp_path):
199
200
201
202
- assert list(out.columns) == ['FrameTimesStart', 'FrameTimesEnd', 'ref']
+ assert list(out.columns) == ['frame_start', 'frame_end', 'ref']
203
assert np.allclose(out['ref'], [1, 2])
204
205
0 commit comments