qilimanjaro-tech / qililab

Qililab is a generic and scalable quantum control library used for fast characterization and calibration of quantum chips. Qililab also offers the ability to execute high-level quantum algorithms with your quantum hardware.
Apache License 2.0
30 stars 2 forks source link

[QHC-160] Change cwd before execution #693

Closed IsaacLA12 closed 6 months ago

IsaacLA12 commented 6 months ago

Following the suggested implementation, we changed the working directory to match the notebook folder path to use relative paths inside the notebook regardless of where the notebooks are executed through papermill.

After the execution we restore the previous working directory

linear[bot] commented 6 months ago

QHC-160 Allow notebooks for local imports

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.16%. Comparing base (5d64d27) to head (92cf4c0).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #693 +/- ## ======================================= Coverage 96.16% 96.16% ======================================= Files 273 273 Lines 9043 9046 +3 ======================================= + Hits 8696 8699 +3 Misses 347 347 ``` | [Flag](https://app.codecov.io/gh/qilimanjaro-tech/qililab/pull/693/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qilimanjaro-tech) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/qilimanjaro-tech/qililab/pull/693/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qilimanjaro-tech) | `96.16% <100.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qilimanjaro-tech#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

GuillermoAbadLopez commented 6 months ago

@IsaacLA12 tested it, and the data was being created now in the qililab-portfolio directory instead than outside! Nice!