Commit c3ba5102 authored by Gurecky, William's avatar Gurecky, William
Browse files

fix bug: float does not have attribute value in getChanArea

parent b2aac129
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -281,8 +281,12 @@ class Hdf5Interface(object):
           ch (int) : Channel index (1-based)

        """
        assert ch > 0
        me._chanIndexValid(ch)
        try:
            return me.h5['CORE/chan_area'][ch-1].value
        except:
            return me.h5['CORE/chan_area'][ch-1]

    def getPinThetas(me, pin, level):
        """ Returns the azimuthal fractions for the passed pin and level