Skip to content

Fix read-only array error in FractionalBacktest indicator scaling#1359

Open
atharvajoshi01 wants to merge 1 commit intokernc:masterfrom
atharvajoshi01:fix/read-only-fractional-indicator
Open

Fix read-only array error in FractionalBacktest indicator scaling#1359
atharvajoshi01 wants to merge 1 commit intokernc:masterfrom
atharvajoshi01:fix/read-only-fractional-indicator

Conversation

@atharvajoshi01
Copy link
Copy Markdown

Fixes the CI failure in test_FractionalBacktest where indicator /= self._fractional_unit raises ValueError: output array is read-only on newer pandas.

The in-place division fails because the underlying numpy array from pandas is read-only (copy-on-write). Replaced with a non-mutating division that creates a new array and updates the list entry directly.

Ref: #1354

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant