Skip to content

Remove redundant parameter validation from private modules (_transformations.py, _functions.py)#155

Open
Savitha-Akhilu wants to merge 12 commits intocamUrban:mainfrom
Savitha-Akhilu:remove-validation-calls
Open

Remove redundant parameter validation from private modules (_transformations.py, _functions.py)#155
Savitha-Akhilu wants to merge 12 commits intocamUrban:mainfrom
Savitha-Akhilu:remove-validation-calls

Conversation

@Savitha-Akhilu
Copy link
Contributor

Description

Remove redundant parameter validation from private modules (_transformations.py, _functions.py)

Motivation

Private modules were performing parameter validation using _parameter_validation utilities.
Since these modules are only called internally with already validated inputs, these checks were unnecessary and added overhead.

Relevant Issues

Fixes #150

Changes

  • Removed _parameter_validation calls from _transformations.py
  • Removed _parameter_validation calls from movements/_functions.py
  • Replaced with minimal type conversions (np.asarray, int, float)

Dependency Updates

None

Change Magnitude

Minor

Checklist (check each item when completed or not applicable)

  • I am familiar with the current contribution guidelines.
  • PR description links all relevant issues and follows this template.
  • My branch is based on main.
  • Code is formatted properly.
  • Code is well documented.
  • No new dependencies added.

@camUrban camUrban added maintenance Improvements or additions to documentation, testing, or robustness performance An opportunity to improve performance labels Mar 23, 2026
@camUrban camUrban added this to the v5.0.0 milestone Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Improvements or additions to documentation, testing, or robustness performance An opportunity to improve performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove unnecessary parameter validation calls in private modules

2 participants