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

Merge query results on refined query when sub-results contains different headers #40

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

jrmartin
Copy link
Contributor

@jrmartin jrmartin commented Dec 12, 2019

Takes care of issue VirtualFlyBrain/geppetto-vfb#464

Outcome of query search:
NBLAST Similar to VGlut-F-200114 with List all images included in FlyCircuit 1.0 - single neurons (Chiang2010)

image

Copy link

@filippomc filippomc left a comment

Choose a reason for hiding this comment

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

Needs unit testing

// Add headers for new result to 'finalResults' list, this is done after merging results
// to avoid having a mismatch of values and headers prior to the merge.
if(!first){
finalResults.getHeader().addAll(result.getHeader());

Choose a reason for hiding this comment

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

This is really calling a unit test! We have this in pygeppetto: https://github.com/openworm/pygeppetto/blob/5932729e4098cd6e0f766b9fd43ff6b33fce56a2/tests/test_datasource_service.py#L33. Should test also the case with different headers from here VirtualFlyBrain/geppetto-vfb#464

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.

2 participants