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

Add test_bases from QuantumOpticsBase and reorganize a bit #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akirakyle
Copy link
Member

In preparation of more significant changes to the basis interface and abstract types being discussed across #12 #25 #26 #27 #33 #34 #35 #36 this PR adds the test_bases from QuantumOpticsBase, moves all the show methods to their own file, and does a little more reorganization. No logic should be affected with this change.

@akirakyle akirakyle requested a review from Krastanov December 5, 2024 18:26
@akirakyle akirakyle changed the title Add test_bases for QuantumOpticsBase and reorganize a bit Add test_bases from QuantumOpticsBase and reorganize a bit Dec 5, 2024
Copy link

codecov bot commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 26.89655% with 106 lines in your changes missing coverage. Please review.

Project coverage is 34.25%. Comparing base (f22adb7) to head (662993f).

Files with missing lines Patch % Lines
src/show.jl 0.00% 43 Missing ⚠️
src/linalg.jl 48.61% 37 Missing ⚠️
src/julia_base.jl 0.00% 16 Missing ⚠️
src/embed_permute.jl 50.00% 4 Missing ⚠️
src/bases.jl 0.00% 3 Missing ⚠️
src/julia_linalg.jl 0.00% 2 Missing ⚠️
src/identityoperator.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #37       +/-   ##
===========================================
+ Coverage   17.08%   34.25%   +17.16%     
===========================================
  Files          12       12               
  Lines         398      400        +2     
===========================================
+ Hits           68      137       +69     
+ Misses        330      263       -67     

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

@Krastanov
Copy link
Collaborator

could you also bump the JET ignore count to 3. It seems it is the case on master as well.

Copy link
Collaborator

@Krastanov Krastanov left a comment

Choose a reason for hiding this comment

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

Sorry for the delay in getting this reviewed!

This type of reordering is usually to be avoided for two reasons:

  • It took me a lot of time to review the changes as moving this around leads to a ton of lines marked as modified (git diff is not very good about just showing moves).
  • Using git blame in the future will be much more difficult.

With this in mind, what are the advantages of the reordering that make it worth to pay the price?

"""
Abstract base class for all specialized bases.

The Basis class is meant to specify a basis of the Hilbert space of the
Copy link
Collaborator

Choose a reason for hiding this comment

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

The Basis class is meant to specify the Hilbert space of the

To avoid the confusion about basis vs space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants