Open pnewstein opened 7 months ago
In case it's helpful in other cases, there are a few public CATMAID instances at virtual fly brain (tools -> CATMAID). The L1EM instance is just the published data from Seymour.
Works just fine using the public VFB instance:
>>> import pymaid
>>> rm = pymaid.CatmaidInstance("https://fafb.catmaid.virtualflybrain.org/", api_token=None, project_id=1)
>>> pymaid.get_annotation_details(13686)
annotation skeleton_id time_annotated user_id annotation_id user
0 FBbt:00110930 13686 2021-07-27 15:50:00 116 17515344 None
1 KC#174-abs 13686 2021-07-27 15:31:00 116 17515269 None
2 Paper: Baltruschat et al 2021 13686 2021-07-27 14:58:00 116 17515091 None
3 Paper: Zheng et al 2020 13686 2020-05-01 14:43:00 116 15549507 None
4 Paper: Zheng et al 2022 13686 2022-07-08 10:01:00 116 17684440 None
Could you perhaps check your server's CATMAID version? For the VFB it is this:
>>> rm.catmaid_version
'2020.02.15-102-gce1dee4'
My catmaid_version is '2021.12.21.dev0+unknown'
Supporting this version of catmaid doesn't seem like it should be a high priority if it is not used in the public servers. I will just use the public servers for this information in the future.
Thanks!
Maybe @tomka can weigh in?
Issue
Calling the
pymaid.get_annotation_details
on any neurons raisesKeyError 'aaData'
.I am using the catmaid server at this url
and do not have access to any other servers for testing.
Possible solution
Replacing "aaData" with "data" in the
get_annotation_details
function in pymaid/fetch/init.py fixes this issue.the "aaData" key exists in two other functions:
get_user_annotations
,pymaid.get_logs
. This change is necessary to getget_user_annotations
to work. But I cannot getpymaid.get_logs
to work with either "aaData" or "data". Instead, I get an exception:requests.exceptions.HTTPError: 1 errors encountered: 400 Server Error: Bad Request for url: https://neurophyla.mrc-lmb.cam.ac.uk/catmaid/drosophila/l1/seymour/1/logs/list
. Perhaps this is an unrelated issue. I am personaly only interested in using theget_annotation_details
function.