Skip to content

Commit

Permalink
Print directory contents
Browse files Browse the repository at this point in the history
  • Loading branch information
rauletorresc committed Aug 6, 2024
1 parent f72140e commit 74298ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pennylane_lightning/lightning_kokkos/lightning_kokkos.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,10 @@ def get_c_interface():
if wheel_mode_location.is_file():
return "LightningKokkosSimulator", wheel_mode_location

Check warning on line 867 in pennylane_lightning/lightning_kokkos/lightning_kokkos.py

View check run for this annotation

Codecov / codecov/patch

pennylane_lightning/lightning_kokkos/lightning_kokkos.py#L865-L867

Added lines #L865 - L867 were not covered by tests

for path, _, files in os.walk( package_root.parent.parent):
print("Contents of ", path)
print(files)

Check warning on line 871 in pennylane_lightning/lightning_kokkos/lightning_kokkos.py

View check run for this annotation

Codecov / codecov/patch

pennylane_lightning/lightning_kokkos/lightning_kokkos.py#L869-L871

Added lines #L869 - L871 were not covered by tests

# Editable mode:
# The build directory contains a folder which varies according to the platform:
# lib.<system>-<architecture>-<python-id>"
Expand All @@ -876,5 +880,5 @@ def get_c_interface():
if lib_name in files:
lib_location = (Path(path) / lib_name).as_posix()
return "LightningKokkosSimulator", lib_location

Check warning on line 882 in pennylane_lightning/lightning_kokkos/lightning_kokkos.py

View check run for this annotation

Codecov / codecov/patch

pennylane_lightning/lightning_kokkos/lightning_kokkos.py#L878-L882

Added lines #L878 - L882 were not covered by tests

Check notice on line 883 in pennylane_lightning/lightning_kokkos/lightning_kokkos.py

View check run for this annotation

codefactor.io / CodeFactor

pennylane_lightning/lightning_kokkos/lightning_kokkos.py#L883

Trailing whitespace (trailing-whitespace)
raise RuntimeError("'LightningKokkosSimulator' shared library not found")

Check warning on line 884 in pennylane_lightning/lightning_kokkos/lightning_kokkos.py

View check run for this annotation

Codecov / codecov/patch

pennylane_lightning/lightning_kokkos/lightning_kokkos.py#L884

Added line #L884 was not covered by tests

0 comments on commit 74298ff

Please sign in to comment.