Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
OriolAbril committed Mar 11, 2024
1 parent b26354f commit c869d9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
python -m pip install wheel
python -m pip install --no-cache-dir -r requirements.txt
python -m pip install --no-cache-dir -r requirements-optional.txt
python -m pip install asv!=0.6.2
python -m pip install asv==0.6.1
displayName: 'Install requirements'
- script: |
Expand Down
3 changes: 1 addition & 2 deletions arviz/data/inference_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,7 @@ def __len__(self) -> int:

def __iter__(self) -> Iterator[str]:
"""Iterate over groups in InferenceData object."""
for group in self._groups_all:
yield group
yield from self._groups_all

def __contains__(self, key: object) -> bool:
"""Return True if the named item is present, and False otherwise."""
Expand Down
3 changes: 1 addition & 2 deletions arviz/data/io_pystan.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,7 @@ def get_draws(fit, variables=None, ignore=None, warmup=False, dtypes=None):
for item in par_keys:
_, shape = item.replace("]", "").split("[")
shape_idx_min = min(int(shape_value) for shape_value in shape.split(","))
if shape_idx_min < shift:
shift = shape_idx_min
shift = min(shift, shape_idx_min)

Check warning on line 679 in arviz/data/io_pystan.py

View check run for this annotation

Codecov / codecov/patch

arviz/data/io_pystan.py#L679

Added line #L679 was not covered by tests
# If shift is higher than 1, this will probably mean that Stan
# has implemented sparse structure (saves only non-zero parts),
# but let's hope that dims are still corresponding to the full shape
Expand Down

0 comments on commit c869d9a

Please sign in to comment.