You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a lot of methods in srfit called def setValue, but i only deprecated the one inside Parameter because that seems to be the only user-facing one. If a user wants to create a new parameter it is done through this object. The other uses of def setValue I just replaced with def set_value and did not mark with the deprecator.
Also, in src/diffpy/srfit/equation/literals/abcs.py I removed the use of six and other python 2 objects. I did this with the help of chatGPT
❌ Patch coverage is 81.72043% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.94%. Comparing base (08478d4) to head (bb99611). ⚠️ Report is 7 commits behind head on v3.3.0.
Since there were a lot of calls to .setValue changed to .set_value in tests, codecov is failing. I think we can just ignore this since we're technically not missing any coverage
Since there were a lot of calls to .setValue changed to .set_value in tests, codecov is failing. I think we can just ignore this since we're technically not missing any coverage
Don't we have tests for set_value though? Please check, because if we do, then these lines should have coverage, no?
@sbillinge Okay I figured out the root cause. the test_speed.py has a bunch of tests called speedTest*(). This file is a benchmarking test and not a unit test. According to ChatGPT, benchmark tests like these are usually excluded from tests (which is why, im assuming, the naming convention is speedTest* and not testSpeed* because the former is skipped).
On this PR, i changed it to skip these tests more formally. if performance wants to be tested, the dev can comment out the line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deprecation of
Parameter.setValueThere are a lot of methods in srfit called
def setValue, but i only deprecated the one insideParameterbecause that seems to be the only user-facing one. If a user wants to create a new parameter it is done through this object. The other uses ofdef setValueI just replaced withdef set_valueand did not mark with the deprecator.Also, in
src/diffpy/srfit/equation/literals/abcs.pyI removed the use ofsixand other python 2 objects. I did this with the help of chatGPT