-
Notifications
You must be signed in to change notification settings - Fork 25
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
Remove simpleOCart and update imports #54
Conversation
Codecov Report
@@ Coverage Diff @@
## main #54 +/- ##
==========================================
+ Coverage 21.25% 21.79% +0.54%
==========================================
Files 3 3
Lines 2329 2271 -58
==========================================
Hits 495 495
+ Misses 1834 1776 -58
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I see that we are leaving scipy
and pyspline
as requirements for "advanced features" so the imports are left in. The advanced tag seems a little weird to me (I would just think everything is required always). If we are okay with the advanced tag then this looks good to me.
cgnsutilities/cgnsutilities.py
Outdated
@@ -924,8 +841,6 @@ def tanDist(Sp1, Sp2, N): | |||
# Sp2: final spacing (within the [0,1] interval) | |||
# N: number of nodes | |||
|
|||
# IMPORTS | |||
from numpy import tan, arange, pi | |||
from scipy.optimize import minimize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we move import re
outside, but not import scipy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping the SciPy import inside the function means that the user does not need to have SciPy if they are not using the function. This is directly related to keeping it as an 'advanced' dependency.
I added the 'advanced' features because I didn't want to add pySpline as a hard dependency for a single function (rebunch) that I'm pretty sure no one uses. I think adding SciPy as a hard dependency is justifiable though if we want to do that because it doesn't require compiling another MDO Lab code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was thinking something along these lines. SciPy is a pretty common package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would be okay with adding scipy as a dependency, but it probably makes sense to keep pyspline out. Also, we may want to bump the version here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why we took the install instructions out of the readme?
The instructions got moved to the Sphinx docs in #55. That's consistent with where the rest of the MACH-Aero repos have the installation guide. |
Purpose
I removed simpleOCart (which was moved to pyHyp in mdolab/pyhyp#61), cleaned up some of the imports, and updated the dependencies in setup.py.
Expected time until merged
One week (and after mdolab/MACH-Aero#80 is merged)
Type of change
Testing
Checklist
flake8
andblack
to make sure the code adheres to PEP-8 and is consistently formatted