-
Notifications
You must be signed in to change notification settings - Fork 3
Adds trend work from SasData refactor #169
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
|
|
||
| custom_test_directory = 'custom_test' | ||
|
|
||
| def get_files_to_load(directory_name: str) -> list[str]: |
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.
suggestion - this function is likely simpler using pathlib.Path rather than os.listdir/os.path.join; Path.iterdir will give the absolute path to the resource without needing to join the load_from back on again. (Pity that AsciiReaderParams doesn't accept Path objects)
| interpolated_trend = trend.interpolate(to_interpolate_on) | ||
| assert interpolated_trend.all_axis_match(to_interpolate_on) | ||
|
|
||
| def test_trend_q_axis_match(): |
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.
Is it possible for this test (or another test) to test that the maths is correct in the interpolation?
rprospero
left a comment
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.
As per the comment @llimeht about testing, we should include test/transforms/utest_interpolation.py. With that included, I feel everything is ready to merge.
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.
Gates Failed
Enforce critical code health rules
(1 file with Bumpy Road Ahead)
Gates Passed
2 Quality Gates Passed
See analysis details in CodeScene
Reason for failure
| Enforce critical code health rules | Violations | Code Health Impact | |
|---|---|---|---|
| trend.py | 1 critical rule | 9.24 | Suppress |
Quality Gate Profile: The Bare Minimum
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.
No description provided.