Skip to content

Commit

Permalink
Fix filtering by int64-type identifiers, see GH-7
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Apr 9, 2023
1 parent ba8b745 commit cc24080
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Expand Up @@ -5,6 +5,7 @@ phenodata changelog
development
===========
- Fix ``nearest-station`` with ``--format=json``
- Fix filtering by ``int64``-type identifiers, see GH-7

2020-12-29 0.11.0
=================
Expand Down
3 changes: 2 additions & 1 deletion phenodata/dwd/pheno.py
Expand Up @@ -372,7 +372,8 @@ def flux(self, results, criteria=None):
continue
reference = results[field]
if key in criteria and criteria[key]:
expression &= reference.isin(criteria[key])
values = map(int, criteria[key])
expression &= reference.isin(values)

# Apply filter expression to DataFrame
if type(expression) is not bool:
Expand Down

0 comments on commit cc24080

Please sign in to comment.