Skip to content

Commit b223a10

Browse files
Merge branch 'master' into GH1056-local-file-urls-escaped-paths
2 parents 448a19d + 3014709 commit b223a10

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This package provides Python tools for accessing and analyzing genomic data from
1212

1313
You'll need:
1414

15-
- [pipx](https://python-poetry.org/) for installing Python tools
15+
- [pipx](https://pipx.pypa.io/) for installing Python tools
1616
- [git](https://git-scm.com/) for version control
1717

1818
Both of these can be installed using your distribution's package manager or [Homebrew](https://brew.sh/) on Mac.

malariagen_data/anoph/sample_metadata.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,12 @@ def _locate_cohorts(*, cohorts, data, min_cohort_size):
18391839
# to pandas queries.
18401840

18411841
for coh, query in cohorts.items():
1842-
loc_coh = data.eval(query).values
1842+
try:
1843+
loc_coh = data.eval(query).values
1844+
except Exception as e:
1845+
raise ValueError(
1846+
f"Invalid query for cohort {coh!r}: {query!r}. Error: {e}"
1847+
) from e
18431848
coh_dict[coh] = loc_coh
18441849

18451850
else:

0 commit comments

Comments
 (0)