Skip to content

Commit

Permalink
Address the rest of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
martamaja10 committed Jul 5, 2024
1 parent 991120e commit 3af49c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions analyses/cms-open-data-ttbar/analysis.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import argparse
import os
from pathlib import Path
from time import time
from typing import Optional, Tuple
import multiprocessing

import ml
import ROOT
Expand Down Expand Up @@ -79,7 +79,7 @@ def parse_args() -> argparse.Namespace:
help=(
"Number of cores to use. In case of distributed execution this is the amount of cores per node."
),
default=1,
default = multiprocessing.cpu_count(),
type=int,
)
p.add_argument(
Expand Down Expand Up @@ -357,8 +357,6 @@ def main() -> None:
if args.inference:
ROOT.RDF.Experimental.Distributed.initialize(load_cpp)
if args.inference:
# TODO: make ml.load_cpp working on distributed
# ROOT.RDF.Experimental.Distributed.initialize(ml.load_cpp, "./fastforest")
ROOT.RDF.Experimental.Distributed.initialize(ml.load_cpp)

else:
Expand Down
1 change: 0 additions & 1 deletion analyses/cms-open-data-ttbar/ml.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os

Check failure on line 1 in analyses/cms-open-data-ttbar/ml.py

View workflow job for this annotation

GitHub Actions / linter

Ruff (F401)

analyses/cms-open-data-ttbar/ml.py:1:8: F401 `os` imported but unused
from dataclasses import dataclass
from typing import Tuple

from xgboost import XGBClassifier

Check failure on line 4 in analyses/cms-open-data-ttbar/ml.py

View workflow job for this annotation

GitHub Actions / linter

Ruff (F401)

analyses/cms-open-data-ttbar/ml.py:4:21: F401 `xgboost.XGBClassifier` imported but unused

import ROOT
Expand Down

0 comments on commit 3af49c5

Please sign in to comment.