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

Revied some variable names, added docs, added demo to docs folder. #17

Merged
merged 2 commits into from Oct 6, 2020

Conversation

taylorpatti
Copy link
Contributor

@david-pl I made the variable and docstring tweaks you suggested. Also, there is a now a band structure/decay rate plotting example tutorial in the /docs/src directory entitled "collective_modes_demo.jl" - I left it as a simple program because I'm not sure how you'd like somethin that involved documented.

One note on the docs - I think that I have left some step out of the documentation workflow because my docstrings don't show up when I run help on the new functions. In particular, running the makefile.jl results in errors about "collective_modes" not existing. This is my first Julia package so I'm sure it's just some step I'm unaware of - just let me know and I'll fix it.

I was thinking that next I'd do the infinite 2D case afterall instead of the finite 1D case. It's a lot more interesting and useful, I'd say.

@codecov
Copy link

codecov bot commented Oct 2, 2020

Codecov Report

Merging #17 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #17   +/-   ##
=======================================
  Coverage   69.34%   69.34%           
=======================================
  Files          15       15           
  Lines        1393     1393           
=======================================
  Hits          966      966           
  Misses        427      427           
Impacted Files Coverage Δ
src/CollectiveSpins.jl 100.00% <ø> (ø)
src/collective_modes.jl 100.00% <100.00%> (ø)

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 d66e1a6...7a32806. Read the comment docs.

@coveralls
Copy link

coveralls commented Oct 2, 2020

Pull Request Test Coverage Report for Build 118

  • 5 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 67.431%

Totals Coverage Status
Change from base Build 116: 0.0%
Covered Lines: 1764
Relevant Lines: 2616

💛 - Coveralls

@david-pl
Copy link
Member

david-pl commented Oct 5, 2020

Cool, thanks!
The reason why your docstrings aren't showing up when you view the help are the extra linebreaks you put between the docstring and the function definition. For example this line here:

needs to go.
Sorry I must have missed that in your original PR.

@taylorpatti
Copy link
Contributor Author

Oh man, what a detail - thanks!

I also wanted to know your guys' preference on something for the infinie 2D functions. The imaginary part has a nice, well-behaved, closed form, but the real part actually has a divergence that we can renormalize by introducing cut-off frequencies and limiting reciprocal lattice vectors. So basically, we can have a pretty decent, yet still approximate, answer without using too, too many resources, but it's never exact. Does this work for you guys or do you want a finite version instead?

@david-pl
Copy link
Member

david-pl commented Oct 6, 2020

What you're asking sounds a bit similar to the way we handle the energy shifts due to dipole-dipole interaction. The shifts would diverge when the distance between atoms goes to 0, so we renormalize that to 0 in order to avoid that. In that sense, what you're suggesting sounds fine to me.

I guess you want to do the 2D case in a different PR, right? I'd merge this one then.

@taylorpatti
Copy link
Contributor Author

Yeah, probably merging this one is a good idea in case I don't get to the 2D stuff for awhile. This PR also corrects a bug in the Gamma function for certain values, so it's always good to get that fixed.

@david-pl david-pl merged commit 79a551c into qojulia:master Oct 6, 2020
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.

None yet

3 participants