coecms / clef

https://clef.readthedocs.io
7 stars 3 forks source link

--stats bugs #133

Closed paolap closed 4 years ago

paolap commented 4 years ago

stats was trying to retrieve the 'project' attribute from the results using the following assignment

project = results.loc[0,'project']

This can occasionally fail if stats and --and are used together because --and could filter out the row with index '0'

To fix it

project = results['project'].iloc[0]

so it will select the first row rather than the one with index '0'

paolap commented 4 years ago

Fixed in citation branch