def __init__(self, fid, location):
     self.SubjectID = h5getstr(fid, location + '/SubjectID')
     self.MeasurementDate = h5getstr(fid, location + '/MeasurementDate')
     self.MeasurementTime = h5getstr(fid, location + '/MeasurementTime')
     self.LengthUnit = h5getstr(fid, location + '/LengthUnit')
     self.TimeUnit = h5getstr(fid, location + '/TimeUnit')
     ErrorClass.__init__(self)
    def __init__(self, fname):
        fid = h5py.File(fname, 'r')

        # formatVersion
        self.formatVersion = h5getstr(fid, 'formatVersion')

        # metaDataTags
        self.metaDataTags = MetaDataTagsClass(fid, '/nirs/metaDataTags')

        # data
        self.data = []
        ii = 1
        while 1:
            temp = DataClass(fid, '/nirs/data' + str(ii))
            if temp.GetError() < 0:
                break
            self.data.append(temp)
            ii = ii + 1

        # stim
        self.stim = []
        ii = 1
        while 1:
            temp = StimClass(fid, '/nirs/stim' + str(ii))
            if temp.GetError() < 0:
                break
            self.stim.append(temp)
            ii = ii + 1

        # probe
        self.probe = ProbeClass(fid, '/nirs/probe')

        # aux
        self.aux = []
        ii = 1
        while 1:
            temp = AuxClass(fid, '/nirs/aux' + str(ii))
            if temp.GetError() < 0:
                break
            self.aux.append(temp)
            ii = ii + 1

        fid.close()

        ErrorClass.__init__(self)
 def __init__(self, fid, location):
     self.name = h5getstr(fid, location + '/name')
     self.time = np.array(fid.get(location + '/time'))
     self.dataTimeSeries = np.array(fid.get(location + '/dataTimeSeries'))
     ErrorClass.__init__(self)
 def __init__(self, fid, location):
     self.name = h5getstr(fid, location + '/name')
     self.data = np.array(fid.get(location + '/data'))
     ErrorClass.__init__(self)