Repository navigation
Closed
Description
as1 = malariagen_data.As1(pre=True)
as1.sample_metadata()
fails with:
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
[/tmp/ipykernel_3509/3845708125.py](https://localhost:8080/#) in <cell line: 0>()
----> 1 as1.sample_metadata()
12 frames
[/usr/local/lib/python3.12/dist-packages/malariagen_data/util.py](https://localhost:8080/#) in wrapper(*args, **kwargs)
1266 def wrapper(*args, **kwargs):
1267 try:
-> 1268 return validated_f(*args, **kwargs)
1269 except ValidationError as e:
1270 type_hints = get_type_hints(f)
[/usr/local/lib/python3.12/dist-packages/pydantic/_internal/_validate_call.py](https://localhost:8080/#) in wrapper_function(*args, **kwargs)
37 @functools.wraps(wrapped)
38 def wrapper_function(*args, **kwargs):
---> 39 return wrapper(*args, **kwargs)
40
41 # We need to manually update this because `partial` object has no `__name__` and `__qualname__`.
[/usr/local/lib/python3.12/dist-packages/pydantic/_internal/_validate_call.py](https://localhost:8080/#) in __call__(self, *args, **kwargs)
134 self._create_validators()
135
--> 136 res = self.__pydantic_validator__.validate_python(pydantic_core.ArgsKwargs(args, kwargs))
137 if self.__return_pydantic_validator__:
138 return self.__return_pydantic_validator__(res)
[/usr/local/lib/python3.12/dist-packages/malariagen_data/anoph/sample_metadata.py](https://localhost:8080/#) in sample_metadata(self, sample_sets, sample_query, sample_query_options, sample_indices)
836
837 # Prepare parameters.
--> 838 prepared_sample_sets = self._prep_sample_sets_param(sample_sets=sample_sets)
839 prepared_sample_query = self._prep_sample_query_param(sample_query=sample_query)
840
[/usr/local/lib/python3.12/dist-packages/malariagen_data/anoph/base.py](https://localhost:8080/#) in _prep_sample_sets_param(self, sample_sets)
881
882 # Get the relevant sample sets as a list.
--> 883 all_relevant_sample_sets = self._relevant_sample_sets()["sample_set"].to_list()
884
885 # If no sample sets are specified...
[/usr/local/lib/python3.12/dist-packages/malariagen_data/util.py](https://localhost:8080/#) in wrapper(*args, **kwargs)
1266 def wrapper(*args, **kwargs):
1267 try:
-> 1268 return validated_f(*args, **kwargs)
1269 except ValidationError as e:
1270 type_hints = get_type_hints(f)
[/usr/local/lib/python3.12/dist-packages/pydantic/_internal/_validate_call.py](https://localhost:8080/#) in wrapper_function(*args, **kwargs)
37 @functools.wraps(wrapped)
38 def wrapper_function(*args, **kwargs):
---> 39 return wrapper(*args, **kwargs)
40
41 # We need to manually update this because `partial` object has no `__name__` and `__qualname__`.
[/usr/local/lib/python3.12/dist-packages/pydantic/_internal/_validate_call.py](https://localhost:8080/#) in __call__(self, *args, **kwargs)
134 self._create_validators()
135
--> 136 res = self.__pydantic_validator__.validate_python(pydantic_core.ArgsKwargs(args, kwargs))
137 if self.__return_pydantic_validator__:
138 return self.__return_pydantic_validator__(res)
[/usr/local/lib/python3.12/dist-packages/malariagen_data/anoph/base.py](https://localhost:8080/#) in _relevant_sample_sets(self, release)
738 if release is None:
739 # Retrieve sample sets from all relevant releases.
--> 740 release = self._relevant_releases
741
742 if isinstance(release, str):
[/usr/local/lib/python3.12/dist-packages/malariagen_data/anoph/base.py](https://localhost:8080/#) in _relevant_releases(self)
417
418 # Get the available releases, which depends on the `pre` setting.
--> 419 available_releases = self._available_releases
420
421 # If there are no criteria, then all available releases are relevant.
[/usr/local/lib/python3.12/dist-packages/malariagen_data/anoph/base.py](https://localhost:8080/#) in _available_releases(self)
366 if self._cache_available_releases is None:
367 if self._pre:
--> 368 self._cache_available_releases = self._discover_releases()
369 else:
370 self._cache_available_releases = self._public_releases()
[/usr/local/lib/python3.12/dist-packages/malariagen_data/anoph/base.py](https://localhost:8080/#) in _discover_releases(self)
351 sorted(
352 [
--> 353 self._path_to_release(d)
354 for d in sub_dirs
355 if version_pattern.match(d)
[/usr/local/lib/python3.12/dist-packages/malariagen_data/anoph/base.py](https://localhost:8080/#) in _path_to_release(self, path)
326 return path[1:]
327 else:
--> 328 raise RuntimeError(f"Unexpected release path: {path!r}")
329
330 def _public_releases(self) -> Tuple[str, ...]:
RuntimeError: Unexpected release path: 'v1'
I think it is a data issue (see https://github.com/malariagen/vobs-stephensi/issues/52) but better cover all the bases just in case.
Activity
jonbrenas commentedon May 27, 2026
As expected, it was a data issue.