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
SCFPotential: optimization for axisymmetric potentials and added docs #281
Conversation
…imeError and RuntimeWarning for invalid expansion coefficients. Sets isNonAxi depending on whether Acos and Asin corresponds to an axi symmetric matrix or not.
…w returns Acos with shape (N,L,1) and Asin=None. scf_compute_coeffs_spherical now returns Asin=None. Init throws runtimeError if Asin=None, M!=1 and M != L. Adjusted code to handle Asin=None with M=1. Fixed computeArray and computeForceArray such that it can work with a multidimensional array.
… and computeForceArray
…ynomial in the comments of the class
…ing through the arrays and checking that it matches the results we got
…o form one sentence.
…n the scf_compute_coeffs* functions
Could you merge |
… into jobovy-merge-scf-twopowertri
Current coverage is 99.63% (diff: 95.74%)
@@ merge-scf-twopowertri #281 diff @@
=======================================================
Files 107 36 -71
Lines 19008 4608 -14400
Methods 0 0
Messages 0 0
Branches 0 0
=======================================================
- Hits 18947 4591 -14356
+ Misses 61 17 -44
Partials 0 0
|
Thanks! The build now fails for what seems to be an issue with the latest version of scipy that I reported here: scipy/scipy#6458 I think we'll have to use a work-around until this is fixed. Could you replace the line in
with
? This way we'll be using the older version. |
Thanks, this looks good. Something weird has happened to the test coverage reporting that I think is related to one of the software packages used in the test-coverage reporting being updated in a backward incompatible way 😡😡😡 I'll merge this and try to fix this. |
Okay, that fixed it and the The test coverage is here, looks great only ten lines not covered! https://codecov.io/gh/jobovy/galpy/tree/6037e50cfc1dbbbd74053ea6433ba30f947d6ad7/galpy The documentation is also online now: http://galpy.readthedocs.io/en/merge-scf-twopowertri/reference/potential.html Maybe check this quickly to make sure it looks the same as what you had, but it should. |
Updated tests, added documentations. Added axi symmetric optimization.