Skip to content

Commit 9a11640

Browse files
authored
Merge pull request #4 from mfmceneaney/fix_hipopybind_syntax
Fix hipopybind syntax
2 parents 164ab7f + f1eb8c0 commit 9a11640

5 files changed

Lines changed: 10 additions & 14 deletions

File tree

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
author = 'Matthew McEneaney'
1414

1515
release = '2.0'
16-
version = '2.0.0'
16+
version = '2.0.1'
1717

1818
# -- General configuration
1919

hipopy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
Hipopy - Python library for reading CLAS12 HIPO files
55
"""
66

7-
__version__ = "2.0.0"
7+
__version__ = "2.0.1"
88

99
from .hipopy import *

hipopy/hipopy.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ def getInts(self, bankName, item):
704704
Get a column of ints from the data table in the current event's bank.
705705
"""
706706
bank = self.banklist[bankName]
707-
data = bank.getInts(item)
707+
data = hipopybind.getInts(bank, item)
708708
return data
709709

710710
def getFloats(self, bankName, item):
@@ -726,7 +726,7 @@ def getFloats(self, bankName, item):
726726
Get a column of floats from the data table in the current event's bank.
727727
"""
728728
bank = self.banklist[bankName]
729-
data = bank.getFloats(item)
729+
data = hipopybind.getFloats(bank, item)
730730
return data
731731

732732
def getDoubles(self, bankName, item):
@@ -748,7 +748,7 @@ def getDoubles(self, bankName, item):
748748
Get a column of doubles from the data table in the current event's bank.
749749
"""
750750
bank = self.banklist[bankName]
751-
data = bank.getDoubles(item)
751+
data = hipopybind.getDoubles(bank, item)
752752
return data
753753

754754
def getShorts(self, bankName, item):
@@ -770,7 +770,7 @@ def getShorts(self, bankName, item):
770770
Get a column of shorts from the data table in the current event's bank.
771771
"""
772772
bank = self.banklist[bankName]
773-
data = bank.getShorts(item)
773+
data = hipopybind.getShorts(bank, item)
774774
return data
775775

776776
def getLongs(self, bankName, item):
@@ -792,7 +792,7 @@ def getLongs(self, bankName, item):
792792
Get a column of longs from the data table in the current event's bank.
793793
"""
794794
bank = self.banklist[bankName]
795-
data = bank.getLongs(item)
795+
data = hipopybind.getLongs(bank, item)
796796
return data
797797

798798
def getBytes(self, bankName, item):
@@ -814,7 +814,7 @@ def getBytes(self, bankName, item):
814814
Get a column of bytes from the data table in the current event's bank.
815815
"""
816816
bank = self.banklist[bankName]
817-
data = bank.getBytes(item)
817+
data = hipopybind.getBytes(bank, item)
818818
return data
819819

820820
def __iter__(self):
@@ -835,7 +835,6 @@ def __init__(self, hpfile):
835835
if self.hpfile.mode != "w":
836836
self.hpfile.readAllBanks() # IMPORTANT!
837837
self.banks = self.hpfile.getBanks()
838-
self.verbose = False # NOTE: Not really necessary.
839838
self.items = {}
840839

841840
# Read all requested banks
@@ -893,8 +892,6 @@ class hipochain:
893892
Batch size for reading banks
894893
mode : string
895894
Currently fixed to always be in read mode ("r")
896-
verbose : boolean
897-
Currently fixed to always be False
898895
tags : int or list of ints
899896
Set bank tags for reader to use. 0 works for most banks.
900897
1 is needed for scaler banks.
@@ -924,7 +921,6 @@ def __init__(self, names, banks=None, step=100, tags=None, experimental=True):
924921
self.banks = banks
925922
self.step = step
926923
self.mode = "r"
927-
self.verbose = False
928924
self.tags = tags
929925
self.experimental = experimental
930926

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "hipopy"
3-
version = "2.0.0"
3+
version = "2.0.1"
44
license = "MIT"
55
description = "UpROOT-Like I/O Interface for CLAS12 HIPO Files"
66
authors = ["Matthew McEneaney <matthew.mceneaney@duke.edu>"]

tests/test_hipopy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33

44
def test_version():
5-
assert __version__ == "2.0.0"
5+
assert __version__ == "2.0.1"

0 commit comments

Comments
 (0)