Skip to content

Commit aa36101

Browse files
Dev build fix (#1702)
The latest `objects.inv` file for PennyLane seems to be confusing the library we use to load and parse this file when creating the demo notebooks, and as a result the recent scheduled dev branch build failed. This PR adds explicit specification of what type of data to expect for this file, rather than previously relying on the library's ability to sort it out for itself. [Dev](https://github.com/PennyLaneAI/qml/actions/runs/22112653904) and [Master](https://github.com/PennyLaneAI/qml/actions/runs/22112840985) builds have been tested and now build successfully ✅
1 parent 970a3e6 commit aa36101

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/inventories.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _load_inventory_from_path(path: Path) -> soi.Inventory | None:
2222
if not path.is_file():
2323
return None
2424
try:
25-
return soi.Inventory(path)
25+
return soi.Inventory(fname_zlib=path)
2626
except Exception:
2727
return None
2828

@@ -43,7 +43,7 @@ def _load_inventory_from_url(
4343
time.sleep(delay * attempt)
4444
# sphobjinv accepts zlib-compressed bytes from objects.inv
4545
raw = response.content
46-
return soi.Inventory(raw), raw
46+
return soi.Inventory(zlib=raw), raw
4747

4848

4949
def _make_named_inventory(inv: soi.Inventory) -> dict[str, Any]:

0 commit comments

Comments
 (0)