gpt icon indicating copy to clipboard operation
gpt copied to clipboard

Hadron2pt routines (quark contraction routines + Light-Strange-Heavy spectrum), Nucleon3pt sequential sources, Spin Matrices, Wuppertal quark smearing, Ape-link smearing, Polyakov loop

Open Lorenzo-Barca opened this issue 5 years ago • 8 comments

Added routines for mesons2pt, meson3pt with specific momentum projection and spin matrices

Lorenzo-Barca avatar Aug 10 '20 10:08 Lorenzo-Barca

Codecov Report

Merging #50 into master will decrease coverage by 0.67%. The diff coverage is 53.64%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #50      +/-   ##
==========================================
- Coverage   90.12%   89.45%   -0.68%     
==========================================
  Files         110      113       +3     
  Lines        5781     6001     +220     
==========================================
+ Hits         5210     5368     +158     
- Misses        571      633      +62     
Impacted Files Coverage Δ
lib/gpt/core/spinmatr.py 10.44% <10.44%> (ø)
lib/gpt/core/colormatr.py 11.76% <11.76%> (ø)
lib/gpt/core/spin_matrices.py 53.57% <53.57%> (ø)
lib/gpt/core/otype.py 97.71% <94.73%> (+0.08%) :arrow_up:
lib/gpt/core/__init__.py 100.00% <100.00%> (ø)
lib/gpt/core/expr.py 83.25% <100.00%> (+0.95%) :arrow_up:
lib/gpt/core/operator/matrix_operator.py 96.59% <100.00%> (+0.81%) :arrow_up:
lib/gpt/core/util.py 100.00% <100.00%> (ø)
lib/gpt/qcd/fermion/register.py 100.00% <100.00%> (ø)
lib/gpt/default.py 91.25% <0.00%> (-4.59%) :arrow_down:
... and 19 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8c04eba...dfabb91. Read the comment docs.

codecov-commenter avatar Aug 10 '20 10:08 codecov-commenter

Dear Lorenzo, it looks like you added the .o files to the git repository. Please kindly remove them from the version history. (git rm) Thanks!

lehner avatar Aug 11 '20 10:08 lehner

Also all the out and err files need to be removed. Thanks!

lehner avatar Aug 11 '20 10:08 lehner

Hi Lorenzo, the .o files are still part of the repository, could you remove them as well? They should not be included with git add . The "Files changed" tab here provides a nice overview with what you added (143 files currently) and I think you only wanted to add O(4) ? I will look in more detail at the rest later. Thanks!

lehner avatar Aug 11 '20 12:08 lehner

Hi Lorentzo,

thanks for cleaning up and for your work! A few more points:

  1. All of this infrastructure is QCD/Gauge-theory-specific and should be moved outside of core and into "qcd".

  2. We need to discuss the naming schemes to be more in line with the rest of the code.

  3. The mathematical expressions motivating the individual quark contraction needs to be added as a comment. Look, e.g., into lib/gpt/algorithms/inverter/defect_correcting.py .

  4. The role of the provided tests is not clear. The 2pt and 3pt tests do not seem to check anything that was not checked before in the current test suit. They probably should be moved to the applications directory and made part of a standard measurement package. The more specific tests are incomplete (do not test all functions) and should be performed using properties of the functions instead of repeating the code.

We should discuss these points in the next GPT meeting to make a work plan. (I, e.g., could deal with the naming/infrastructure questions, but it would be great if we first discuss the tests and you could work on those.)

Cheers,

Christoph

lehner avatar Aug 12 '20 05:08 lehner

In addition to the last comments, the code is Nc=3 specific. The code would likely be more elegant and reusable if we introduced the concept of epsilon tensors and wrote this out as general tensor contractions. Your current code could then serve as a test for the Nc=3 case. Let us also discuss this in the next meeting.

lehner avatar Aug 12 '20 05:08 lehner

Dear Christoph,

I completely agree with all the points you are mentioning and I wanted to discuss those in detail in the next GPT meeting.

Cheers, Lorenzo

Lorenzo-Barca avatar Aug 12 '20 06:08 Lorenzo-Barca

Dear Christoph, the routines work fine and they are ready for your review. In particular, we should discuss:

  • how to handle with the h5py library to pass the tests;
  • do we want a parameter list to read as an input file? This way, we could store the parameters into the hdf5 and make the simulation reproducible;
  • modularity of the baryon code;
  • test routines for coverage.

When you have time we can finalize this. Thanks a lot. Cheers, Lorenzo

Lorenzo-Barca avatar Oct 13 '20 15:10 Lorenzo-Barca