Skip to content

Commit 71f9c31

Browse files
committed
reformat
1 parent 4d325a2 commit 71f9c31

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

cubids/config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
import yaml
66

77
def load_config(config_file):
8-
"""
9-
Load a YAML file containing a configuration for param groups.
8+
"""Load a YAML file containing a configuration for param groups.
109
1110
Parameters
1211
----------

cubids/tests/utils.py

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515

1616

1717
def get_data(tmp_path):
18-
"""
19-
Copy testing data to a local directory.
18+
"""Copy testing data to a local directory.
2019
2120
Parameters
2221
----------
@@ -34,8 +33,7 @@ def get_data(tmp_path):
3433

3534

3635
def _remove_a_json(json_file):
37-
"""
38-
Remove a JSON file.
36+
"""Remove a JSON file.
3937
4038
Parameters
4139
----------
@@ -46,8 +44,7 @@ def _remove_a_json(json_file):
4644

4745

4846
def _edit_a_nifti(nifti_file):
49-
"""
50-
Edit a NIfTI file by replacing its data with random values.
47+
"""Edit a NIfTI file by replacing its data with random values.
5148
5249
Parameters
5350
----------
@@ -60,8 +57,7 @@ def _edit_a_nifti(nifti_file):
6057

6158

6259
def file_hash(file_name):
63-
"""
64-
Create a hash from a file.
60+
"""Create a hash from a file.
6561
6662
Parameters
6763
----------
@@ -79,8 +75,7 @@ def file_hash(file_name):
7975

8076

8177
def _get_json_string(json_path):
82-
"""
83-
Get the content of a JSON file as a string.
78+
"""Get the content of a JSON file as a string.
8479
8580
Parameters
8681
----------
@@ -98,8 +93,7 @@ def _get_json_string(json_path):
9893

9994

10095
def _add_deletion(summary_tsv):
101-
"""
102-
Add a deletion entry to a summary TSV file.
96+
"""Add a deletion entry to a summary TSV file.
10397
10498
Parameters
10599
----------
@@ -118,8 +112,7 @@ def _add_deletion(summary_tsv):
118112

119113

120114
def _add_ext_files(img_path):
121-
"""
122-
Add and save extension files in the same directory as the image file.
115+
"""Add and save extension files in the same directory as the image file.
123116
124117
Parameters
125118
----------
@@ -146,8 +139,7 @@ def _add_ext_files(img_path):
146139

147140

148141
def _edit_a_json(json_file):
149-
"""
150-
Open a JSON file, write a test entry to it, and save it to the same name.
142+
"""Open a JSON file, write a test entry to it, and save it to the same name.
151143
152144
Parameters
153145
----------

0 commit comments

Comments
 (0)