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

Map Annotations filter with duplicate Keys #62

Open
will-moore opened this issue Aug 30, 2019 · 0 comments
Open

Map Annotations filter with duplicate Keys #62

will-moore opened this issue Aug 30, 2019 · 0 comments

Comments

@will-moore
Copy link
Member

will-moore commented Aug 30, 2019

See https://forum.image.sc/t/anomalies-in-searching-kvpairs-in-parade-and-main-omero-search-tool/29124

If an Image has Map annotations Key: val_A and Key: val_B then one of these will be ignored since we return a "Dict of {'key': {iid: 'value', iid: 'value'}}". E.g. for 2 images:

{"Key": {123: val_B, 456: 'foo'}

and val_A is ignored.

# Dict of {'key': {iid: 'value', iid: 'value'}}

Simplest "fix" is to concatenate values e.g.

    if map_values[kv.name][iid]:
        map_values[kv.name][iid] += kv.value
    else:
        map_values[kv.name][iid] = kv.value
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

No branches or pull requests

1 participant