Repository navigation
Conversation
Contributor
|
This is a change in behavior in the sense that the same inputs produce different outputs. With the current maintenance-focused approach to minimal patch releases, it is challenging to merge patches, even when they are likely correct. There is a clear workaround for users for this since they can convert to float themselves. So I'd say I'm unsure about this. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #273 +/- ##
==========================================
+ Coverage 97.60% 98.45% +0.84%
==========================================
Files 30 30
Lines 3096 3107 +11
Branches 591 677 +86
==========================================
+ Hits 3022 3059 +37
+ Misses 39 27 -12
+ Partials 35 21 -14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
cc()truncates fractional periodic coordinates when its input has an integer dtype. For example, with bounds 0.1 and 3.4, the coordinate 4 should wrap to approximately 0.7; assigning that result into an integer array changes the resulting spline basis. This affects directcc(), formula construction and prediction using an existingDesignInfo.Convert integer coordinates to floating point before cyclic mapping. Preserve the existing floating-point input dtype and input immutability. Add direct mapping and public-API regressions covering signed and unsigned integer input, float32/float64 controls, centering and prediction.
Validation on Windows with Python 3.13.15, NumPy 2.5.4, SciPy 1.18.1 and pandas 3.0.6:
test_EvalEnvironment_eq), both normally and with the officialPATSY_AVOID_OPTIONAL_DEPENDENCIES=1compatibility mode. The same final tests on the original implementation produce seven failures, all new integer regressions; five new controls pass.git diff --checkpass.The full official Python/platform matrix and an R/mgcv runtime comparison were not run locally. The compatibility mode was run with pandas and SciPy installed.
Fixes #272.