Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dump platform iteratively #710

Merged
merged 5 commits into from
Feb 13, 2024
Merged

Dump platform iteratively #710

merged 5 commits into from
Feb 13, 2024

Conversation

andrea-pasquale
Copy link
Contributor

@andrea-pasquale andrea-pasquale commented Feb 12, 2024

Closes #709.
A platform folder will now appear under each protocol folder in the report.
I've also made tests a bit more robust by checking if certain files/folders are present.

Checklist:

  • Reviewers confirm new code works as expected.
  • Tests are passing.
  • Coverage does not decrease.
  • Documentation is updated.
  • Compatibility with Qibo modules (Please edit this section if the current pull request is not compatible with the following branches).
    • Qibo: master
    • Qibolab: main
    • Qibolab_platforms_qrc: main

@codecov-commenter
Copy link

codecov-commenter commented Feb 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (edb69c5) 97.25% compared to head (4e6764b) 97.28%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #710      +/-   ##
==========================================
+ Coverage   97.25%   97.28%   +0.02%     
==========================================
  Files         109      109              
  Lines        7502     7507       +5     
==========================================
+ Hits         7296     7303       +7     
+ Misses        206      204       -2     
Flag Coverage Δ
unittests 97.28% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/qibocal/auto/task.py 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

@@ -33,6 +34,8 @@
"""A number bigger than whatever will be manually typed. But not so insanely big not to fit in a native integer."""
TaskId = tuple[Id, int]
"""Unique identifier for executed tasks."""
PLATFORM_FOLDER = "platform"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: I would prefer to call it PLATFORM_DIR or PLATFORM_DIRECTORY

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hay-k is there a reason for that? I always used the two interchangeably...

(i.e. for me it's also fine your proposal, no problem with that)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alecandido yeah, I myself use them interchangeably as well, especially when speaking. In code like this, I prefer to use dir/directory because it is the strict file system terminology. Folder seems to be more like a concept popularized by Microsoft Windows, is not necessarily a file system directory, and has some graphical/UI related connotations attached to it.

@andrea-pasquale andrea-pasquale added this pull request to the merge queue Feb 13, 2024
Merged via the queue into main with commit 89098d7 Feb 13, 2024
21 checks passed
@andrea-pasquale andrea-pasquale deleted the dump_platform_iteratively branch February 13, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dump platform after each node
4 participants