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

improve handling for dims while generating QuantumObject #173

Merged
merged 2 commits into from
Jun 23, 2024

Conversation

ytdHuang
Copy link
Member

@ytdHuang ytdHuang commented Jun 20, 2024

As title, this PR improves the handling for the argument dims while generating QuantumObject.

Checks whether the specified dims is a Vector and all elements are positive integers.

Also, modify some error messages to make it easier for users to debug.

Copy link

codecov bot commented Jun 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.25%. Comparing base (c5da8e2) to head (baac8f5).

Current head baac8f5 differs from pull request most recent head b0f96be

Please upload reports for the commit b0f96be to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #173      +/-   ##
==========================================
+ Coverage   93.22%   93.25%   +0.02%     
==========================================
  Files          28       28              
  Lines        2051     2060       +9     
==========================================
+ Hits         1912     1921       +9     
  Misses        139      139              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@albertomercurio albertomercurio merged commit 1129c0c into qutip:main Jun 23, 2024
12 checks passed
@ytdHuang ytdHuang deleted the dev/Qobj branch June 23, 2024 09:04
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.

2 participants