- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 228
Refactor - Metric & Utils #512
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
Conversation
| Hello @JeS24! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: 
 
 
 
 
 
 
 
 
 
 
 
 
 
 Comment last updated at 2020-06-24 19:24:05 UTC | 
| All tests are failing. Do you expect them to fail? | 
| @shreyasbapat Not at all. The old files have not been modified, except for addition of deprecation warnings. According to the traceback, these are the tests, that have failed: 
 
 
 
 None of the related files were modified in this PR, which makes this even weirder. | 
| Can you force push once? | 
| @shreyasbapat It's telling me, "Everything up-to-date". So, I made a non-consequential change and pushed it. | 
| You usually do  | 
| Okay, will keep this in reference. Do you want me to force push or let the tests run for now? | 
| 
 Oh, let them run now. Then I'll review | 
0428e85    to
    11fdaf6      
    Compare
  
    | Have you made the changes discussed in the chats? | 
| The current failures are expected. I am modifying  | 
| Should I review? | 
| Tests for  | 
| Any progress? | 
…e_metric fix; PEP fixes
ed0af68    to
    fe9bf55      
    Compare
  
    | @JeS24 Do you have any fix for these codefactor issues? | 
| Okay, whatever. Merging now. | 
| 
 I'm not sure about the cyclic imports issue, but the "unnecessary elif" ones are simple to fix. | 
Fixes #113, #141, #410, #507, #508, #514 , #515.
Notes on fixes:
utils.kerrnewman_utils.py#508 - Requires discussionutils.schwarzschild_utils.py#507 -time_velocitymethods, across<Metric>_utilsmodules, have been moved to and repackaged into 1 function incoordinates.utils, renamed asv_t(). This function uses the supplied metric and 3-Velocity, and the expression for spacetime interval:Schwarzschild,KerrandKerrNewmanclasses.Touched modules:
einsteinpy.metriceinsteinpy.utilseinsteinpy.coordinates.utilsgeodesicexamplesplotting.geodesictest_metrictest_utilstest_coordinates/test_utilstest_geodesictest_examplestest_plotting/test_geodesicOther files
index.ipynbdocs/source/jupyter.rstdocs/source/user_guidedocs/source/api/docs/source/examples/.codeclimate.ymlCHANGELOGCurrent changes:
Metricclass added and oldmetricAPI removed.calculate_trajectory()frommetrictogeodesicandtime_velocity()(nowv_t()) tocoordinates.utils.utilsintometric(only file untouched isscalar_factor.py)geodesic,examplesand example Jupyter Notebooks to work with new API.coordinates.utils.metric,utils,geodesic,examples,plotting)calculate_trajectory()tests fromtest_metrictotest_geodesic.Pending changes:
Alter code, after discussion on Scaling error in
utils.kerrnewman_utils.py#508 - Factor removed.Modify examples to use new API
Add functionality of
calculate_trajectorytogeodesicand create a warning in metric classes.Add tests (can refactor old tests).
Fix CodeFactor and CodeClimate issues. - Linked to Refactor some functions in Schwarzschild and Kerr class #113.
Add a changelog.
Update User Guide.
Update
index.ipynb.Review list of issues fixed.
Check if scaling in Frame Dragging Example breaks on New plotting code #367 is fixed now. Add a comment regarding the smooth plot.
Issues, after review:
einsteinpy.metric.*#239 - Example notebooks formetric- After the review.bodies- Discuss.