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

Deprecate unused, untested, and obsolete code #1455

Merged
merged 15 commits into from
Mar 14, 2023

Conversation

speth
Copy link
Member

@speth speth commented Mar 11, 2023

The goal of this PR is to put a dent in the amount of unused or unusable code we're dragging around. The specific items picked out here is based partly on looking through coverage reports, and partly on various warts / oddities that I had noticed while working on other things and thought they would be better handled in a PR for this specific purpose.

Changes proposed in this pull request

If applicable, fill in the issue number this pull request is fixing

Checklist

  • The pull request includes a clear description of this code change
  • Commit messages have short titles and reference relevant issues
  • Build passes (scons build & scons test) and unit tests address code coverage
  • Style & formatting of contributed code follows contributing guidelines
  • The pull request is ready for review

@codecov
Copy link

codecov bot commented Mar 11, 2023

Codecov Report

Merging #1455 (c3a1e8e) into main (5cd3d8a) will decrease coverage by 0.03%.
The diff coverage is 61.11%.

@@            Coverage Diff             @@
##             main    #1455      +/-   ##
==========================================
- Coverage   69.64%   69.61%   -0.03%     
==========================================
  Files         374      373       -1     
  Lines       55812    55846      +34     
  Branches    18298    18338      +40     
==========================================
+ Hits        38868    38878      +10     
- Misses      14487    14514      +27     
+ Partials     2457     2454       -3     
Impacted Files Coverage Δ
include/cantera/base/FactoryBase.h 71.05% <0.00%> (-1.68%) ⬇️
include/cantera/kinetics/Kinetics.h 32.11% <0.00%> (ø)
include/cantera/thermo/IonsFromNeutralVPSSTP.h 100.00% <ø> (ø)
include/cantera/thermo/MaskellSolidSolnPhase.h 87.50% <ø> (-1.39%) ⬇️
include/cantera/thermo/MixtureFugacityTP.h 33.33% <ø> (+13.33%) ⬆️
include/cantera/thermo/PDSS.h 100.00% <ø> (ø)
include/cantera/thermo/PDSS_ConstVol.h 75.00% <ø> (ø)
include/cantera/thermo/PDSS_HKFT.h 100.00% <ø> (ø)
include/cantera/thermo/PDSS_IdealGas.h 0.00% <ø> (ø)
include/cantera/thermo/PDSS_Water.h 100.00% <ø> (ø)
... and 73 more

... and 5 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@speth speth marked this pull request as ready for review March 11, 2023 16:31
Copy link
Member

@ischoegl ischoegl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for going over the API … I just have a couple of minor comments.

include/cantera/kinetics/Kinetics.h Outdated Show resolved Hide resolved
include/cantera/transport/Transport.h Outdated Show resolved Hide resolved
include/cantera/transport/Transport.h Outdated Show resolved Hide resolved
src/thermo/ThermoFactory.cpp Outdated Show resolved Hide resolved
@ischoegl ischoegl mentioned this pull request Mar 13, 2023
5 tasks
speth added 12 commits March 13, 2023 22:08
This model has had a request for tests/examples out for many years (Cantera#267)
with no response, and the addition of consistency tests revealed multiple
errors in the implementation (documented in Cantera#1322). Further, there is no
mathematical description of the model or references to literature to use
as a reference in trying to correct any of these issues.

Resolves Cantera#1322.
macOS doesn't allow passing DYLD_LIBRARY_PATH through a shell, so
we need to use subprocess.call to be able to call sphinx-build while
including build/lib in the library path. The need to have the library
path set for this is a result of the transition to linking the Python
module against a shared version of libcantera.
This phase model is incomplete, has numerous thermodynamic consistency
issues as documented in Cantera#1321, and has no known non-trivial examples.

Resolves Cantera#1321
Copy link
Member

@ischoegl ischoegl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this all looks good to me!

@ischoegl ischoegl merged commit b076ed9 into Cantera:main Mar 14, 2023
@speth speth deleted the deprecate-unused branch July 23, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
2 participants