Skip to content

Commit

Permalink
removing all instances of from ROOT import larcv
Browse files Browse the repository at this point in the history
  • Loading branch information
Taritree Wongjirad committed Aug 5, 2016
1 parent 8579438 commit 734a147
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 15 deletions.
3 changes: 2 additions & 1 deletion app/CalibADC/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
for l in [x for x in os.listdir(os.environ['LARCV_LIBDIR']) if x.endswith('.so')]:
ROOT.gSystem.Load('%s/%s' % (os.environ['LARCV_LIBDIR'],l))

from ROOT import larcv, std
from ROOT import std
from larcv import larcv

if len(sys.argv) < 2:

Expand Down
3 changes: 2 additions & 1 deletion app/ImageAna/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
for l in [x for x in os.listdir(os.environ['LARCV_LIBDIR']) if x.endswith('.so')]:
ROOT.gSystem.Load('%s/%s' % (os.environ['LARCV_LIBDIR'],l))

from ROOT import larcv, std
from ROOT import std
from larcv import larcv

if len(sys.argv) < 2:

Expand Down
6 changes: 4 additions & 2 deletions app/PMTWeights/foo.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/usr/bin/env python
import ROOT, sys, os
import ROOT
import sys, os
for l in [x for x in os.listdir(os.environ['LARCV_LIBDIR']) if x.endswith('.so')]:
ROOT.gSystem.Load('%s/%s' % (os.environ['LARCV_LIBDIR'],l))

from ROOT import larcv, std
from ROOT import std
from larcv import larcv

if len(sys.argv) < 2:

Expand Down
3 changes: 2 additions & 1 deletion app/PMTWeights/test_pmtweights.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os,sys
from ROOT import larcv, std
from ROOT import std
from larcv import larcv

fname = sys.argv[1]

Expand Down
3 changes: 2 additions & 1 deletion app/SmallSampleMaker/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
for l in [x for x in os.listdir(os.environ['LARCV_LIBDIR']) if x.endswith('.so')]:
ROOT.gSystem.Load('%s/%s' % (os.environ['LARCV_LIBDIR'],l))

from ROOT import larcv, std
from ROOT import std
from larcv import larcv

if len(sys.argv) < 2:

Expand Down
2 changes: 1 addition & 1 deletion app/tests/test_eltwisemult.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os,sys
import ROOT
import numpy as np
from ROOT import larcv
from larcv import larcv
print larcv.Image2D

# TESTS MATRIX MULTIPLICATION FEATURE
Expand Down
2 changes: 1 addition & 1 deletion app/tests/test_matrixmult.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os,sys
import ROOT
import numpy as np
from ROOT import larcv
from larcv import larcv
print larcv.Image2D

# TESTS MATRIX MULTIPLICATION FEATURE
Expand Down
2 changes: 1 addition & 1 deletion core/DataFormat/test/test_both.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ROOT
#ROOT.gSystem.Load("libLArCV")
#ROOT.gSystem.Load("libLArCVData")
from ROOT import larcv
from larcv import larcv
o=larcv.IOManager(larcv.IOManager.kBOTH)
o.reset()
o.set_verbosity(0)
Expand Down
2 changes: 1 addition & 1 deletion mac/dump_all_bb.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ROOT import larcv
from larcv import larcv
larcv.IOManager
from ROOT import TChain
import sys
Expand Down
2 changes: 1 addition & 1 deletion mac/dump_bb.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ROOT import larcv
from larcv import larcv
larcv.IOManager
from ROOT import TChain
import sys
Expand Down
2 changes: 1 addition & 1 deletion mac/dump_chstatus.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ROOT import larcv
from larcv import larcv
larcv.IOManager
from ROOT import TChain
import sys
Expand Down
2 changes: 1 addition & 1 deletion mac/dump_pixels.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ROOT import larcv
from larcv import larcv
larcv.IOManager
from ROOT import TChain
import sys
Expand Down
2 changes: 1 addition & 1 deletion mac/mac/concat_roi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ROOT import larcv
from larcv import larcv
import numpy as np

#TWO different files from two ``scans"
Expand Down
2 changes: 1 addition & 1 deletion python/larcv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
larcv_dir = os.environ['LARCV_LIBDIR']
for l in [x for x in os.listdir(larcv_dir) if x.endswith('.so')]:
ROOT.gSystem.Load(l)
from ROOT import larcv
from larcv import larcv
k=larcv.logger # this line to load C++ functions
if 'LARCV_NUMPY' in os.environ and os.environ['LARCV_NUMPY'] == '1':
larcv.load_pyutil
Expand Down

0 comments on commit 734a147

Please sign in to comment.