Skip to content

checking shapes equality is always false in evaluate method #17

Description

@espdev

The following condition is always false because we compare list and tuple:

if values.shape != shape:

We need to refactor the code to avoid performing this code in SplinePPForm class. It violates the single responsibility principle and also the encapsulation.

SplinePPForm class should know nothing about:

  • shape
  • axis
  • other things which are not related to evaluating data

The reshaping result array should be performed in the __call__ method of the caller class (CubicSmoothingSpline), but not in SplinePPForm class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions