Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search nuclei via id and seg id + caching #374

Merged
merged 7 commits into from
Dec 5, 2022
Merged

Conversation

vrose99
Copy link
Contributor

@vrose99 vrose99 commented Nov 30, 2022

Issue #367 Users can now enter any combination of nuclei and/or seg-ids to search nuclei and neuron types.

New column added to nuclei viewer table to cross-search between seg-id and nuclei-id. Input ids that are not found in the neuron table will be listed below for awareness.
image (4)

Nuclei and neuron type tables are now also cached in static files for the nuclei states.

@vrose99 vrose99 requested a review from dxenes1 November 30, 2022 02:52
neuvue_project/workspace/neuroglancer.py Outdated Show resolved Hide resolved
df.to_pickle(settings.STATIC_ROOT+'/'+supported_tables.get(table_type)+'.pkl')
return df
else:
return float('NaN')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think returning False or raising an exception would be better here. When this function is called when can then make sure its returned something by just pass an if statement to it (which would work with this code right now too but a direct False would be more readable IMO

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated it to log the error of querying a resource table that does not exist -- happy to adjust it, though, if there are cases you can think of where this would be an undesirable response to a table not being queryable !

@vrose99 vrose99 requested a review from dxenes1 December 1, 2022 20:58
@vrose99 vrose99 marked this pull request as ready for review December 2, 2022 14:20
@vrose99 vrose99 linked an issue Dec 2, 2022 that may be closed by this pull request
@dxenes1 dxenes1 merged commit 1b4ca68 into staging Dec 5, 2022
@dxenes1 dxenes1 deleted the nuclei-id-visible branch December 7, 2022 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add nuclei id attribute to tasks
2 participants