Skip to content

Commit fefd716

Browse files
Use black --config ../.../black.toml .../snowstorm_dataset.py
1 parent e831b17 commit fefd716

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/graphnet/datasets/snowstorm_dataset.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ def _prepare_args(
159159
train_val_selection = []
160160
test_selection = []
161161
for path in dataset_paths:
162-
train_val_selection.append(train_val["event_no"].get_group(path).tolist())
162+
train_val_selection.append(
163+
train_val["event_no"].get_group(path).tolist()
164+
)
163165
test_selection.append(test["event_no"].get_group(path).tolist())
164166

165167
dataset_args = {
@@ -188,7 +190,9 @@ def _create_comment(cls, event_counts: Dict[str, int] = {}) -> None:
188190
runid_string += f"RunID {k} contains {v:10d} events\n"
189191
tot += v
190192
cls._comments = (
191-
f"Contains ~{tot/1e6:.1f} million events:\n" + runid_string + fixed_string
193+
f"Contains ~{tot / 1e6:.1f} million events:\n"
194+
+ runid_string
195+
+ fixed_string
192196
)
193197

194198
def _get_dir_name(self, source_file_path: str) -> str:

0 commit comments

Comments
 (0)