Skip to content

Commit

Permalink
Partially revert 3f82b20
Browse files Browse the repository at this point in the history
These columns are actually still returned by CAVE and should be dropped
before showing the dataframe to the user. My previous commit that
stopped dropping these columns was due to me misinterpreting an error
message, I think.
  • Loading branch information
jasper-tms committed May 18, 2023
1 parent 759e3c2 commit 2df090a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion slackbots/neuron_information_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ def process_message(message: str, user: str, fake=False) -> str:
return "No annotations found."
if return_as == 'dataframe':
info.drop(columns=['id', 'valid', 'pt_supervoxel_id',
'pt_root_id', 'pt_position'], inplace=True)
'pt_root_id', 'pt_position', 'deleted',
'superceded_id'], inplace=True)
info.rename(columns={'tag': 'annotation',
'tag2': 'annotation_class'}, inplace=True)
info['created'] = info.created.apply(lambda x: x.date())
Expand Down

0 comments on commit 2df090a

Please sign in to comment.