Skip to content
This repository has been archived by the owner. It is now read-only.

[Search] Searching parameters by 'Annotation ID' makes NeuroCurator crash #86

Open
pafonta opened this issue Jul 19, 2018 · 0 comments
Open
Assignees
Labels
Milestone

Comments

@pafonta
Copy link
Contributor

pafonta commented Jul 19, 2018

Steps:

  1. Choose 'Annotation ID' in the 'Search conditions' panel in the tab 'Parameters'.
  2. Enter an annotation ID (ex: 0ec14d5c-ed2a-11e5-b291-3417ebb8f5ca).
  3. Click on 'Search'.
  4. NeuroCurator crashes (v0.4.4 but not v0.4.3 even if the exception is the same).

Stack trace:

Traceback (most recent call last):
  File "/Users/fonta/repos/neurocurator/neurocurator/searchInterface.py", line 103, in search
    result = searcher.search()
  File "/Users/fonta/repos/nat/nat/annotationSearch.py", line 227, in search
    self.selectedItems = self.conditions.apply_param(self.parameters)
  File "/Users/fonta/repos/nat/nat/condition.py", line 155, in apply_param
    results =  {param:annot for param, annot in parameters.items() 
  File "/Users/fonta/repos/nat/nat/condition.py", line 156, in <dictcomp>
    if checkParameter(param, annot, self.key, self.value)}  
  File "/Users/fonta/repos/nat/nat/condition.py", line 73, in checkParameter
    return annotation.annotId == value        
AttributeError: 'Annotation' object has no attribute 'annotId'
@pafonta pafonta added the bug label Jul 19, 2018
@pafonta pafonta self-assigned this Jul 19, 2018
@pafonta pafonta added this to the v0.6.0 milestone Oct 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant