Skip to content

Commit ba63d67

Browse files
committed
Rename io to io_ml_utils to avoid name clashes
1 parent 8f9a9d8 commit ba63d67

File tree

11 files changed

+23
-21
lines changed

11 files changed

+23
-21
lines changed

machine_learning_hep/analysis/analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from os import makedirs
1717
from os.path import exists, join
1818

19-
from machine_learning_hep.io import dump_yaml_from_dict
19+
from machine_learning_hep.io_ml_utils import dump_yaml_from_dict
2020

2121
# HF specific imports
2222
from machine_learning_hep.workflow.workflow_base import WorkflowBase

machine_learning_hep/analysis/systematics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from ROOT import TCanvas, TFile, TGraphErrors, TLegend, kAzure, kBlack, kBlue, kGreen, kOrange, kRed, kViolet, kYellow
3333

3434
from machine_learning_hep.fitting.helpers import MLFitter
35-
from machine_learning_hep.io import dump_yaml_from_dict, parse_yaml
35+
from machine_learning_hep.io_ml_utils import dump_yaml_from_dict, parse_yaml
3636
from machine_learning_hep.logger import get_logger
3737
from machine_learning_hep.multiprocesser import MultiProcesser
3838
from machine_learning_hep.utilities_plot import load_root_style

machine_learning_hep/fitting/simple_fit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
from machine_learning_hep.fitting.fitters import FitAliHF, FitROOTGauss
2626
from machine_learning_hep.fitting.utils import save_fit
27-
from machine_learning_hep.io import parse_yaml
27+
from machine_learning_hep.io_ml_utils import parse_yaml
2828
from machine_learning_hep.logger import configure_logger # , get_logger
2929

3030
#############################################################################

machine_learning_hep/fitting/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# pylint: disable=import-error, no-name-in-module, unused-import
2929
from ROOT import TFile
3030

31-
from machine_learning_hep.io import checkdir, dump_yaml_from_dict, parse_yaml
31+
from machine_learning_hep.io_ml_utils import checkdir, dump_yaml_from_dict, parse_yaml
3232
from machine_learning_hep.logger import get_logger
3333

3434

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
# © Copyright CERN 2018. All rights not expressly granted are reserved. #
2-
# Author: [email protected] #
3-
# This program is free software: you can redistribute it and/or modify it #
4-
# under the terms of the GNU General Public License as published by the #
5-
# Free Software Foundation, either version 3 of the License, or (at your #
6-
# option) any later version. This program is distributed in the hope that #
7-
# it will be useful, but WITHOUT ANY WARRANTY; without even the implied #
8-
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. #
9-
# See the GNU General Public License for more details. #
10-
# You should have received a copy of the GNU General Public License #
11-
# along with this program. if not, see <https://www.gnu.org/licenses/>. #
1+
#############################################################################
2+
## © Copyright CERN 2024. All rights not expressly granted are reserved. ##
3+
## Author: [email protected] ##
4+
## This program is free software: you can redistribute it and/or modify it ##
5+
## under the terms of the GNU General Public License as published by the ##
6+
## Free Software Foundation, either version 3 of the License, or (at your ##
7+
## option) any later version. This program is distributed in the hope that ##
8+
## it will be useful, but WITHOUT ANY WARRANTY; without even the implied ##
9+
## warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ##
10+
## See the GNU General Public License for more details. ##
11+
## You should have received a copy of the GNU General Public License ##
12+
## along with this program. if not, see <https://www.gnu.org/licenses/>. ##
13+
#############################################################################
1214

1315
"""
1416
Methods to: manage input/output

machine_learning_hep/multiprocesser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import os
2020
import tempfile
2121

22-
from machine_learning_hep.io import dump_yaml_from_dict, parse_yaml
22+
from machine_learning_hep.io_ml_utils import dump_yaml_from_dict, parse_yaml
2323
from machine_learning_hep.logger import get_logger
2424
from machine_learning_hep.utilities import merge_method, mergerootfiles
2525

machine_learning_hep/optimisation/bayesian_opt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from yaml.representer import RepresenterError
2828

2929
# from shap.plots.colors import red_blue as shap_cmap_red_blue
30-
from machine_learning_hep.io import dict_yamlable, dump_yaml_from_dict, parse_yaml
30+
from machine_learning_hep.io_ml_utils import dict_yamlable, dump_yaml_from_dict, parse_yaml
3131

3232
# Change to that backend to not have problems with saving fgures
3333
# when X11 connection got lost

machine_learning_hep/optimisation/grid_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import pandas as pd
2525
from sklearn.model_selection import GridSearchCV
2626

27-
from machine_learning_hep.io import dump_yaml_from_dict, parse_yaml, print_dict
27+
from machine_learning_hep.io_ml_utils import dump_yaml_from_dict, parse_yaml, print_dict
2828
from machine_learning_hep.logger import get_logger
2929
from machine_learning_hep.models import savemodels
3030
from machine_learning_hep.optimisation.metrics import get_scorers

machine_learning_hep/optimiser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
vardistplot,
4545
vardistplot_probscan,
4646
)
47-
from machine_learning_hep.io import dump_yaml_from_dict, parse_yaml
47+
from machine_learning_hep.io_ml_utils import dump_yaml_from_dict, parse_yaml
4848
from machine_learning_hep.logger import get_logger
4949
from machine_learning_hep.models import (
5050
apply,

machine_learning_hep/processer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from pandas.api.types import is_numeric_dtype
3434

3535
from .bitwise import tag_bit_df
36-
from .io import dump_yaml_from_dict
36+
from .io_ml_utils import dump_yaml_from_dict
3737
from .logger import get_logger
3838
from .utilities import (
3939
count_df_length_pkl,

0 commit comments

Comments
 (0)