PESTools / pestools

PESTools
12 stars 10 forks source link

res._obstypes problem #53

Open mnfienen opened 9 years ago

mnfienen commented 9 years ago

So I am running into a problem reading in the obs_info_file

Around line 193 in pest.py, the line: self._obstypes = self.obsinfo.drop_duplicates(subset='Group').ix[:, ['Group', 'Type']] Is bombing with an error culminating with: Buffer has wrong number of dimensions (expected 1, got 2)

Seems there might be an easier way to make this little dataframe? Also, note that I upgraded to Pandas 0.16.2 and it just started causing problems after the upgrade. For the time being, I commented out these lines

    '''
    self._obstypes = self.obsinfo.drop_duplicates(subset='Group').ix[:, ['Group', 'Type']]
    self._obstypes.index = self._obstypes.Group
    self._obstypes = self._obstypes.drop('Group', axis=1)
    '''

Of course, this means res._obstypes will not be properly available for use.