Skip to content

Commit f70e815

Browse files
Removing unnecessary dependencies
1 parent 298a70c commit f70e815

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

PWGDQ/Macros/tutorial.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
"""
22
\author Luca Micheletti <luca.micheletti@cern.ch>, CERN
33
"""
4-
import yaml
54
import json
6-
import sys
75
import argparse
86
from array import array
9-
from os import path
10-
import ROOT
117
from ROOT import TFile, TF1, TH1F, TTree
128
from ROOT import gRandom
139
from DQFitter import DQFitter
@@ -57,8 +53,8 @@ def main():
5753
args = parser.parse_args()
5854

5955
print('Loading task configuration: ...', end='\r')
60-
with open(args.cfgFileName, 'r') as ymlCfgFile:
61-
inputCfg = yaml.load(ymlCfgFile, yaml.FullLoader)
56+
with open(args.cfgFileName, 'r') as jsonCfgFile:
57+
inputCfg = json.load(jsonCfgFile)
6258
print('Loading task configuration: Done!')
6359

6460
if args.gen_tutorial:

0 commit comments

Comments
 (0)